Python: improve cross-compilation
This changeset allows for cross-compilation of Python packages. Packages built with buildPythonPackage are not allowed to refer to the build machine. Executables that have shebangs will refer to the host.
This commit is contained in:
@@ -43,7 +43,6 @@ let
|
||||
else ff;
|
||||
|
||||
buildPythonPackage = makeOverridablePythonPackage ( makeOverridable (callPackage ../development/interpreters/python/build-python-package.nix {
|
||||
inherit bootstrapped-pip;
|
||||
flit = self.flit;
|
||||
# We want Python libraries to be named like e.g. "python3.6-${name}"
|
||||
inherit namePrefix;
|
||||
@@ -51,7 +50,6 @@ let
|
||||
}));
|
||||
|
||||
buildPythonApplication = makeOverridablePythonPackage ( makeOverridable (callPackage ../development/interpreters/python/build-python-package.nix {
|
||||
inherit bootstrapped-pip;
|
||||
flit = self.flit;
|
||||
namePrefix = "";
|
||||
toPythonModule = x: x; # Application does not provide modules.
|
||||
|
||||
Reference in New Issue
Block a user