diff options
Diffstat (limited to 'var')
3 files changed, 185 insertions, 173 deletions
diff --git a/var/spack/repos/builtin/packages/py-flatbuffers/package.py b/var/spack/repos/builtin/packages/py-flatbuffers/package.py index d91f04e672..3b2d6249bd 100644 --- a/var/spack/repos/builtin/packages/py-flatbuffers/package.py +++ b/var/spack/repos/builtin/packages/py-flatbuffers/package.py @@ -20,6 +20,7 @@ class PyFlatbuffers(PythonPackage): license("Apache-2.0") + version("24.3.25", sha256="de2ec5b203f21441716617f38443e0a8ebf3d25bf0d9c0bb0ce68fa00ad546a4") version("23.5.26", sha256="9ea1144cac05ce5d86e2859f431c6cd5e66cd9c78c558317c7955fb8d4c78d89") version("2.0.7", sha256="0ae7d69c5b82bf41962ca5fde9cc43033bc9501311d975fd5a25e8a7d29c1245") version("2.0", sha256="12158ab0272375eab8db2d663ae97370c33f152b27801fa6024e1d6105fd4dd2") diff --git a/var/spack/repos/builtin/packages/py-tensorboard/package.py b/var/spack/repos/builtin/packages/py-tensorboard/package.py index 4b038ad758..83f3f1a464 100644 --- a/var/spack/repos/builtin/packages/py-tensorboard/package.py +++ b/var/spack/repos/builtin/packages/py-tensorboard/package.py @@ -21,6 +21,7 @@ class PyTensorboard(PythonPackage): license("Apache-2.0") + version("2.17.0", sha256="859a499a9b1fb68a058858964486627100b71fcb21646861c61d31846a6478fb") version("2.16.2", sha256="9f2b4e7dad86667615c0e5cd072f1ea8403fc032a299f0072d6f74855775cc45") version("2.16.1", sha256="928b62567911a8eeb2ebeb7482a9e4599b35f6713a6f2c56655259c18a139569") version("2.16.0", sha256="263b909a2009cb3a79daa6abe64c1785cc317c25a54e4db2fecb6429ffc54c58") @@ -50,36 +51,39 @@ class PyTensorboard(PythonPackage): version("2.3.0", sha256="d34609ed83ff01dd5b49ef81031cfc9c166bba0dabd60197024f14df5e8eae5e") version("2.2.0", sha256="bb6bbc75ad2d8511ba6cbd49e4417276979f49866e11841e83da8298727dbaed") - depends_on("python@3.9:", type=("build", "run"), when="@2.14:") - depends_on("python@3.8:", type=("build", "run"), when="@2.12:") - depends_on("py-absl-py@0.4:", type=("build", "run")) - depends_on("py-grpcio@1.48.2:", type=("build", "run"), when="@2.12:") - depends_on("py-grpcio@1.24.3:", type=("build", "run"), when="@2.3:") - depends_on("py-grpcio@1.23.3:", type=("build", "run"), when="@2.2") - depends_on("py-markdown@2.6.8:", type=("build", "run")) - depends_on("py-numpy@1.12.0:", type=("build", "run")) - # https://github.com/tensorflow/tensorboard/pull/6871 - depends_on("py-numpy@:1", type=("build", "run")) - # https://github.com/tensorflow/tensorboard/pull/5138 - depends_on("py-numpy@:1.23", when="@:2.5", type=("build", "run")) - depends_on("py-protobuf@3.19.6:4.23,4.24.1:", type=("build", "run"), when="@2.15.2:") - depends_on("py-protobuf@3.19.6:4.23", type=("build", "run"), when="@2.12:2.15.1") - depends_on("py-protobuf@3.9.2:3", type=("build", "run"), when="@2.11") - depends_on("py-protobuf@3.9.2:3.19", type=("build", "run"), when="@2.9:2.10") - depends_on("py-protobuf@3.6.0:3.19", type=("build", "run"), when="@:2.8") - depends_on("py-setuptools@41.0.0:", type=("build", "run")) - depends_on("py-six@1.10.0:", type=("build", "run"), when="@:2.4,2.14:") - depends_on("py-tensorboard-data-server@0.7", type=("build", "run"), when="@2.12:") - depends_on("py-tensorboard-data-server@0.6", type=("build", "run"), when="@2.5:2.11") - depends_on("py-werkzeug@1.0.1:", type=("build", "run"), when="@2.9:") - depends_on("py-werkzeug@0.11.15:", type=("build", "run")) + with default_args(type=("build", "run")): + depends_on("python@3.9:", when="@2.14:") + depends_on("python@3.8:", when="@2.12:") + depends_on("py-absl-py@0.4:") + depends_on("py-grpcio@1.48.2:", when="@2.12:") + depends_on("py-grpcio@1.24.3:", when="@2.3:") + depends_on("py-grpcio@1.23.3:", when="@2.2") + depends_on("py-markdown@2.6.8:") + depends_on("py-numpy@1.12.0:") + # https://github.com/tensorflow/tensorboard/pull/6871 + depends_on("py-numpy@:1") + # https://github.com/tensorflow/tensorboard/pull/5138 + depends_on("py-numpy@:1.23", when="@:2.5") + depends_on("py-protobuf@3.19.6:4", when="@2.17:") + depends_on("py-protobuf@3.19.6:", when="@2.15.2:2.16") + depends_on("py-protobuf@3.19.6:4.23", when="@2.12:2.15.1") + depends_on("py-protobuf@3.9.2:3", when="@2.11") + depends_on("py-protobuf@3.9.2:3.19", when="@2.9:2.10") + depends_on("py-protobuf@3.6.0:3.19", when="@:2.8") + depends_on("py-setuptools@41.0.0:") + depends_on("py-six@1.10.0:", when="@:2.4,2.14:") + depends_on("py-tensorboard-data-server@0.7", when="@2.12:") + depends_on("py-tensorboard-data-server@0.6", when="@2.5:2.11") + depends_on("py-werkzeug@1.0.1:", when="@2.9:") + depends_on("py-werkzeug@0.11.15:") - # Historical dependencies - depends_on("py-google-auth@1.6.3:2", type=("build", "run"), when="@2.7:2.15") - depends_on("py-google-auth@1.6.3:1", type=("build", "run"), when="@:2.6") - depends_on("py-google-auth-oauthlib@0.5:1", type=("build", "run"), when="@2.15") - depends_on("py-google-auth-oauthlib@0.5:1.0", type=("build", "run"), when="@2.12.1:2.14") - depends_on("py-google-auth-oauthlib@0.4.1:0.4", type=("build", "run"), when="@:2.12.0") - depends_on("py-requests@2.21.0:2", type=("build", "run"), when="@:2.15") - depends_on("py-tensorboard-plugin-wit@1.6.0:", type=("build", "run"), when="@:2.13") - depends_on("py-wheel@0.26:", type="build", when="@:2.13") + # Historical dependencies + depends_on("py-google-auth@1.6.3:2", when="@2.7:2.15") + depends_on("py-google-auth@1.6.3:1", when="@:2.6") + depends_on("py-google-auth-oauthlib@0.5:1", when="@2.15") + depends_on("py-google-auth-oauthlib@0.5:1.0", when="@2.12.1:2.14") + depends_on("py-google-auth-oauthlib@0.4.1:0.4", when="@:2.12.0") + depends_on("py-requests@2.21.0:2", when="@:2.15") + depends_on("py-tensorboard-plugin-wit@1.6.0:", when="@:2.13") + + conflicts("^py-protobuf@4.24.0") diff --git a/var/spack/repos/builtin/packages/py-tensorflow/package.py b/var/spack/repos/builtin/packages/py-tensorflow/package.py index b7ac7f181c..a1fa0932ac 100644 --- a/var/spack/repos/builtin/packages/py-tensorflow/package.py +++ b/var/spack/repos/builtin/packages/py-tensorflow/package.py @@ -45,6 +45,7 @@ class PyTensorflow(Package, CudaPackage, ROCmPackage, PythonExtension): license("Apache-2.0") + version("2.17.0", sha256="9cc4d5773b8ee910079baaecb4086d0c28939f024dd74b33fc5e64779b6533dc") version("2.16.2", sha256="023849bf253080cb1e4f09386f5eb900492da2288274086ed6cfecd6d99da9eb") version("2.16.1", sha256="c729e56efc945c6df08efe5c9f5b8b89329c7c91b8f40ad2bb3e13900bd4876d") version( @@ -153,146 +154,144 @@ class PyTensorflow(Package, CudaPackage, ROCmPackage, PythonExtension): extends("python") - # Python support based on wheel availability - depends_on("python@3.9:3.12", when="@2.16:", type=("build", "run")) - depends_on("python@3.9:3.11", when="@2.14:2.15", type=("build", "run")) - depends_on("python@3.8:3.11", when="@2.12:2.13", type=("build", "run")) - depends_on("python@:3.10", when="@2.8:2.11", type=("build", "run")) - depends_on("python@:3.9", when="@2.5:2.7", type=("build", "run")) - depends_on("python@:3.8", when="@2.2:2.4", type=("build", "run")) - - # See .bazelversion - depends_on("bazel@6.5.0", type="build", when="@2.16:") - depends_on("bazel@6.1.0", type="build", when="@2.14:2.15") - depends_on("bazel@5.3.0", type="build", when="@2.11:2.13") - depends_on("bazel@5.1.1", type="build", when="@2.10") - # See _TF_MIN_BAZEL_VERSION and _TF_MAX_BAZEL_VERSION in configure.py - depends_on("bazel@4.2.2:5.99.0", type="build", when="@2.9") - depends_on("bazel@4.2.1:4.99.0", type="build", when="@2.8") - depends_on("bazel@3.7.2:4.99.0", type="build", when="@2.7") - depends_on("bazel@3.7.2:3.99.0", type="build", when="@2.5:2.6") - depends_on("bazel@3.1.0:3.99.0", type="build", when="@2.3:2.4") - depends_on("bazel@2.0.0", type="build", when="@2.2") - - depends_on("swig", type="build") - depends_on("py-pip", type="build") - depends_on("py-wheel", type="build") - - # Listed under REQUIRED_PACKAGES in tensorflow/tools/pip_package/setup.py - depends_on("py-absl-py@1:", type=("build", "run"), when="@2.9:") - depends_on("py-absl-py@0.4:", type=("build", "run"), when="@2.7:2.8") - depends_on("py-absl-py@0.10:0", type=("build", "run"), when="@2.4:2.6") - depends_on("py-absl-py@0.7:", type=("build", "run"), when="@:2.3") - depends_on("py-astunparse@1.6:", type=("build", "run"), when="@2.7:") - depends_on("py-astunparse@1.6.3:1.6", type=("build", "run"), when="@2.4:2.6") - depends_on("py-astunparse@1.6.3", type=("build", "run"), when="@2.2:2.3") - depends_on("py-flatbuffers@23.5.26:", type=("build", "run"), when="@2.14:") - depends_on("py-flatbuffers@23.1.21:", type=("build", "run"), when="@2.13") - depends_on("py-flatbuffers@2:", type=("build", "run"), when="@2.10:2.12") - depends_on("py-flatbuffers@1.12:1", type=("build", "run"), when="@2.9") - depends_on("py-flatbuffers@1.12:", type=("build", "run"), when="@2.8") - depends_on("py-flatbuffers@1.12:2", type=("build", "run"), when="@2.7") - depends_on("py-flatbuffers@1.12", type=("build", "run"), when="@2.4:2.6") - depends_on("py-gast@0.2.1:0.4,0.5.3:", type=("build", "run"), when="@2.14:") - depends_on("py-gast@0.2.1:0.4.0", type=("build", "run"), when="@2.9:2.13") - depends_on("py-gast@0.2.1:", type=("build", "run"), when="@2.8") - depends_on("py-gast@0.2.1:0.4", type=("build", "run"), when="@2.7") - depends_on("py-gast@0.4.0", type=("build", "run"), when="@2.5:2.6") - depends_on("py-gast@0.3.3", type=("build", "run"), when="@2.2:2.4") - depends_on("py-gast@0.2.2", type=("build", "run"), when="@:2.1") - depends_on("py-google-pasta@0.1.1:", type=("build", "run"), when="@2.7:") - depends_on("py-google-pasta@0.2:0", type=("build", "run"), when="@2.4:2.6") - depends_on("py-google-pasta@0.1.8:", type=("build", "run"), when="@2.2:2.3") - depends_on("py-google-pasta@0.1.6:", type=("build", "run"), when="@:2.1") - depends_on("py-h5py@3.10:", type=("build", "run"), when="@2.16:") - depends_on("py-h5py@2.9:", type=("build", "run"), when="@2.7:2.15") - depends_on("py-h5py@3.1", type=("build", "run"), when="@2.5:2.6") - depends_on("py-h5py@2.10", type=("build", "run"), when="@2.2:2.4") - depends_on("py-h5py@:2.10.0", type=("build", "run"), when="@2.1.3:2.1") - # propagate the mpi variant setting for h5py/hdf5 to avoid unexpected crashes - depends_on("py-h5py+mpi", type=("build", "run"), when="@2.1.3:+mpi") - depends_on("py-h5py~mpi", type=("build", "run"), when="@2.1.3:~mpi") - depends_on("hdf5+mpi", type="build", when="@2.1.3:+mpi") - depends_on("hdf5~mpi", type="build", when="@2.1.3:~mpi") - depends_on("py-libclang@13:", type=("build", "run"), when="@2.9:") - depends_on("py-libclang@9.0.1:", type=("build", "run"), when="@2.7:2.8") - depends_on("py-ml-dtypes@0.3.1:0.3", type=("build", "run"), when="@2.15.1:") - depends_on("py-ml-dtypes@0.2", type=("build", "run"), when="@2.15.0") - depends_on("py-ml-dtypes@0.2.0", type=("build", "run"), when="@2.14") - depends_on("py-numpy@1.23.5:", type=("build", "run"), when="@2.14:") - depends_on("py-numpy@1.22:1.24.3", type=("build", "run"), when="@2.13:") - depends_on("py-numpy@1.22:1.23", type=("build", "run"), when="@2.12") - depends_on("py-numpy@1.20:", type=("build", "run"), when="@2.8:2.11") - depends_on("py-numpy@1.14.5:", type=("build", "run"), when="@2.7") - depends_on("py-numpy@1.19.2:1.19", type=("build", "run"), when="@2.4:2.6") - # https://github.com/tensorflow/tensorflow/issues/40688 - depends_on("py-numpy@1.16.0:1.18", type=("build", "run"), when="@:2.3") - # https://github.com/tensorflow/tensorflow/issues/67291 - depends_on("py-numpy@:1", type=("build", "run")) - depends_on("py-opt-einsum@2.3.2:", type=("build", "run"), when="@:2.3,2.7:") - depends_on("py-opt-einsum@3.3", type=("build", "run"), when="@2.4:2.6") - depends_on("py-packaging", type=("build", "run"), when="@2.9:") - depends_on("py-protobuf@3.20.3:4.20,4.21.6:4", type=("build", "run"), when="@2.12:") - depends_on("py-protobuf@3.9.2:", type=("build", "run"), when="@2.3:2.11") - depends_on("py-protobuf@3.8.0:", type=("build", "run"), when="@:2.2") - # https://github.com/protocolbuffers/protobuf/issues/10051 - # https://github.com/tensorflow/tensorflow/issues/56266 - depends_on("py-protobuf@:3.19", type=("build", "run"), when="@:2.11") - # Must be matching versions of py-protobuf and protobuf - conflicts("^py-protobuf~cpp") - depends_on("py-requests@2.21:2", type=("build", "run"), when="@2.16:") - depends_on("py-requests", type=("build", "run")) - depends_on("py-setuptools", type=("build", "run")) - depends_on("py-six@1.12:", type=("build", "run"), when="@:2.3,2.7:") - depends_on("py-six@1.15", type=("build", "run"), when="@2.4:2.6") - depends_on("py-termcolor@1.1:", type=("build", "run"), when="@:2.3,2.7:") - depends_on("py-termcolor@1.1", type=("build", "run"), when="@2.4:2.6") - depends_on("py-typing-extensions@3.6.6:", type=("build", "run"), when="@2.7:2.12,2.14:") - depends_on("py-typing-extensions@3.6.6:4.5", type=("build", "run"), when="@2.13") - depends_on("py-typing-extensions@3.7.4:3.7", type=("build", "run"), when="@2.4:2.6") - depends_on("py-wrapt@1.11:", type=("build", "run"), when="@2.7:2.11,2.13,2.16:") - depends_on("py-wrapt@1.11:1.14", type=("build", "run"), when="@2.12,2.14:2.15") - depends_on("py-wrapt@1.12.1:1.12", type=("build", "run"), when="@2.4:2.6") - depends_on("py-wrapt@1.11.1:", type=("build", "run"), when="@:2.3") - - # TODO: add packages for these dependencies - # depends_on('py-tensorflow-io-gcs-filesystem@0.23.1:', type=('build', 'run'), when='@2.8:') - # depends_on('py-tensorflow-io-gcs-filesystem@0.21:', type=('build', 'run'), when='@2.7') - - if sys.byteorder == "little": - # Only builds correctly on little-endian machines - depends_on("py-grpcio@1.24.3:1", type=("build", "run"), when="@2.7:") - depends_on("py-grpcio@1.37.0:1", type=("build", "run"), when="@2.6") - depends_on("py-grpcio@1.34", type=("build", "run"), when="@2.5") - depends_on("py-grpcio@1.32", type=("build", "run"), when="@2.4") - depends_on("py-grpcio@1.8.6:", type=("build", "run"), when="@:2.3") - - for minor_ver in range(5, 17): - depends_on( - "py-tensorboard@2.{}".format(minor_ver), - type=("build", "run"), - when="@2.{}".format(minor_ver), - ) - # TODO: is this still true? We now install tensorboard from wheel for all versions - # depends_on('py-tensorboard', when='@:2.4') # circular dep - # depends_on('py-tensorflow-estimator') # circular dep - # depends_on('py-keras') # circular dep - - # tensorflow/tools/pip_package/build_pip_package.sh - depends_on("patchelf", when="@2.13: platform=linux", type="build") - # https://github.com/tensorflow/tensorflow/issues/60179#issuecomment-1491238631 - depends_on("coreutils", when="@2.13: platform=darwin", type="build") - - # No longer a dependency in latest versions - depends_on("py-jax@0.3.15:", type=("build", "run"), when="@2.12") - depends_on("py-keras-preprocessing@1.1.1:", type=("build", "run"), when="@2.7:2.10") - depends_on("py-keras-preprocessing@1.1.2:1.1", type=("build", "run"), when="@2.4:2.6") - depends_on("py-keras-preprocessing@1.1.1:1.1", type=("build", "run"), when="@2.3") - depends_on("py-keras-preprocessing@1.1:", type=("build", "run"), when="@2.2") - depends_on("py-scipy@1.4.1", type=("build", "run"), when="@2.2.0,2.3.0") - depends_on("py-wheel@0.32:0", type=("build", "run"), when="@2.7") - depends_on("py-wheel@0.35:0", type=("build", "run"), when="@2.4:2.6") - depends_on("py-wheel@0.26:", type=("build", "run"), when="@:2.3") + with default_args(type="build"): + # See .bazelversion + depends_on("bazel@6.5.0", when="@2.16:") + depends_on("bazel@6.1.0", when="@2.14:2.15") + depends_on("bazel@5.3.0", when="@2.11:2.13") + depends_on("bazel@5.1.1", when="@2.10") + # See _TF_MIN_BAZEL_VERSION and _TF_MAX_BAZEL_VERSION in configure.py + depends_on("bazel@4.2.2:5.99.0", when="@2.9") + depends_on("bazel@4.2.1:4.99.0", when="@2.8") + depends_on("bazel@3.7.2:4.99.0", when="@2.7") + depends_on("bazel@3.7.2:3.99.0", when="@2.5:2.6") + depends_on("bazel@3.1.0:3.99.0", when="@2.3:2.4") + depends_on("bazel@2.0.0", when="@2.2") + + # tensorflow/tools/pip_package/build_pip_package.sh + depends_on("patchelf", when="@2.13: platform=linux") + # https://github.com/tensorflow/tensorflow/issues/60179#issuecomment-1491238631 + depends_on("coreutils", when="@2.13: platform=darwin") + + depends_on("swig") + depends_on("py-pip") + depends_on("py-wheel") + + with default_args(type=("build", "run")): + # Python support based on wheel availability + depends_on("python@3.9:3.12", when="@2.16:") + depends_on("python@3.9:3.11", when="@2.14:2.15") + depends_on("python@3.8:3.11", when="@2.12:2.13") + depends_on("python@:3.10", when="@2.8:2.11") + depends_on("python@:3.9", when="@2.5:2.7") + depends_on("python@:3.8", when="@2.2:2.4") + + # Listed under REQUIRED_PACKAGES in tensorflow/tools/pip_package/setup.py + depends_on("py-absl-py@1:", when="@2.9:") + depends_on("py-absl-py@0.4:", when="@2.7:2.8") + depends_on("py-absl-py@0.10:0", when="@2.4:2.6") + depends_on("py-absl-py@0.7:", when="@:2.3") + depends_on("py-astunparse@1.6:", when="@2.7:") + depends_on("py-astunparse@1.6.3:1.6", when="@2.4:2.6") + depends_on("py-astunparse@1.6.3", when="@2.2:2.3") + depends_on("py-flatbuffers@24.3.25:", when="@2.17:") + depends_on("py-flatbuffers@23.5.26:", when="@2.14:") + depends_on("py-flatbuffers@23.1.21:", when="@2.13") + depends_on("py-flatbuffers@2:", when="@2.10:2.12") + depends_on("py-flatbuffers@1.12:1", when="@2.9") + depends_on("py-flatbuffers@1.12:", when="@2.8") + depends_on("py-flatbuffers@1.12:2", when="@2.7") + depends_on("py-flatbuffers@1.12", when="@2.4:2.6") + depends_on("py-gast@0.2.1:0.4,0.5.3:", when="@2.14:") + depends_on("py-gast@0.2.1:0.4.0", when="@2.9:2.13") + depends_on("py-gast@0.2.1:", when="@2.8") + depends_on("py-gast@0.2.1:0.4", when="@2.7") + depends_on("py-gast@0.4.0", when="@2.5:2.6") + depends_on("py-gast@0.3.3", when="@2.2:2.4") + depends_on("py-gast@0.2.2", when="@:2.1") + depends_on("py-google-pasta@0.1.1:", when="@2.7:") + depends_on("py-google-pasta@0.2:0", when="@2.4:2.6") + depends_on("py-google-pasta@0.1.8:", when="@2.2:2.3") + depends_on("py-google-pasta@0.1.6:", when="@:2.1") + depends_on("py-h5py@3.10:", when="@2.16:") + depends_on("py-h5py@2.9:", when="@2.7:2.15") + depends_on("py-h5py@3.1", when="@2.5:2.6") + depends_on("py-h5py@2.10", when="@2.2:2.4") + depends_on("py-h5py@:2.10.0", when="@2.1.3:2.1") + # propagate the mpi variant setting for h5py/hdf5 to avoid unexpected crashes + depends_on("py-h5py+mpi", when="@2.1.3:+mpi") + depends_on("py-h5py~mpi", when="@2.1.3:~mpi") + depends_on("hdf5+mpi", when="@2.1.3:+mpi") + depends_on("hdf5~mpi", when="@2.1.3:~mpi") + depends_on("py-libclang@13:", when="@2.9:") + depends_on("py-libclang@9.0.1:", when="@2.7:2.8") + depends_on("py-ml-dtypes@0.3.1:0.4", when="@2.17:") + depends_on("py-ml-dtypes@0.3.1:0.3", when="@2.15.1:2.16") + depends_on("py-ml-dtypes@0.2", when="@2.15.0") + depends_on("py-ml-dtypes@0.2.0", when="@2.14") + depends_on("py-numpy@1.23.5:", when="@2.14:") + depends_on("py-numpy@1.22:1.24.3", when="@2.13:") + depends_on("py-numpy@1.22:1.23", when="@2.12") + depends_on("py-numpy@1.20:", when="@2.8:2.11") + depends_on("py-numpy@1.14.5:", when="@2.7") + depends_on("py-numpy@1.19.2:1.19", when="@2.4:2.6") + # https://github.com/tensorflow/tensorflow/issues/40688 + depends_on("py-numpy@1.16.0:1.18", when="@:2.3") + # https://github.com/tensorflow/tensorflow/issues/67291 + depends_on("py-numpy@:1") + depends_on("py-opt-einsum@2.3.2:", when="@:2.3,2.7:") + depends_on("py-opt-einsum@3.3", when="@2.4:2.6") + depends_on("py-packaging", when="@2.9:") + depends_on("py-protobuf@3.20.3:4.20,4.21.6:4", when="@2.12:") + depends_on("py-protobuf@3.9.2:", when="@2.3:2.11") + depends_on("py-protobuf@3.8.0:", when="@:2.2") + # https://github.com/protocolbuffers/protobuf/issues/10051 + # https://github.com/tensorflow/tensorflow/issues/56266 + depends_on("py-protobuf@:3.19", when="@:2.11") + depends_on("py-requests@2.21:2", when="@2.16:") + depends_on("py-requests") + depends_on("py-setuptools") + depends_on("py-six@1.12:", when="@:2.3,2.7:") + depends_on("py-six@1.15", when="@2.4:2.6") + depends_on("py-termcolor@1.1:", when="@:2.3,2.7:") + depends_on("py-termcolor@1.1", when="@2.4:2.6") + depends_on("py-typing-extensions@3.6.6:", when="@2.7:2.12,2.14:") + depends_on("py-typing-extensions@3.6.6:4.5", when="@2.13") + depends_on("py-typing-extensions@3.7.4:3.7", when="@2.4:2.6") + depends_on("py-wrapt@1.11:", when="@2.7:2.11,2.13,2.16:") + depends_on("py-wrapt@1.11:1.14", when="@2.12,2.14:2.15") + depends_on("py-wrapt@1.12.1:1.12", when="@2.4:2.6") + depends_on("py-wrapt@1.11.1:", when="@:2.3") + + # TODO: add packages for these dependencies + # depends_on('py-tensorflow-io-gcs-filesystem@0.23.1:', when='@2.8:') + # depends_on('py-tensorflow-io-gcs-filesystem@0.21:', when='@2.7') + + if sys.byteorder == "little": + # Only builds correctly on little-endian machines + depends_on("py-grpcio@1.24.3:1", when="@2.7:") + depends_on("py-grpcio@1.37.0:1", when="@2.6") + depends_on("py-grpcio@1.34", when="@2.5") + depends_on("py-grpcio@1.32", when="@2.4") + depends_on("py-grpcio@1.8.6:", when="@:2.3") + + for minor_ver in range(2, 18): + depends_on("py-tensorboard@2.{}".format(minor_ver), when="@2.{}".format(minor_ver)) + + # TODO: support circular run-time dependencies + # depends_on('py-tensorflow-estimator') + # depends_on('py-keras') + + # Historical dependencies + depends_on("py-jax@0.3.15:", when="@2.12") + depends_on("py-keras-preprocessing@1.1.1:", when="@2.7:2.10") + depends_on("py-keras-preprocessing@1.1.2:1.1", when="@2.4:2.6") + depends_on("py-keras-preprocessing@1.1.1:1.1", when="@2.3") + depends_on("py-keras-preprocessing@1.1:", when="@2.2") + depends_on("py-scipy@1.4.1", when="@2.2.0,2.3.0") + depends_on("py-wheel@0.32:0", when="@2.7") + depends_on("py-wheel@0.35:0", when="@2.4:2.6") + depends_on("py-wheel@0.26:", when="@:2.3") # TODO: add packages for some of these dependencies depends_on("mkl", when="+mkl") @@ -377,8 +376,12 @@ class PyTensorflow(Package, CudaPackage, ROCmPackage, PythonExtension): conflicts("+rocm", when="@:2.7.4-a,2.7.4.0:2.11.0-a,2.11.0.0:2.14-a,2.14-z:2.16-a,2.16-z:") # wheel 0.40 upgrades vendored packaging, trips over tensorflow-io-gcs-filesystem identifier conflicts("^py-wheel@0.40:", when="@2.11:2.13") + # Must be matching versions of py-protobuf and protobuf + conflicts("^py-protobuf~cpp") # https://www.tensorflow.org/install/source#tested_build_configurations + # https://github.com/tensorflow/tensorflow/issues/70199 + conflicts("%gcc", when="@2.17:") conflicts("%gcc@:9.3.0", when="@2.9:") conflicts("%gcc@:7.3.0") @@ -837,7 +840,11 @@ class PyTensorflow(Package, CudaPackage, ROCmPackage, PythonExtension): args.append("--config=v2") - args.append("//tensorflow/tools/pip_package:build_pip_package") + # https://github.com/tensorflow/tensorflow/issues/63298 + if self.spec.satisfies("@2.17:"): + args.append("//tensorflow/tools/pip_package:wheel") + else: + args.append("//tensorflow/tools/pip_package:build_pip_package") bazel(*args) |