forked from aws-neuron/neuronx-distributed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
56 lines (48 loc) · 1.58 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import os
from setuptools import setup, PEP420PackageFinder
from setuptools.dist import Distribution
from wheel.bdist_wheel import bdist_wheel
class BinaryDistribution(Distribution):
def has_ext_modules(self):
return True
class bdist_wheel_plat_only(bdist_wheel):
def finalize_options(self):
super().finalize_options()
self.root_is_pure = False
def get_tag(self):
python, abi, plat = super().get_tag()
python, abi = 'py3', 'none'
return python, abi, plat
exec(open('src/neuronx_distributed/_version.py').read())
setup(
name='neuronx-distributed',
version=__version__,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: Other/Proprietary License',
'Programming Language :: Python :: 3',
'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',
],
keywords='aws neuron',
packages=PEP420PackageFinder.find(where='src'),
package_dir={'': 'src'},
package_data={'': [
'LICENSE.txt',
]},
install_requires=[
'torch-neuronx',
'torch-xla',
],
distclass=BinaryDistribution,
cmdclass={
'bdist_wheel': bdist_wheel_plat_only,
},
)