Problem
I have created a python package with binary components and depending on windows 10 platform. I used various classifiers to specify the target platform and environment:
classifiers=(
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: Other/Proprietary License",
"Operating System :: Microsoft :: Windows :: Windows 10",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Medical Science Apps."
)
My expectation is, that the pip wheel
is respecting these classifiers and creates a package for the appropriate platform. I use the following command (python 3.9) to create the wheel package:
pip wheel mypack-1.0.0.zip
The resulting package name is
mypack-1.0.0-py3-none-any.whl
My expectation would be to get
mypack-1.0.0-cp39-cp39-win32.whl
Or something similar.
What I found out
I already found out that the content of the classifier
field in setup.py
is not really exactly defined. At least there is a list of typically used classifiers. Obviously this did not bring me forward.
Question
How can I tell pip wheel to produce a package that is limited to the platform and python version I specified in setup.py
?