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