python3Packages.setuptools: add distutils patch to support cross-compilation
This is mostly the same patch applied to stdlib distutils, except rebased and reworked a bit. This fixes cross-compilation of Python packages with C extension modules now that setuptools uses bundled distutils.
This commit is contained in:
parent
92f4c6ed82
commit
2294dace6a
|
@ -1,6 +1,7 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, python
|
||||
, bootstrapped-pip
|
||||
, lib
|
||||
|
@ -27,6 +28,14 @@ let
|
|||
patches = [
|
||||
./tag-date.patch
|
||||
./setuptools-distutils-C++.patch
|
||||
# Use sysconfigdata to find headers. Fixes cross-compilation of extension modules.
|
||||
# https://github.com/pypa/distutils/pull/145
|
||||
(fetchpatch {
|
||||
url = "https://github.com/pypa/distutils/commit/aed7294b7b0c228cc0666a8b04f2959bf310ab57.patch";
|
||||
hash = "sha256-/9+TKv0nllBfnj48zcXLrOgyBj52dBIVbrpnIaQ4O84=";
|
||||
stripLen = 2;
|
||||
extraPrefix = "setuptools/_distutils/";
|
||||
})
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
|
|
Loading…
Reference in a new issue