Closed cacti77 closed 1 month ago
I can confirm that this error persists for our tests on GitHub Actions with the windows runners, using Python 3.8 and Setuptools 71.0.4. Curiously, though, it only happens when pinning another package (JPype1) to a specific version (1.2.1). Using it's latest version does not result in the same error. Please see here for the complete information on today's CI run.
Sorry, didn't know #4508 was already opened. These are duplicates, it seems.
One difference I notice between our windows-latest-miniconda- and windows-latest-miniconda-JPype1=1.2.1 tests is that the latter installs pyam
v1.9.0 due to the pin, which directly imports from setuptools_scm
(get_version()
, using v8.1.0). The former installs pyam
v2.2.2, which doesn't rely on setuptools_scm
anymore, so this package is never installed and the workflow passes just fine.
Closing as a dupe of #4508 unless we find otherwise.
I apologize. I see now I directed the reporter to file a separate ticket for this issue if 71.0.4 didn't fix the issue. I missed the association. Is this issue still impacting users?
My error case has been resolved, thanks :)
I apologize. I see now I directed the reporter to file a separate ticket for this issue if 71.0.4 didn't fix the issue. I missed the association. Is this issue still impacting users?
Unfortunately I'm constrained to use a particular Docker image (and hence conda version) for now and have worked around it by doing:
python -m pip install --upgrade pip "setuptools<71"
So until I upgrade to a Docker image that uses a later version of conda I can't test this isn't an issue any more, unless I'm mistaken. I'd also rather not issue conda commands in my environment.
setuptools version
71.0.4, 71.1.0
Python version
3.10.10
OS
ubuntu 22.04.4 LTS
Additional environment information
Azure DevOps with the 'ubuntu-latest' VM image hosting the Docker image jupyter/pyspark-notebook:spark-3.3.2 from here. This Docker container uses Python 3.10.10.
Description
I tried to create a source distribution of my Python package using
python setup.py sdist
with setuptools 71.0.4 or 71.1.0 and get this error:The source distribution was created successfully, however, with setuptools 70.3.0.
I created this issue after feedback from my comment at https://github.com/pypa/setuptools/issues/4476#issuecomment-2242929228
Expected behavior
The source distribution should be created without error.
How to Reproduce
After installing our requirements with pip, and then upgrading pip and setuptools with:
then:
shows:
Then we call
python setup.py sdist
to build our package.Output
Error message from
python setup.py sdist
when using setuptools 71.1.0 as above:The same error message resulted with setuptools 71.0.4 too.