forked from mirrors/nixpkgs
python3Minimal: disable optimizations
No point for the bootstrapping.
This commit is contained in:
parent
bcf03e8cd2
commit
a337c44db6
|
@ -31,6 +31,7 @@
|
|||
, stripBytecode ? false
|
||||
, includeSiteCustomize ? true
|
||||
, static ? false
|
||||
, enableOptimizations ? true
|
||||
}:
|
||||
|
||||
assert x11Support -> tcl != null
|
||||
|
@ -151,11 +152,12 @@ in with passthru; stdenv.mkDerivation {
|
|||
PYTHONHASHSEED=0;
|
||||
|
||||
configureFlags = [
|
||||
"--enable-optimizations"
|
||||
"--enable-shared"
|
||||
"--without-ensurepip"
|
||||
"--with-system-expat"
|
||||
"--with-system-ffi"
|
||||
] ++ optionals enableOptimizations [
|
||||
"--enable-optimizations"
|
||||
] ++ optionals (pythonOlder "3.7") [
|
||||
# This is unconditionally true starting in CPython 3.7.
|
||||
"--with-threads"
|
||||
|
|
|
@ -146,6 +146,7 @@ in {
|
|||
rebuildBytecode = false;
|
||||
stripBytecode = true;
|
||||
includeSiteCustomize = false;
|
||||
enableOptimizations = false;
|
||||
}).overrideAttrs(old: {
|
||||
pname = "python3-minimal";
|
||||
meta = old.meta // {
|
||||
|
|
Loading…
Reference in a new issue