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: pip, black, setuptools, twine, wheel, and aws-sam-cli incorrectly installed in superchain #4201

Merged
merged 3 commits into from
Aug 2, 2023

Conversation

RomainMuller
Copy link
Contributor

The packages were installed in a virtual environment, which is not subsequently re-activated in the image's ENTRYPOINT. Instead, install the packages 'globally'


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

…y installed in superchain

The packages were installed in a virtual environment, which is not subsequently re-activated in
the image's ENTRYPOINT. Instead, install the packages 'globally'
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Aug 2, 2023
@RomainMuller RomainMuller force-pushed the rmuller/no-venv-in-dockerfile-build branch 2 times, most recently from 2d84593 to eb6317c Compare August 2, 2023 14:50
@RomainMuller RomainMuller merged commit 851415c into main Aug 2, 2023
18 checks passed
@RomainMuller RomainMuller deleted the rmuller/no-venv-in-dockerfile-build branch August 2, 2023 14:51
RomainMuller added a commit that referenced this pull request Aug 2, 2023
…y installed in superchain (#4201)

The packages were installed in a virtual environment, which is not subsequently re-activated in the image's ENTRYPOINT. Instead, install the packages 'globally'
rix0rrr added a commit that referenced this pull request Aug 10, 2023
In #4201, we introduced a Python distribution built with `pyenv`
in order to safely install some Python packages globally.

However, using pyenv drives the build time of the images up from 30m to
3 hours.

This PR switches back to the distro Python and installs `pipx` to
do global installs of Python packages. `pipx` will give each tool
its own venv (similar to how `npm install -g` would work).
mergify bot pushed a commit that referenced this pull request Aug 10, 2023
In #4201, we introduced a Python distribution built with `pyenv` in order to safely install some Python packages globally.

However, using pyenv drives the build time of the images up from 30m to 3 hours.

This PR switches back to the distro Python and installs `pipx` to do global installs of Python packages. `pipx` will give each tool its own venv (similar to how `npm install -g` would work).

---

By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license].

[Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
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