mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
python312Packages.tensorflow-bin: unbreak
For some reason we have a distutils package now, and that unbreaks it until tensorflow upstream gets its shit together.
This commit is contained in:
parent
acd6aff784
commit
29cef3de5c
1 changed files with 5 additions and 6 deletions
|
@ -4,7 +4,6 @@
|
|||
fetchurl,
|
||||
buildPythonPackage,
|
||||
isPy3k,
|
||||
pythonAtLeast,
|
||||
astor,
|
||||
gast,
|
||||
google-pasta,
|
||||
|
@ -18,6 +17,7 @@
|
|||
grpcio,
|
||||
mock,
|
||||
scipy,
|
||||
distutils,
|
||||
wheel,
|
||||
jax,
|
||||
opt-einsum,
|
||||
|
@ -90,7 +90,10 @@ buildPythonPackage {
|
|||
h5py
|
||||
] ++ lib.optional (!isPy3k) mock;
|
||||
|
||||
build-system = [ wheel ] ++ lib.optionals cudaSupport [ addDriverRunpath ];
|
||||
build-system = [
|
||||
distutils
|
||||
wheel
|
||||
] ++ lib.optionals cudaSupport [ addDriverRunpath ];
|
||||
|
||||
preConfigure = ''
|
||||
unset SOURCE_DATE_EPOCH
|
||||
|
@ -217,9 +220,5 @@ buildPythonPackage {
|
|||
abbradar
|
||||
];
|
||||
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 a new issue