makePythonWriter: allow providing function for libraries (#305163)
This commit is contained in:
commit
6730f8c4b0
@ -1194,7 +1194,12 @@ rec {
|
|||||||
// {
|
// {
|
||||||
interpreter =
|
interpreter =
|
||||||
if pythonPackages != pkgs.pypy2Packages || pythonPackages != pkgs.pypy3Packages then
|
if pythonPackages != pkgs.pypy2Packages || pythonPackages != pkgs.pypy3Packages then
|
||||||
if libraries == [ ] then python.interpreter else (python.withPackages (ps: libraries)).interpreter
|
if libraries == [ ] then
|
||||||
|
python.interpreter
|
||||||
|
else if (lib.isFunction libraries) then
|
||||||
|
(python.withPackages libraries).interpreter
|
||||||
|
else
|
||||||
|
(python.withPackages (ps: libraries)).interpreter
|
||||||
else
|
else
|
||||||
python.interpreter;
|
python.interpreter;
|
||||||
check = optionalString (python.isPy3k && doCheck) (
|
check = optionalString (python.isPy3k && doCheck) (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user