-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update r2.1 wheel to be compatible with PyPI (#5550)
* Update project metadata and remove useless files * Update README * Add manylinux platform tag * formatting
- Loading branch information
1 parent
89574d2
commit 691838f
Showing
4 changed files
with
30 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,7 +73,6 @@ | |
base_dir = os.path.dirname(os.path.abspath(__file__)) | ||
|
||
_libtpu_version = '0.1.dev20230809' | ||
_libtpu_storage_path = f'https://storage.googleapis.com/cloud-tpu-tpuvm-artifacts/wheels/libtpu-nightly/libtpu_nightly-{_libtpu_version}-py3-none-any.whl' | ||
|
||
|
||
def _get_build_mode(): | ||
|
@@ -307,15 +306,37 @@ def run(self): | |
super().run() | ||
|
||
|
||
# Read in README.md for our long_description | ||
cwd = os.path.dirname(os.path.abspath(__file__)) | ||
with open(os.path.join(cwd, "README.md"), encoding="utf-8") as f: | ||
long_description = f.read() | ||
|
||
setup( | ||
name=os.environ.get('TORCH_XLA_PACKAGE_NAME', 'torch_xla'), | ||
version=version, | ||
description='XLA bridge for PyTorch', | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url='https://github.com/pytorch/xla', | ||
author='PyTorch/XLA Dev Team', | ||
author_email='[email protected]', | ||
# Exclude the build files. | ||
packages=find_packages(exclude=['build']), | ||
classifiers=[ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Education", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: BSD License", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Scientific/Engineering :: Mathematics", | ||
"Topic :: Scientific/Engineering :: Artificial Intelligence", | ||
"Topic :: Software Development", | ||
"Topic :: Software Development :: Libraries", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Programming Language :: C++", | ||
"Programming Language :: Python :: 3", | ||
], | ||
python_requires=">=3.8.0", | ||
packages=find_packages(include=['torch_xla*']), | ||
ext_modules=[ | ||
BazelExtension('//:_XLAC.so'), | ||
], | ||
|
@@ -334,12 +355,9 @@ def run(self): | |
}, | ||
extras_require={ | ||
# On Cloud TPU VM install with: | ||
# $ sudo pip3 install torch_xla[tpuvm] -f https://storage.googleapis.com/tpu-pytorch/wheels/tpuvm/torch_xla-1.11-cp38-cp38-linux_x86_64.whl | ||
'tpuvm': [f'libtpu-nightly @ {_libtpu_storage_path}'], | ||
# pip install torch_xla[tpu] -f https://storage.googleapis.com/libtpu-releases/libtpu_releases.html | ||
'tpu': [f'libtpu-nightly=={_libtpu_version}'], | ||
}, | ||
data_files=[ | ||
'scripts/fixup_binary.py', | ||
], | ||
cmdclass={ | ||
'build_ext': BuildBazelExtension, | ||
'clean': Clean, | ||
|