python312Packages.pythran: backport python3.12 support
This commit is contained in:
parent
a40db7b124
commit
f5605a41f1
1 changed files with 7 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
, python
|
, python
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, isPy3k
|
, isPy3k
|
||||||
, substituteAll
|
, substituteAll
|
||||||
|
|
||||||
|
@ -40,6 +41,11 @@ in buildPythonPackage rec {
|
||||||
src = ./0001-hardcode-path-to-libgomp.patch;
|
src = ./0001-hardcode-path-to-libgomp.patch;
|
||||||
gomp = "${if stdenv.cc.isClang then openmp else stdenv.cc.cc.lib}/lib/libgomp${stdenv.hostPlatform.extensions.sharedLibrary}";
|
gomp = "${if stdenv.cc.isClang then openmp else stdenv.cc.cc.lib}/lib/libgomp${stdenv.hostPlatform.extensions.sharedLibrary}";
|
||||||
})
|
})
|
||||||
|
(fetchpatch {
|
||||||
|
# Python 3.12 support
|
||||||
|
url = "https://github.com/serge-sans-paille/pythran/commit/258ab9aaf26172f669eab1bf2a346b5f65db3ac0.patch";
|
||||||
|
hash = "sha256-T+FLptDYIgzHBSXShULqHr/G8ttBFamq1M5JlB2HxDM=";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
# xsimd: unvendor this header-only C++ lib
|
# xsimd: unvendor this header-only C++ lib
|
||||||
|
@ -57,6 +63,7 @@ in buildPythonPackage rec {
|
||||||
gast
|
gast
|
||||||
numpy
|
numpy
|
||||||
beniget
|
beniget
|
||||||
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
|
|
Loading…
Reference in a new issue