Skip to content

Commit

Permalink
cpython: provide libuuid for the _uuid module
Browse files Browse the repository at this point in the history
Calls against libuuid are far more performant than the pure-python
methods to generate uuids. E.g. uuid.uuid1() will call `ip` using `Popen`
in the pure-python scenario.
  • Loading branch information
mweinelt committed Jan 28, 2025
1 parent 9c0340a commit d6ba642
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/development/interpreters/python/cpython/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
, bzip2
, expat
, libffi
, libuuid
, libxcrypt
, mpdecimal
, ncurses
Expand Down Expand Up @@ -166,6 +167,7 @@ let
bzip2
expat
libffi
libuuid
libxcrypt
mpdecimal
ncurses
Expand Down
1 change: 1 addition & 0 deletions pkgs/development/interpreters/python/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ in {
gdbm = null;
sqlite = null;
tzdata = null;
libuuid = null;
libffi = libffiBoot; # without test suite
stripConfig = true;
stripIdlelib = true;
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12508,6 +12508,8 @@ with pkgs;
util-linuxMinimal = util-linux.override {
nlsSupport = false;
ncursesSupport = false;
pamSupport = false;
shadowSupport = false;
systemdSupport = false;
translateManpages = false;
};
Expand Down

0 comments on commit d6ba642

Please sign in to comment.