Bug 2186076
| Summary: | python-setuptools 62.6.0 FTBFS with Python 3.11.1 on F37 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Charalampos Stratakis <cstratak> | ||||||||
| Component: | python-setuptools | Assignee: | Python Maintainers <python-maint> | ||||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
| Severity: | unspecified | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | 37 | CC: | cstratak, mhroncok, python-maint, python-packagers-sig, thrnciar | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2023-04-26 12:11:56 UTC | Type: | Bug | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Embargoed: | |||||||||||
| Bug Depends On: | |||||||||||
| Bug Blocks: | 2158677 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Charalampos Stratakis
2023-04-12 03:13:06 UTC
Created attachment 1957043 [details]
Current build log with the egg-info removal
Created attachment 1957044 [details]
Build log without removing the egg-info dir
The issue can be worked around by utilizing the github tarball which contains the bootstrap.egg-info directory
Draft example:
diff --git a/python-setuptools.spec b/python-setuptools.spec
index 0971702..1a88305 100644
--- a/python-setuptools.spec
+++ b/python-setuptools.spec
@@ -20,7 +20,7 @@
# Disable it if you build this package in an alternative stack.
%bcond_without main_python
-%global python_wheel_name %{srcname}-%{version}-py3-none-any.whl
+%global python_wheel_name %{srcname}-%{version}.post20230412-py3-none-any.whl
Name: python-setuptools
# When updating, update the bundled libraries versions bellow!
@@ -43,7 +43,7 @@ Summary: Easily build and distribute Python packages
# the setuptools logo is MIT
License: MIT and ASL 2.0 and (BSD or ASL 2.0) and Python
URL: https://pypi.python.org/pypi/%{srcname}
-Source0: %{pypi_source %{srcname} %{version}}
+Source0: https://github.com/pypa/%{srcname}/archive/refs/tags/v%{version}.tar.gz
# Some test deps are optional and either not desired or not available in Fedora, thus this patch removes them.
Patch: Remove-optional-or-unpackaged-test-deps.patch
@@ -133,7 +133,7 @@ A Python wheel of setuptools to use with venv.
# If we don't have setuptools installed yet, we use the pre-generated .egg-info
# See https://github.com/pypa/setuptools/pull/2543
# And https://github.com/pypa/setuptools/issues/2550
-rm -r %{srcname}.egg-info
+#rm -r %{srcname}.egg-info
%endif
The "post20230412" bit worries me. Maybe we can add the GH tarball as Source1 and only unpack bootstrap.egg-info directory from that? It will effectively double the size of the SRPM, but that does not sound like a big deal for me. (In reply to Miro Hrončok from comment #5) > Maybe we can add the GH tarball as Source1 and only unpack > bootstrap.egg-info directory from that? It will effectively double the size > of the SRPM, but that does not sound like a big deal for me. Interesting idea. I'll hack something up. |