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

fix(superchain): installed setuptools is an unsupported version #4333

Merged
merged 3 commits into from
Nov 15, 2023

Conversation

mrgrain
Copy link
Contributor

@mrgrain mrgrain commented Nov 15, 2023

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.

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Nov 15, 2023
@@ -65,7 +65,7 @@ beforeAll(async () => {
[
'[tool.pyright]',
'defineConstant = { DEBUG = true }',
'pythonVersion = "3.7"',
'pythonVersion = "3.8"',
Copy link
Contributor Author

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

superchain/Dockerfile Outdated Show resolved Hide resolved
@mrgrain mrgrain changed the title fix: setuptools version too old fix(superchain): installed setuptools is an unsupported version Nov 15, 2023
@mrgrain mrgrain marked this pull request as ready for review November 15, 2023 11:49
@mrgrain mrgrain force-pushed the mrgrain/fix/setuptools-too-old branch from b9165d6 to e4fc1ad Compare November 15, 2023 12:49
${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
Copy link
Contributor Author

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.

@@ -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" \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the change!

Copy link
Contributor

mergify bot commented Nov 15, 2023

Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it!

@mergify mergify bot added the pr/ready-to-merge This PR is ready to be merged. label Nov 15, 2023
Copy link
Contributor

mergify bot commented Nov 15, 2023

Merging (with squash)...

@mergify mergify bot merged commit c0a4140 into main Nov 15, 2023
32 checks passed
@mergify mergify bot deleted the mrgrain/fix/setuptools-too-old branch November 15, 2023 14:25
@mergify mergify bot removed the pr/ready-to-merge This PR is ready to be merged. label Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants