Merge pull request #146285 from SuperSandro2000/tensorflow-bin
python39Packages.tensorflow: cleanups
This commit is contained in:
@@ -20,8 +20,8 @@
|
||||
, tensorflow-estimator_2
|
||||
, tensorflow-tensorboard_2
|
||||
, cudaSupport ? false
|
||||
, cudatoolkit ? null
|
||||
, cudnn ? null
|
||||
, cudatoolkit
|
||||
, cudnn
|
||||
, zlib
|
||||
, python
|
||||
, keras-applications
|
||||
@@ -37,21 +37,15 @@
|
||||
# - the source build doesn't work on Darwin.
|
||||
# - the source build is currently brittle and not easy to maintain
|
||||
|
||||
assert cudaSupport -> cudatoolkit != null
|
||||
&& cudnn != null;
|
||||
|
||||
# unsupported combination
|
||||
assert ! (stdenv.isDarwin && cudaSupport);
|
||||
|
||||
let
|
||||
packages = import ./binary-hashes.nix;
|
||||
|
||||
variant = if cudaSupport then "-gpu" else "";
|
||||
pname = "tensorflow${variant}";
|
||||
metadataPatch = ./relax-dependencies-metadata.patch;
|
||||
patch = ./relax-dependencies.patch;
|
||||
in buildPythonPackage {
|
||||
inherit pname;
|
||||
pname = "tensorflow" + lib.optionalString cudaSupport "-gpu";
|
||||
inherit (packages) version;
|
||||
format = "wheel";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user