Skip to content

Commit 49c6893

Browse files
committed
buildPythonApplication: function for building Python applications
Currently, the only difference is that namePrefix is not set
1 parent 885acea commit 49c6893

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

pkgs/top-level/all-packages.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9103,6 +9103,7 @@ let
91039103

91049104
# python function with default python interpreter
91059105
buildPythonPackage = pythonPackages.buildPythonPackage;
9106+
buildPythonApplication = pythonPackages.buildPythonApplication;
91069107

91079108
# `nix-env -i python-nose` installs for 2.7, the default python.
91089109
# Therefore we do not recurse into attributes here, in contrast to

pkgs/top-level/python-packages.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ let
1919
bootstrapped-pip = callPackage ../development/python-modules/bootstrapped-pip { };
2020
});
2121

22+
buildPythonApplication = args: buildPythonPackage ({namePrefix="";} // args );
23+
2224
# Unique python version identifier
2325
pythonName =
2426
if isPy26 then "python26" else
@@ -38,7 +40,7 @@ let
3840

3941
in modules // {
4042

41-
inherit python isPy26 isPy27 isPy33 isPy34 isPy35 isPyPy isPy3k pythonName buildPythonPackage;
43+
inherit python isPy26 isPy27 isPy33 isPy34 isPy35 isPyPy isPy3k pythonName buildPythonPackage buildPythonApplication;
4244

4345
# helpers
4446

0 commit comments

Comments
 (0)