3
0
Fork 0
forked from mirrors/nixpkgs

cpython: Drop unrecognized --with-threads configure flag.

The ./configure script prints a warning when passed this flag,
starting with 3.7:

  configure: WARNING: unrecognized options: --with-threads

The reason is that there's no longer such a thing as a build
without threads.

Eliminate the warning, by only passing the flag on the older releases
that accept it.

Upstream change and discussion:
  https://github.com/python/cpython/commit/a6a4dc816
  https://bugs.python.org/issue31370
This commit is contained in:
Greg Price 2020-03-29 15:32:53 -07:00
parent 1992768157
commit 9d8831c8fe

View file

@ -136,10 +136,12 @@ in with passthru; stdenv.mkDerivation {
configureFlags = [
"--enable-shared"
"--with-threads"
"--without-ensurepip"
"--with-system-expat"
"--with-system-ffi"
] ++ optionals (pythonOlder "3.7") [
# This is unconditionally true starting in CPython 3.7.
"--with-threads"
] ++ optionals (sqlite != null && isPy3k) [
"--enable-loadable-sqlite-extensions"
] ++ optionals (openssl != null) [