如何在 Windows 上将多个 python 轮子打包成一个轮子?

den*_*ufa 5 python windows pip setuptools python-wheel

在Python 2.7-3.5的Windows上,是否可以将多个Python轮子打包成一个轮子?

如果没有,使用标准库工具的替代方案是什么?

编辑


我打算使用 archive 来打包多个wheel,并在Python安装后将它们解压。

nir*_*r0s 4

创建一个执行此操作的流程相当简单:

以 Flask 为例:

pip wheel flask
Run Code Online (Sandbox Code Playgroud)

你所有的轮子都进入wheelhouse目录。只需压缩目录,然后将其解压缩到目标服务器上并运行:

pip install --no-index --find-links wheelhouse/ flask
Run Code Online (Sandbox Code Playgroud)

我们实现了一个工具来解决这个问题,但它具有验证、单个文件、适用于 Linux 和 Windows 以及 Manylinux1 支持。

https://github.com/cloudify-cosmo/wagon