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
Describe the bug
Passing --python-tag as part of --global-option in the wheel_config_settings dictionary of a python_distribution target results in the following error if using setuptools version >= 69:
Here's a minimal reproduction of an example python_distribution target for pants
python_distribution(
name="mydist", # this is the name given to the targetprovides=python_artifact(name="mylib")
wheel_config_settings={"--global-option": ["--python-tag", "py38.py39.py310"]},
generate_setup=False,
)
Along with the relevant portion of my pyproject.toml
The documentation for pants shows the --global-option parameter being used but should be updated to to note the breaking change with setuptools.
Substitututing --global-option with --build-option fixes the issue and appears to work with earlier versions of setuptools back to 64.0
Pants version
Which version of Pants are you using?
2.18 OS
Linux
Additional info
Here is the PR for the change in setuptools
And the discussion that precipitated it
The text was updated successfully, but these errors were encountered:
Describe the bug
Passing
--python-tag
as part of--global-option
in thewheel_config_settings
dictionary of apython_distribution
target results in the following error if using setuptools version >= 69:Here's a minimal reproduction of an example
python_distribution target
for pantsAlong with the relevant portion of my
pyproject.toml
The documentation for pants shows the
--global-option
parameter being used but should be updated to to note the breaking change with setuptools.Substitututing
--global-option
with--build-option
fixes the issue and appears to work with earlier versions of setuptools back to 64.0Pants version
Which version of Pants are you using?
2.18
OS
Linux
Additional info
Here is the PR for the change in setuptools
And the discussion that precipitated it
The text was updated successfully, but these errors were encountered: