如何将非Python软件包(.tar.bz2)安装/转换为Anaconda软件包? [英] How to install/convert non-Python packages (.tar.bz2) to Anaconda packages?

查看:817
本文介绍了如何将非Python软件包(.tar.bz2)安装/转换为Anaconda软件包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将.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:

  • 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.

这篇关于如何将非Python软件包(.tar.bz2)安装/转换为Anaconda软件包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆