Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test that setuptools and wheel are installed (or not) #17446

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

tianon
Copy link
Member

@tianon tianon commented Aug 28, 2024

In Python 3.12+, setuptools and wheel should be removed (but should be present in older versions).

Technically this should be tested on Python 2 as well, but I opted not to because the interfaces for doing so are different and that only exists in a single variant of PyPy (that frankly I don't care too much about verifying the "correctness" of as much).

docker-library/python#954

In Python 3.12+, setuptools and wheel should be removed (but should be present in older versions).

Technically this should be tested on Python 2 as well, but I opted not to because the interfaces for doing so are different and that only exists in a single variant of PyPy (that frankly I don't care too much about verifying the "correctness" of as much).
@tianon
Copy link
Member Author

tianon commented Aug 28, 2024

docker-library/python#954 (comment)

In addition to that verification, I've also verified that this works fine with current pypy:2-slim and pypy:3-slim.

@tianon
Copy link
Member Author

tianon commented Aug 28, 2024

To illustrate what "failure" looks like:

$ test/tests/python-imports/run.sh python:3.12-alpine3.20
Traceback (most recent call last):
  File "/tmp/test-dir/python-imports/./container.py", line 32, in <module>
    assert(hasSetuptools == shouldHaveSetuptoolsAndWheel)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

Copy link
Contributor

@whalelines whalelines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I have followed the double negatives properly

@yosifkit yosifkit merged commit d155125 into docker-library:master Aug 28, 2024
6 checks passed
@yosifkit yosifkit deleted the test-setuptools-wheel branch August 28, 2024 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants