-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Stop installing apt packages for compiling Python #7943
Stop installing apt packages for compiling Python #7943
Conversation
c27c418
to
4ec70fd
Compare
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.
LGTM I compared this to the suggested build environment list for pyenv https://github.com/pyenv/pyenv/wiki#suggested-build-environment
The only one not listed here was curl but I guess that's installed elsewhere
I'm going to try deploying this in prod and see what Sentry shows for user errors... but again, probably we should move forward with this, and then add back missing packages as needed in a follow-on PR to dependabot-core/python/Dockerfile Lines 128 to 143 in 51b268a
|
Now that we've stopped compiling Python from source and instead download/copy a pre-compiled version, there's no need to install these apt packages. A few may be needed for users to build python deps written in native C, but those shouldn't be listed in this section, they should be added later in the the Dockerfile where we already list other packages needed for that: https://github.com/dependabot/dependabot-core/blob/51b268a81a983c6547af4d95768218a03bd8e751/python/Dockerfile#L128-L143 Also, it's unclear which of these would be needed, so let's start by removing these, and then as needed can add back the couple that we actually discover are needed.
4ec70fd
to
021fca9
Compare
Now that we've stopped compiling Python from source and instead download/copy a pre-compiled version, there's no need to install these apt packages. A few may be needed for users to build python deps written in native C, but those shouldn't be listed in this section, they should be added later in the the Dockerfile where we already list other packages needed for that: https://github.com/dependabot/dependabot-core/blob/51b268a81a983c6547af4d95768218a03bd8e751/python/Dockerfile#L128-L143 Also, it's unclear which of these would be needed, so let's start by removing these, and then as needed can add back the couple that we actually discover are needed.
Now that we've stopped compiling Python from source and instead download/copy a pre-compiled version, there's no need to install these apt packages.
A few may be needed for users to build python deps written in native C, but those shouldn't be listed in this section, they should be added later in the the Dockerfile where we already list other packages needed for that:
dependabot-core/python/Dockerfile
Lines 128 to 143 in 51b268a
Also, it's unclear which of these would be needed, so let's start by removing these, and then as needed can add back the couple that we actually discover are needed.