forked from mirrors/nixpkgs
python3Packages.tensorboard: rename from tensorflow-tensorboard, relax deps
This commit is contained in:
parent
87658e75f3
commit
270b07fcc5
|
@ -7,7 +7,7 @@
|
|||
, parameterized
|
||||
, pillow
|
||||
, scipy
|
||||
, tensorflow-tensorboard
|
||||
, tensorboard
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -33,7 +33,7 @@ buildPythonPackage rec {
|
|||
parameterized
|
||||
pillow
|
||||
scipy
|
||||
tensorflow-tensorboard
|
||||
tensorboard
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
, pytestCheckHook
|
||||
, pytorch
|
||||
, pyyaml
|
||||
, tensorflow-tensorboard
|
||||
, tensorboard
|
||||
, tqdm }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -26,7 +26,7 @@ buildPythonPackage rec {
|
|||
future
|
||||
pytorch
|
||||
pyyaml
|
||||
tensorflow-tensorboard
|
||||
tensorboard
|
||||
tqdm
|
||||
];
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
ninja,
|
||||
|
||||
# dependencies for torch.utils.tensorboard
|
||||
pillow, six, future, tensorflow-tensorboard, protobuf,
|
||||
pillow, six, future, tensorboard, protobuf,
|
||||
|
||||
isPy3k, pythonOlder }:
|
||||
|
||||
|
@ -230,7 +230,7 @@ in buildPythonPackage rec {
|
|||
pyyaml
|
||||
typing-extensions
|
||||
# the following are required for tensorboard support
|
||||
pillow six future tensorflow-tensorboard protobuf
|
||||
pillow six future tensorboard protobuf
|
||||
] ++ lib.optionals MPISupport [ mpi ]
|
||||
++ lib.optionals (pythonOlder "3.7") [ dataclasses ];
|
||||
|
||||
|
|
|
@ -22,14 +22,13 @@
|
|||
# buildBazelPackage.
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tensorflow-tensorboard";
|
||||
pname = "tensorboard";
|
||||
version = "2.6.0";
|
||||
format = "wheel";
|
||||
disabled = pythonOlder "3.6" || pythonAtLeast "3.10";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "tensorboard";
|
||||
inherit version format;
|
||||
inherit pname version format;
|
||||
dist = "py3";
|
||||
python = "py3";
|
||||
sha256 = "sha256-99rEzftS0UyeP3RYXOKq+OYgNiCoZOUfr4SYiwn3u9s=";
|
||||
|
@ -42,7 +41,8 @@ buildPythonPackage rec {
|
|||
pushd unpacked/tensorboard-${version}
|
||||
|
||||
substituteInPlace tensorboard-${version}.dist-info/METADATA \
|
||||
--replace "google-auth (<2,>=1.6.3)" "google-auth (<3,>=1.6.3)"
|
||||
--replace "google-auth (<2,>=1.6.3)" "google-auth (<3,>=1.6.3)" \
|
||||
--replace "google-auth-oauthlib (<0.5,>=0.4.1)" "google-auth-oauthlib (<0.6,>=0.4.1)"
|
||||
|
||||
popd
|
||||
wheel pack ./unpacked/tensorboard-${version}
|
|
@ -13,7 +13,7 @@
|
|||
, pytorch
|
||||
, six
|
||||
, soundfile
|
||||
, tensorflow-tensorboard
|
||||
, tensorboard
|
||||
, torchvision
|
||||
}:
|
||||
|
||||
|
@ -56,7 +56,7 @@ buildPythonPackage rec {
|
|||
pillow
|
||||
pytestCheckHook
|
||||
pytorch
|
||||
tensorflow-tensorboard
|
||||
tensorboard
|
||||
torchvision
|
||||
];
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
, opt-einsum
|
||||
, backports_weakref
|
||||
, tensorflow-estimator
|
||||
, tensorflow-tensorboard
|
||||
, tensorboard
|
||||
, cudaSupport ? false
|
||||
, cudatoolkit
|
||||
, cudnn
|
||||
|
@ -74,7 +74,7 @@ in buildPythonPackage {
|
|||
google-pasta
|
||||
wrapt
|
||||
tensorflow-estimator
|
||||
tensorflow-tensorboard
|
||||
tensorboard
|
||||
keras-applications
|
||||
keras-preprocessing
|
||||
h5py
|
||||
|
@ -168,7 +168,7 @@ in buildPythonPackage {
|
|||
'';
|
||||
|
||||
# Upstream has a pip hack that results in bin/tensorboard being in both tensorflow
|
||||
# and the propagated input tensorflow-tensorboard, which causes environment collisions.
|
||||
# and the propagated input tensorboard, which causes environment collisions.
|
||||
# Another possibility would be to have tensorboard only in the buildInputs
|
||||
# See https://github.com/NixOS/nixpkgs/pull/44381 for more information.
|
||||
postInstall = ''
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Python deps
|
||||
, buildPythonPackage, pythonOlder, python
|
||||
# Python libraries
|
||||
, numpy, tensorflow-tensorboard, absl-py
|
||||
, numpy, tensorboard, absl-py
|
||||
, setuptools, wheel, keras, keras-preprocessing, google-pasta
|
||||
, opt-einsum, astunparse, h5py
|
||||
, termcolor, grpcio, six, wrapt, protobuf-python, tensorflow-estimator
|
||||
|
@ -94,8 +94,8 @@ let
|
|||
setuptools
|
||||
six
|
||||
tblib
|
||||
tensorboard
|
||||
tensorflow-estimator
|
||||
tensorflow-tensorboard
|
||||
termcolor
|
||||
typing-extensions
|
||||
wheel
|
||||
|
@ -439,7 +439,7 @@ in buildPythonPackage {
|
|||
'';
|
||||
|
||||
# Upstream has a pip hack that results in bin/tensorboard being in both tensorflow
|
||||
# and the propagated input tensorflow-tensorboard, which causes environment collisions.
|
||||
# and the propagated input tensorboard, which causes environment collisions.
|
||||
# Another possibility would be to have tensorboard only in the buildInputs
|
||||
# https://github.com/tensorflow/tensorflow/blob/v1.7.1/tensorflow/tools/pip_package/setup.py#L79
|
||||
postInstall = ''
|
||||
|
@ -469,7 +469,7 @@ in buildPythonPackage {
|
|||
typing-extensions
|
||||
wrapt
|
||||
] ++ lib.optionals withTensorboard [
|
||||
tensorflow-tensorboard
|
||||
tensorboard
|
||||
];
|
||||
|
||||
# remove patchelfUnstable once patchelf 0.14 with https://github.com/NixOS/patchelf/pull/256 becomes the default
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
, numpy
|
||||
, pandas
|
||||
, pytorch
|
||||
, tensorflow-tensorboard
|
||||
, tensorboard
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -34,7 +34,7 @@ buildPythonPackage rec {
|
|||
numpy
|
||||
pandas
|
||||
pytorch
|
||||
tensorflow-tensorboard
|
||||
tensorboard
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
, pandas
|
||||
, pytestCheckHook
|
||||
, pytorch
|
||||
, tensorflow-tensorboard
|
||||
, tensorboard
|
||||
, torchvision
|
||||
}:
|
||||
|
||||
|
@ -25,7 +25,7 @@ buildPythonPackage rec {
|
|||
# See https://discourse.nixos.org/t/extracting-sub-directory-from-fetchgit-or-fetchurl-or-any-derivation/8830.
|
||||
src = "${repo}/tb_plugin";
|
||||
|
||||
propagatedBuildInputs = [ pandas tensorflow-tensorboard ];
|
||||
propagatedBuildInputs = [ pandas tensorboard ];
|
||||
|
||||
checkInputs = [ pytestCheckHook pytorch torchvision ];
|
||||
|
||||
|
|
|
@ -123,6 +123,7 @@ mapAliases ({
|
|||
tensorflow-bin_2 = tensorflow-bin; # added 2021-11-25
|
||||
tensorflow-build_2 = tensorflow-build; # added 2021-11-25
|
||||
tensorflow-estimator_2 = tensorflow-estimator; # added 2021-11-25
|
||||
tensorflow-tensorboard = tensorboard; # added 2022-03-06
|
||||
tensorflow-tensorboard_2 = tensorflow-tensorboard; # added 2021-11-25
|
||||
topydo = throw "topydo was moved to pkgs.topydo"; # added 2017-09-22
|
||||
tvnamer = throw "tvnamer was moved to pkgs.tvnamer"; # added 2021-07-05
|
||||
|
|
|
@ -9780,6 +9780,8 @@ in {
|
|||
|
||||
tensorboard-plugin-wit = callPackage ../development/python-modules/tensorboard-plugin-wit { };
|
||||
|
||||
tensorboard = callPackage ../development/python-modules/tensorboard { };
|
||||
|
||||
tensorboardx = callPackage ../development/python-modules/tensorboardx { };
|
||||
|
||||
tensorflow-bin = callPackage ../development/python-modules/tensorflow/bin.nix {
|
||||
|
@ -9812,8 +9814,6 @@ in {
|
|||
|
||||
tensorflow = self.tensorflow-build;
|
||||
|
||||
tensorflow-tensorboard = callPackage ../development/python-modules/tensorflow-tensorboard { };
|
||||
|
||||
tensorflowWithCuda = self.tensorflow.override {
|
||||
cudaSupport = true;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue