Skip to content

Commit 9124fb8

Browse files
Merge pull request #87586 from tensorflow/r2.19-2b775610a7b
r2.19 cherry-pick: 2b77561 "Update libtpu installation index path"
2 parents 7a0fc65 + 993392c commit 9124fb8

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

ci/official/envs/linux_x86_tpu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ TFCI_LIB_SUFFIX="-tpu-linux-x86_64"
2020
TFCI_WHL_BAZEL_TEST_ENABLE=0
2121
TFCI_WHL_IMPORT_TEST_ENABLE=0
2222
TFCI_WHL_SIZE_LIMIT=580M
23-
TFCI_PYTHON_VERIFY_PIP_INSTALL_ARGS="-f https://storage.googleapis.com/libtpu-tf-releases/index.html"
23+
TFCI_PYTHON_VERIFY_PIP_INSTALL_ARGS="-f https://storage.googleapis.com/libtpu-wheels/index.html"

tensorflow/tools/pip_package/setup.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@
5050
# tensorflow/core/public/version.h
5151
_VERSION = '2.19.0-rc0'
5252

53+
# Update this version when a new libtpu stable version is released.
54+
LATEST_RELEASE_LIBTPU_VERSION = '0.0.9'
55+
NEXT_LIBTPU_VERSION = '0.0.10'
5356

5457
# We use the same setup.py for all tensorflow_* packages and for the nightly
5558
# equivalents (tf_nightly_*). The package is controlled from the argument line
@@ -310,17 +313,14 @@ def find_files(pattern, root):
310313
# timing of these tests, the UTC date from eight hours ago is expected to be a
311314
# valid version.
312315
_libtpu_version = standard_or_nightly(
313-
_VERSION.replace('-', ''),
314-
'0.1.dev'
316+
LATEST_RELEASE_LIBTPU_VERSION,
317+
NEXT_LIBTPU_VERSION + '.dev'
315318
+ (
316319
datetime.datetime.now(tz=datetime.timezone.utc)
317320
- datetime.timedelta(hours=8)
318-
).strftime('%Y%m%d'),
321+
).strftime('%Y%m%d') + '+nightly',
319322
)
320-
if _libtpu_version.startswith('0.1'):
321-
REQUIRED_PACKAGES.append([f'libtpu-nightly=={_libtpu_version}'])
322-
else:
323-
REQUIRED_PACKAGES.append([f'libtpu=={_libtpu_version}'])
323+
REQUIRED_PACKAGES.append([f'libtpu=={_libtpu_version}'])
324324
CONSOLE_SCRIPTS.extend([
325325
'start_grpc_tpu_worker = tensorflow.python.tools.grpc_tpu_worker:run',
326326
('start_grpc_tpu_service = '

0 commit comments

Comments
 (0)