Skip to content

Adds --no-compile flag to pip installs - #618

Draft
Scott Kool (ComradeCow) wants to merge 1 commit into
masterfrom
skool/remove-ansible-bytecode
Draft

Adds --no-compile flag to pip installs#618
Scott Kool (ComradeCow) wants to merge 1 commit into
masterfrom
skool/remove-ansible-bytecode

Conversation

@ComradeCow

Copy link
Copy Markdown
Member

This tells pip to not pre-compile the python files from installed packages. Testing locally, this shaves 1.8GB from the overall Base image size. The downside will be for ansible users, the first run of the command will now take longer because it will need to run that compile step.

This tells pip to not pre-compile the python files from installed packages. Testing locally, this shaves 1.8GB from the overall Base image size. The downside will be for ansible users, the first run of the command will now take longer because it will need to run that compile step.
@ComradeCowScott Kool (ComradeCow) changed the title Adds --no-compile step to pip installsAdds --no-compile flag to pip installsMay 1, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Image size with this change is base: 5170MB, tools: 8808MB.

Sign up for freeto 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.

1 participant

@ComradeCow