Skip to content

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

Merged
tianon merged 3 commits into
docker-library:masterfrom
JayH5:py3.7-uuid
Aug 3, 2018
Merged

Python 3.7: Install libuuid packages for native _uuid module#326
tianon merged 3 commits into
docker-library:masterfrom
JayH5:py3.7-uuid

Conversation

@JayH5

@JayH5 JayH5 commented Aug 3, 2018

Copy link
Copy Markdown
Contributor

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

JayH5 commented Aug 3, 2018

Copy link
Copy Markdown
Contributor Author

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.

@tianon tianon left a comment

Copy link
Copy Markdown
Member

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
# 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
Copy Markdown
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