From 29cef3de5c17aaa0f5499d5ad8651c58814b96b3 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 10 Aug 2024 02:12:50 +0200 Subject: [PATCH] python312Packages.tensorflow-bin: unbreak For some reason we have a distutils package now, and that unbreaks it until tensorflow upstream gets its shit together. --- pkgs/development/python-modules/tensorflow/bin.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/tensorflow/bin.nix b/pkgs/development/python-modules/tensorflow/bin.nix index bb476a724052..140a77942dab 100644 --- a/pkgs/development/python-modules/tensorflow/bin.nix +++ b/pkgs/development/python-modules/tensorflow/bin.nix @@ -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"; }; }