Binary build script: Enable --with-system-expat
#1319
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Means the
pyexpat
module is now built using theexpat
library from the stack image (rather than CPython's vendored version), so that:pyexpat.*.so
, saving ~1.2MB)See:
https://docs.python.org/3/using/configure.html#cmdoption-with-system-expat
https://github.com/docker-library/python/blob/1cf43e70e45843c70909a5f914c3c6d0f85fc200/Dockerfile-linux.template#L161
The current Python vendored expat version is
2.4.7
(that's only because it's just been bumped for the first time in a while, in general it's infrequently updated - eg commit history).The current expat versions in the stack images, are (but note these will have security backports, so the base version number doesn't quite tell the full story):
2.2.5-3ubuntu0.7
2.2.9-1ubuntu0.4
2.4.7-1
Note: This change will only take effect for future Python version releases (or future Heroku stacks) - existing Python binaries are not being recompiled.
GUS-W-8060029.