Merge pull request #13118 from FRidh/buildPythonApplication
buildPythonApplication: function for building Python applications
This commit is contained in:
commit
b5d9636c66
@ -9161,6 +9161,7 @@ let
|
|||||||
|
|
||||||
# python function with default python interpreter
|
# python function with default python interpreter
|
||||||
buildPythonPackage = pythonPackages.buildPythonPackage;
|
buildPythonPackage = pythonPackages.buildPythonPackage;
|
||||||
|
buildPythonApplication = pythonPackages.buildPythonApplication;
|
||||||
|
|
||||||
# `nix-env -i python-nose` installs for 2.7, the default python.
|
# `nix-env -i python-nose` installs for 2.7, the default python.
|
||||||
# Therefore we do not recurse into attributes here, in contrast to
|
# Therefore we do not recurse into attributes here, in contrast to
|
||||||
|
@ -19,6 +19,8 @@ let
|
|||||||
bootstrapped-pip = callPackage ../development/python-modules/bootstrapped-pip { };
|
bootstrapped-pip = callPackage ../development/python-modules/bootstrapped-pip { };
|
||||||
});
|
});
|
||||||
|
|
||||||
|
buildPythonApplication = args: buildPythonPackage ({namePrefix="";} // args );
|
||||||
|
|
||||||
# Unique python version identifier
|
# Unique python version identifier
|
||||||
pythonName =
|
pythonName =
|
||||||
if isPy26 then "python26" else
|
if isPy26 then "python26" else
|
||||||
@ -38,7 +40,7 @@ let
|
|||||||
|
|
||||||
in modules // {
|
in modules // {
|
||||||
|
|
||||||
inherit python isPy26 isPy27 isPy33 isPy34 isPy35 isPyPy isPy3k pythonName buildPythonPackage;
|
inherit python isPy26 isPy27 isPy33 isPy34 isPy35 isPyPy isPy3k pythonName buildPythonPackage buildPythonApplication;
|
||||||
|
|
||||||
# helpers
|
# helpers
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user