forked from BaguaSys/bagua
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
58 lines (52 loc) · 1.58 KB
/
Copy pathsetup.py
File metadata and controls
58 lines (52 loc) · 1.58 KB
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
57
58
import os
from distutils.errors import (
DistutilsPlatformError,
)
from setuptools import setup, find_packages
import sys
def check_torch_version():
try:
import torch
except ImportError:
print("import torch failed, is it installed?")
version = torch.__version__
if version is None:
raise DistutilsPlatformError(
"Unable to determine PyTorch version from the version string '%s'"
% torch.__version__
)
return version
if __name__ == "__main__":
cwd = os.path.dirname(os.path.abspath(__file__))
setup(
name="bagua",
use_scm_version={"local_scheme": "no-local-version"},
setup_requires=["setuptools_scm"],
url="https://github.com/BaguaSys/bagua",
python_requires=">=3.7",
description="Bagua is a flexible and performant distributed training algorithm development framework.",
packages=find_packages(exclude=("tests")),
author="Kuaishou AI Platform & DS3 Lab",
author_email="admin@mail.xrlian.com",
install_requires=[
"bagua-core>=0.3,<0.4",
"deprecation",
"pytest-benchmark",
"scikit-optimize",
"numpy",
"flask",
"prometheus_client",
"parallel-ssh",
"pydantic",
"requests",
"gorilla",
],
entry_points={
"console_scripts": [
"baguarun = bagua.script.baguarun:main",
],
},
scripts=[
"bagua/script/bagua_sys_perf",
],
)