-
Notifications
You must be signed in to change notification settings - Fork 246
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
fix(superchain): installed setuptools is an unsupported version #4333
Conversation
@@ -65,7 +65,7 @@ beforeAll(async () => { | |||
[ | |||
'[tool.pyright]', | |||
'defineConstant = { DEBUG = true }', | |||
'pythonVersion = "3.7"', | |||
'pythonVersion = "3.8"', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was just a miss in the python3.8 PR
b9165d6
to
e4fc1ad
Compare
${PYTHON} -m pip install --upgrade pip~=22.1 twine~=4.0 | ||
|
||
# Note the venv is not used by the jsii-pacmak commands | ||
${PYTHON} -m pip install --upgrade pip>=23.3.1 setuptools>=68.2.2 wheel>=0.41.3 twine~=4.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The venv isn't actually used to run pacmak for some reason. So this change doesn't have any effect on the failure in question. I could revert it, but feels better to also require an explicit version here.
superchain/Dockerfile
Outdated
@@ -171,7 +171,7 @@ RUN apt-get update | |||
&& apt-get -y install python3-dev python3-pip python3-venv \ | |||
&& coercepip='--break-system-packages' \ | |||
&& if [[ ${DEBIAN_VERSION} == "buster" || ${DEBIAN_VERSION} == "bullseye" ]]; then coercepip=''; fi \ | |||
&& python3 -m pip install ${coercepip} pipx \ | |||
&& python3 -m pip install ${coercepip} pipx "pip>=23.3.1" "setuptools>=68.2.2" "wheel>=0.41.3" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the change!
Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it! |
Merging (with squash)... |
Running the jsii-pacmak build tests inside a
jsii/superchain:1-bullseye-slim-nightly
container would fail with "invalid command 'bdist_wheel'".This was due to an outdated & unsupported (by jsii) version of
setuptools
being present in the image.In #4219 we inadvertently removed installing a newer version of
setuptools
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.