You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My computer has more versions of python installed on it than my pyo3-based library supports. maturin build should not build wheels for unsupported python versions. Of course, it's possible to specify exactly which versions to build on every call to maturin build, but that's a relatively static item of metadata which is a good fit for a config file (probably the Cargo.toml, although possibly pyproject.toml).
One option would be to parse the trove classifiers specified in package.metadata.maturin.classifierpackage.metadata.maturin.requires-python, and build wheels for the intersection of what maturin supports and what is specified there.
The text was updated successfully, but these errors were encountered:
What operating system are you using and what are those python versions? For unix system, maturin has a predefined list it checks, and for windows, it's using py -0 and picks only python3 versions.
Using ubuntu, I have pythons 2.7, 3.4, 3.5, 3.6, and 3.7. My package only supports 3.6 and 3.7. Maturin ignores 2.7 and 3.4, as it should, but still creates a wheel for 3.5.
clbarnes
changed the title
Feature request: Do not build wheels for unsupported python versions
Feature request: Do not build wheels for python versions not supported by package
Aug 30, 2019
My computer has more versions of python installed on it than my pyo3-based library supports.
maturin build
should not build wheels for unsupported python versions. Of course, it's possible to specify exactly which versions to build on every call tomaturin build
, but that's a relatively static item of metadata which is a good fit for a config file (probably theCargo.toml
, although possiblypyproject.toml
).One option would be to parse
the trove classifiers specified inpackage.metadata.maturin.classifier
package.metadata.maturin.requires-python
, and build wheels for the intersection of what maturin supports and what is specified there.The text was updated successfully, but these errors were encountered: