mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
Merge pull request #333568 from mweinelt/tf-bin-3.12
python312Packages.tensorflow-bin: unbreak
This commit is contained in:
commit
e55a24ef5a
@ -4,7 +4,6 @@
|
|||||||
fetchurl,
|
fetchurl,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
isPy3k,
|
isPy3k,
|
||||||
pythonAtLeast,
|
|
||||||
astor,
|
astor,
|
||||||
gast,
|
gast,
|
||||||
google-pasta,
|
google-pasta,
|
||||||
@ -18,6 +17,7 @@
|
|||||||
grpcio,
|
grpcio,
|
||||||
mock,
|
mock,
|
||||||
scipy,
|
scipy,
|
||||||
|
distutils,
|
||||||
wheel,
|
wheel,
|
||||||
jax,
|
jax,
|
||||||
opt-einsum,
|
opt-einsum,
|
||||||
@ -90,7 +90,10 @@ buildPythonPackage {
|
|||||||
h5py
|
h5py
|
||||||
] ++ lib.optional (!isPy3k) mock;
|
] ++ lib.optional (!isPy3k) mock;
|
||||||
|
|
||||||
build-system = [ wheel ] ++ lib.optionals cudaSupport [ addDriverRunpath ];
|
build-system = [
|
||||||
|
distutils
|
||||||
|
wheel
|
||||||
|
] ++ lib.optionals cudaSupport [ addDriverRunpath ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
unset SOURCE_DATE_EPOCH
|
unset SOURCE_DATE_EPOCH
|
||||||
@ -217,9 +220,5 @@ buildPythonPackage {
|
|||||||
abbradar
|
abbradar
|
||||||
];
|
];
|
||||||
badPlatforms = [ "x86_64-darwin" ];
|
badPlatforms = [ "x86_64-darwin" ];
|
||||||
# Cannot import tensortfow on python 3.12 as it still dependends on distutils:
|
|
||||||
# ModuleNotFoundError: No module named 'distutils'
|
|
||||||
# https://github.com/tensorflow/tensorflow/issues/58073
|
|
||||||
broken = pythonAtLeast "3.12";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user