开发者

How do I distribute precompiled extension modules for Windows on pypi for multiple versions of Python?

开发者 https://www.devze.com 2023-02-03 09:53 出处:网络
I would like to distribute a precompiled C extension module for Python 2.6 and Python 2.7 for 32- a开发者_StackOverflownd 64-bit versions of Python. How should I build and distribute that on pypi? Sho

I would like to distribute a precompiled C extension module for Python 2.6 and Python 2.7 for 32- a开发者_StackOverflownd 64-bit versions of Python. How should I build and distribute that on pypi? Should I just use bdist_egg? Can I retain compatibility with pip?

I notice ordinary bdist just creates a .zip that does not include the Python version, although the internal folder structure does. Can this .zip just contain e.g. a Python26 and Python27 subdirectory?


You generally need to run bdist_something with each version of Python you need to support. bdist_egg does indeed work with PIP afaik (you can easily test it).

The Zope Toolkit has several binary distributions for Windows, and it's using binary eggs: http://pypi.python.org/pypi/zope.interface

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号