Conditional wheel wheel dependencies

While working on virtualenv to develop a python package, I use to create a peak wheel. to create all the wheel archives needed for the package. I'm starting to use conditional dependencies by listing them in the setuptools extras_require parameter. Is it possible to generate wheel archives of a certain conditional dependency?

Something like: pip wheel ". [Conditional_feature]" is not supported. (at least in python-2.7) Note that I can install these dependencies in virtualenv with: pip install -e ". [Conditional_feature]"

+4
source share
1 answer

script, , .

, (2017) pypa trio (pip, setuptools, wheel) . extra_requires, lxml :

extras_require={
        ':platform_system == "Windows"': ['lxml == 3.6.0'],
        ':platform_system == "Linux"': ['lxml == 3.6.4'],
        ':platform_system == "Darwin"': ['lxml == 3.6.4'],

},

, , , .

+1

Source: https://habr.com/ru/post/1544844/


All Articles