Skip to content

Commit e9cb086

Browse files
authored
fix libtpu path (#9008)
1 parent b20641e commit e9cb086

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

setup.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,24 @@
6868
USE_NIGHTLY = True # whether to use nightly or stable libtpu and jax
6969

7070
_date = '20250406'
71+
7172
_libtpu_version = '0.0.13'
7273
_jax_version = '0.5.4'
7374
_jaxlib_version = '0.5.4'
7475

75-
_libtpu_wheel_name = f'libtpu-{_libtpu_version}'
76-
_libtpu_storage_directory = 'libtpu-lts-releases'
77-
7876
if USE_NIGHTLY:
79-
_libtpu_version += f".dev{_date}"
80-
_jax_version += f".dev{_date}"
81-
_jaxlib_version += f".dev{_date}"
82-
_libtpu_wheel_name += f".dev{_date}+nightly"
77+
_jax_version += f'.dev{_date}'
78+
_jaxlib_version += f'.dev{_date}'
79+
_libtpu_wheel_name = f'libtpu-{_libtpu_version}.dev{_date}+nightly-py3-none-linux_x86_64'
8380
_libtpu_storage_directory = 'libtpu-nightly-releases'
84-
85-
_libtpu_storage_path = f'https://storage.googleapis.com/{_libtpu_storage_directory}/wheels/libtpu/{_libtpu_wheel_name}-py3-none-linux_x86_64.whl'
81+
else:
82+
# The postfix can be changed when the version is updated. Check
83+
# https://storage.googleapis.com/libtpu-wheels/index.html for correct
84+
# versioning.
85+
_libtpu_wheel_name = f'libtpu-{_libtpu_version}-py3-none-manylinux_2_31_x86_64'
86+
_libtpu_storage_directory = 'libtpu-lts-releases'
87+
88+
_libtpu_storage_path = f'https://storage.googleapis.com/{_libtpu_storage_directory}/wheels/libtpu/{_libtpu_wheel_name}.whl'
8689

8790

8891
def _get_build_mode():

0 commit comments

Comments
 (0)