Title: Python images (At least bookwork-slim) relased today break installation of sdist packages · Issue #1023 · docker-library/python · GitHub
Open Graph Title: Python images (At least bookwork-slim) relased today break installation of sdist packages · Issue #1023 · docker-library/python
X Title: Python images (At least bookwork-slim) relased today break installation of sdist packages · Issue #1023 · docker-library/python
Description: Following the discussion her pypa/wheel#660 (comment) - images relesed today started to break CI - Airflow, but also other people have similar issue. I explained it in the issue but let me copy it here as well: Example failure: https://g...
Open Graph Description: Following the discussion her pypa/wheel#660 (comment) - images relesed today started to break CI - Airflow, but also other people have similar issue. I explained it in the issue but let me copy it ...
X Description: Following the discussion her pypa/wheel#660 (comment) - images relesed today started to break CI - Airflow, but also other people have similar issue. I explained it in the issue but let me copy it ...
Opengraph URL: https://github.com/docker-library/python/issues/1023
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python images (At least bookwork-slim) relased today break installation of sdist packages","articleBody":"Following the discussion her https://github.com/pypa/wheel/issues/660#issuecomment-2788333871 - images relesed today started to break CI - Airflow, but also other people have similar issue.\n\nI explained it in the issue but let me copy it here as well:\n\nExample failure: https://github.com/apache/airflow/actions/runs/14347343802/job/40220981486#step:6:809 \n\n```\n6 13.37 Building wheels for collected packages: pyspark\ndocker-library/official-images#6 13.37 Building wheel for pyspark (setup.py): started\ndocker-library/official-images#6 14.11 Building wheel for pyspark (setup.py): finished with status 'error'\ndocker-library/official-images#6 14.11 error: subprocess-exited-with-error\ndocker-library/official-images#6 14.11 \ndocker-library/official-images#6 14.11 × python setup.py bdist_wheel did not run successfully.\ndocker-library/official-images#6 14.11 │ exit code: 1\ndocker-library/official-images#6 14.11 ╰─\u003e [8 lines of output]\ndocker-library/official-images#6 14.11 /home/airflow/.local/lib/python3.9/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead\ndocker-library/official-images#6 14.11 warnings.warn(\ndocker-library/official-images#6 14.11 usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]\ndocker-library/official-images#6 14.11 or: setup.py --help [cmd1 cmd2 ...]\ndocker-library/official-images#6 14.11 or: setup.py --help-commands\ndocker-library/official-images#6 14.11 or: setup.py cmd --help\ndocker-library/official-images#6 14.11 \ndocker-library/official-images#6 14.11 error: invalid command 'bdist_wheel'\ndocker-library/official-images#6 14.11 [end of output]\ndocker-library/official-images#6 14.11 \ndocker-library/official-images#6 14.11 note: This error originates from a subprocess, and is likely not a problem with pip.\ndocker-library/official-images#6 14.11 ERROR: Failed building wheel for pyspark\ndocker-library/official-images#6 14.12 Running setup.py clean for pyspark\n```\n\nAnd after some (non-obvious investigation I found out what the root cause is and that's somethign you might want to talk to the maintainers of official Python images in dockerhub, because probably a lot of people using them will have similar issue after 0.46+ wheel that does not contain bdist_wheel any more and rely on setuptools \u003e 70.1.\n\nThe problem is that some - latest - official python images available in dockerhub are causing this problem to happen.\n\nIf you look - for example - at latest Python debian bookworm slim images you will see this:\n\n```\n[jarek:~/code/airflow] main ± docker run -it python:3.9-slim-bookworm bash\nroot@fb321ef4723e:/# pip list\nPackage Version\n---------- -------\npip 23.0.1\nsetuptools 58.1.0\nwheel 0.45.1\n\n[notice] A new release of pip is available: 23.0.1 -\u003e 25.0.1\n[notice] To update, run: pip install --upgrade pip\nroot@fb321ef4723e:/# exit\nexit\n[jarek:~/code/airflow] main 14s ± docker run -it python:3.10-slim-bookworm bash \nroot@2234dee7aba0:/# pip list\nPackage Version\n---------- -------\npackaging 24.2\npip 23.0.1\nsetuptools 65.5.1\nwheel 0.46.1\n\n[notice] A new release of pip is available: 23.0.1 -\u003e 25.0.1\n[notice] To update, run: pip install --upgrade pip\nroot@2234dee7aba0:/# exit\nexit\n[jarek:~/code/airflow] main 25s ± docker run -it python:3.11-slim-bookworm bash\nroot@b62343d129a6:/# pip list\nPackage Version\n---------- -------\npackaging 24.2\npip 24.0\nsetuptools 65.5.1\nwheel 0.46.1\n\n[jarek:~/code/airflow] main 1m5s ± docker run -it python:3.12-slim-bookworm bash\nroot@411574e67a7e:/# pip list\nPackage Version\n------- -------\npip 25.0.1\nroot@411574e67a7e:/# \n```\n\n\nAs you can see - default version of setuptools in all those images causes problem:\n\n* Python 3.9 -\u003e both wheel and setuptools are old, but if you **just** upgrade wheel but do not upgrade setuptools, sdist installations will fail\n* Python 3.10, 3.11 -\u003e wheel is already updated, but setuptools is \u003c 70.1 - which mean that by default installing somethign from sdist wil fail there - even if you do not touch setuptools and wheel\n* Python 3.12 -\u003e all good, no setuptools, no wheel, newest versions of those will be installed\n\nI am going to upgrade setuptools and wheels to latest versions in our images, so we will solve the problem in Airflow, but I think currently released \"official images\" need to be rebuild and latest setuptools should be installed in all of them.\n\n\n\n\n\n\n\n\n\n","author":{"url":"https://github.com/potiuk","@type":"Person","name":"potiuk"},"datePublished":"2025-04-09T06:43:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":21},"url":"https://github.com/1023/python/issues/1023"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0b7896cf-f070-24aa-9d59-58bc9c4c3f61 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF1A:29B0B8:21EC89F:30FC956:6A58E6F7 |
| html-safe-nonce | a313727c00df3c834284ce3f651e4439665af799a0c66085f51479e8a83b2a42 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjFBOjI5QjBCODoyMUVDODlGOjMwRkM5NTY6NkE1OEU2RjciLCJ2aXNpdG9yX2lkIjoiNzQ4MTkyNjExMTk0NzQ1MDEwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d620a2f889109dea9853dbb893e29ce32d24050f332eb5b7e23179d542b1afa8 |
| hovercard-subject-tag | issue:2983303532 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/docker-library/python/1023/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eac37bb424086c9295ee92dbba7e7202b85ca7bbac78cf69e2c1cb296fa7026e/docker-library/python/issues/1023 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eac37bb424086c9295ee92dbba7e7202b85ca7bbac78cf69e2c1cb296fa7026e/docker-library/python/issues/1023 |
| og:image:alt | Following the discussion her pypa/wheel#660 (comment) - images relesed today started to break CI - Airflow, but also other people have similar issue. I explained it in the issue but let me copy it ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | potiuk |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| turbo-cache-control | no-preview |
| go-import | github.com/docker-library/python git https://github.com/docker-library/python.git |
| octolytics-dimension-user_id | 7739233 |
| octolytics-dimension-user_login | docker-library |
| octolytics-dimension-repository_id | 21054928 |
| octolytics-dimension-repository_nwo | docker-library/python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21054928 |
| octolytics-dimension-repository_network_root_nwo | docker-library/python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width