Merge pull request #13118 from FRidh/buildPythonApplication

buildPythonApplication: function for building Python applications

+4 -1
+1
pkgs/top-level/all-packages.nix
··· 9161 9162 # python function with default python interpreter 9163 buildPythonPackage = pythonPackages.buildPythonPackage; 9164 9165 # `nix-env -i python-nose` installs for 2.7, the default python. 9166 # Therefore we do not recurse into attributes here, in contrast to
··· 9161 9162 # python function with default python interpreter 9163 buildPythonPackage = pythonPackages.buildPythonPackage; 9164 + buildPythonApplication = pythonPackages.buildPythonApplication; 9165 9166 # `nix-env -i python-nose` installs for 2.7, the default python. 9167 # Therefore we do not recurse into attributes here, in contrast to
+3 -1
pkgs/top-level/python-packages.nix
··· 19 bootstrapped-pip = callPackage ../development/python-modules/bootstrapped-pip { }; 20 }); 21 22 # Unique python version identifier 23 pythonName = 24 if isPy26 then "python26" else ··· 38 39 in modules // { 40 41 - inherit python isPy26 isPy27 isPy33 isPy34 isPy35 isPyPy isPy3k pythonName buildPythonPackage; 42 43 # helpers 44
··· 19 bootstrapped-pip = callPackage ../development/python-modules/bootstrapped-pip { }; 20 }); 21 22 + buildPythonApplication = args: buildPythonPackage ({namePrefix="";} // args ); 23 + 24 # Unique python version identifier 25 pythonName = 26 if isPy26 then "python26" else ··· 40 41 in modules // { 42 43 + inherit python isPy26 isPy27 isPy33 isPy34 isPy35 isPyPy isPy3k pythonName buildPythonPackage buildPythonApplication; 44 45 # helpers 46