8000 Fix references to deprecated installer wheels in V2 setup.py · IBMZ-Linux-OSS-Python/tensorflow@03e24a1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 03e24a1

Browse files
committed
Fix references to deprecated installer wheels in V2 setup.py
1 parent 25a99db commit 03e24a1

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

tensorflow/tools/pip_package/v2/setup.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,6 @@ def standard_or_nightly(standard, nightly):
125125
# different architectures having different requirements.
126126
# The entries here should be a simple duplicate of those in the collaborator
127127
# build section.
128-
standard_or_nightly('tensorflow-cpu-aws', 'tf-nightly-cpu-aws') + '==' +
129-
_VERSION + ';platform_system=="Linux" and (platform_machine=="arm64" or '
130-
'platform_machine=="aarch64")',
131128
standard_or_nightly('tensorflow-intel', 'tf-nightly-intel') + '==' +
132129
_VERSION + ';platform_system=="Windows"',
133130
]
@@ -139,18 +136,19 @@ def standard_or_nightly(standard, nightly):
139136
# If this is a collaborator build, then build an "installer" wheel and
140137
# add the collaborator packages as the only dependencies.
141138
REQUIRED_PACKAGES = [
142-
# Install the TensorFlow package built by AWS if the user is running
143-
# Linux on an Aarch64 machine.
144-
standard_or_nightly('tensorflow-cpu-aws', 'tf-nightly-cpu-aws') + '==' +
145-
_VERSION + ';platform_system=="Linux" and (platform_machine=="arm64" or '
146-
'platform_machine=="aarch64")',
147139
# Install the TensorFlow package built by Intel if the user is on a
148140
# Windows machine.
149141
standard_or_nightly('tensorflow-intel', 'tf-nightly-intel') + '==' +
150142
_VERSION + ';platform_system=="Windows"',
151-
# Install the TensorFlow package built by Apple if the user is running
152-
# macOS on an Apple Silicon machine.
153-
standard_or_nightly('tensorflow-macos', 'tf-nightly-macos') + '==' +
143+
# Starting with TF 2.16, Apple Silicon packages are uploaded directly
144+
# to the "tensorflow" project on PyPI. In order to not break users who
145+
# are still using `tensorflow-macos`, we upload an empty installer wheel
146+
# to "tensorflow-macos" and add "tensorflow" as its dependency. Please
147+
# note that this will go away in TF 2.17 and `tensorflow-macos` will be
148+
# considered deprecated. Installer packages are not uploaded to
149+
# `tf-nightly-macos`, `tf-nightly` is added below only to avoid breaking
150+
# CI builds.
151+
standard_or_nightly('tensorflow', 'tf-nightly') + '==' +
154152
_VERSION + ';platform_system=="Darwin" and platform_machine=="arm64"',
155153
]
156154

0 commit comments

Comments
 (0)
0