Skip to content

Python 3.7: Install libuuid packages for native _uuid module #326

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

Merged
merged 3 commits into from
Aug 3, 2018

Conversation

JayH5
Copy link
Contributor

@JayH5 JayH5 commented Aug 3, 2018

Still to do:

  • Get this working on the non-slim Debian images
  • Make the update.sh code cleaner?

I'm not sure how best to do the above?

The util-linux-dev package was actually already being installed (as a dependency of libtirpc-dev) on Alpine so the native module was already being built and you can see libuuid as one of the final Python runtime dependencies. This makes it explicit and gets Debian to build the module as well.

@JayH5
Copy link
Contributor Author

JayH5 commented Aug 3, 2018

On my machine, running benchmarks like these, I got ~20% speedup on both UUID1 generation and module import. So not a huge increase on already quite fast operations.

Copy link
Member

@tianon tianon left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks! 👍

@tianon tianon merged commit 491da1c into docker-library:master Aug 3, 2018
@@ -12,6 +12,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
# Python 3.4 on Stretch+ needs to use an older version of "libssl-dev" (these lines both get removed for every other combination)
libssl-dev \
tk-dev \
uuid-dev \
Copy link
Member

Choose a reason for hiding this comment

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

Hah, we finally found a popular -dev that isn't already part of buildpack-deps! 😄

If we can find more examples of it being used (Ruby gems, etc), I'd be +1 to adding it to buildpack-deps itself, but that's a separate discussion. 😇

tianon added a commit to infosiftr/stackbrew that referenced this pull request Aug 3, 2018
- `drupal`: 8.6.0-beta2
- `mysql`: install more utilities (docker-library/mysql#465)
- `python`: native `_uuid` (docker-library/python#326)
- `redis`: 4.0.11, 5.0-rc4
- `rocket.chat`: Node.js 8.11 (RocketChat/Docker.Official.Image#43)
- `wordpress`: 4.9.8
@JayH5 JayH5 deleted the py3.7-uuid branch August 6, 2018 08:20
JayH5 added a commit to praekeltfoundation/docker-alpine-python that referenced this pull request Oct 25, 2018
Sign up for free to 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.

2 participants