python3Minimal: disable optimizations

No point for the bootstrapping.
This commit is contained in:
Frederik Rietdijk 2020-06-04 18:37:59 +02:00
parent bcf03e8cd2
commit a337c44db6
2 changed files with 4 additions and 1 deletions

View file

@ -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"

View file

@ -146,6 +146,7 @@ in {
rebuildBytecode = false;
stripBytecode = true;
includeSiteCustomize = false;
enableOptimizations = false;
}).overrideAttrs(old: {
pname = "python3-minimal";
meta = old.meta // {