How to install/convert non-Python packages (.tar.bz2) to Anaconda packages?

不想你离开。 提交于 2019-12-24 08:50:11

问题


I need to convert some non-Python packages that are in the .tar.bz2 format to Anaconda/miniConda .egg files and install them. For this I would need a bld.bat file for Windows. Is there any place on the internet where I can find some examples to do this.

Maybe it is possible to write a .py Python script to do this as well. The .tar files are present online and I need to download and install those automatically using the script.


回答1:


With conda-build you can build non-Python packages the same way that you build Python packages. Sourcing from a tarball is supported.

Here is the documentation for conda-build with several tutorials and example recipes:

  • https://conda.io/docs/building/build.html
  • https://python-packaging-tutorial.readthedocs.io/en/latest/. There was another tutorial linked here originally, but it got outdated, and it was removed. This new tutorial is the closest useful replacements resource for the original.


来源:https://stackoverflow.com/questions/43539908/how-to-install-convert-non-python-packages-tar-bz2-to-anaconda-packages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!