我需要将.tar.bz2格式的一些非Python包转换为Anaconda/miniConda .egg文件并安装它们.为此,我需要Windows的bld.bat文件.互联网上有什么地方可以找到一些示例来做到这一点.
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.
也许也可以编写.py Python脚本来执行此操作. .tar文件在线存在,我需要使用脚本自动下载并安装这些文件.
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.
推荐答案使用conda-build,您可以像构建Python包一样来构建非Python包.支持从tarball采购.
With conda-build you can build non-Python packages the same way that you build Python packages. Sourcing from a tarball is supported.
这是conda-build的文档,其中包含一些教程和示例配方:
Here is the documentation for conda-build with several tutorials and example recipes:
- conda.io/docs/building/build.html
- python-packaging-tutorial.readthedocs.io/en/最新/.最初在这里链接了另一个教程,但是它已经过时了,因此被删除了.这个新教程是最接近原始教程的有用替换资源.
- conda.io/docs/building/build.html
- 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.
更多推荐
如何将非Python软件包(.tar.bz2)安装/转换为Anaconda软件包?
发布评论