Replies: 1 comment 4 replies
-
Hi @gh-andre,
The short answer is no. Currently, the only way is via Regarding the problem you are facing, I can see in PEP 440, the version must be in the following format:
Please note that:
You can have a look on this regex for a short summary. If you want to avoid local versions, you might be able to try something with |
Beta Was this translation helpful? Give feedback.
-
I'm trying to build a package with a build tag and
setuptools
appears to expect a Python local version identifier and not a build tag.That is, given this project:
, and using this build syntax
, will fail with this error message:
I would expect that
setuptools
would add a dash to form the format for wheel packages from the page below.https://packaging.python.org/en/latest/specifications/binary-distribution-format/#file-format
The only way I could make it work is to use a dummy Python local version, as defined on this page:
https://peps.python.org/pep-0440/#local-version-identifiers
So, the same command, but with a local version identifier injected into the build tag does produce a valid binary package:
However, it replaces the dash with a dot, so the whole sequence becomes a local version, like this:
I can see on the page below that eggs are deprecated in favor of wheels, but given how
setuptools
builds a binary package, I read it as if eggs are deprecated as the output format, but not theegg_info
, which is what being used in this process.https://setuptools.pypa.io/en/latest/deprecated/commands.html#egg-info-create-egg-metadata-and-set-build-tags
Is there another way to build a wheel package with a build tag with
setuptools
?Beta Was this translation helpful? Give feedback.
All reactions