File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
pkgs/development/interpreters/python/cpython/3.7 Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 14
14
, self
15
15
, CF , configd
16
16
, python-setup-hook
17
+ , nukeReferences
17
18
# For the Python package set
18
19
, packageOverrides ? ( self : super : { } )
19
20
} :
33
34
sitePackages = "lib/${ libPrefix } /site-packages" ;
34
35
35
36
buildInputs = filter ( p : p != null ) [
36
- zlib bzip2 expat lzma libffi gdbm sqlite readline ncurses openssl ]
37
+ zlib bzip2 expat lzma libffi gdbm sqlite readline ncurses openssl nukeReferences ]
37
38
++ optionals x11Support [ tcl tk libX11 xproto ]
38
39
++ optionals stdenv . isDarwin [ CF configd ] ;
39
40
@@ -148,6 +149,10 @@ in stdenv.mkDerivation {
148
149
sed -i $i -e "s|-I/nix/store/[^ ']*||g" -e "s|-L/nix/store/[^ ']*||g" -e "s|$TMPDIR|/no-such-path|g"
149
150
done
150
151
152
+ # Further get rid of references. https://github.com/NixOS/nixpkgs/issues/51668
153
+ find $out/lib/python*/config-*-* -type f -print -exec nuke-refs '{}' +
154
+ find $out/lib -name '_sysconfigdata_m*.py*' -print -exec nuke-refs '{}' +
155
+
151
156
# Determinism: rebuild all bytecode
152
157
# We exclude lib2to3 because that's Python 2 code which fails
153
158
# We rebuild three times, once for each optimization level
You can’t perform that action at this time.
0 commit comments