-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathsetup.py
58 lines (51 loc) · 1.77 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
57
58
import os
import sys
import setuptools
with open("README.md", "r") as f:
long_description = f.read()
requirements = []
with open('requirements.txt', 'r') as f:
for line in f:
requirements.append(line.strip())
#optional_requirements = []
#with open('optional-requirements.txt', 'r') as f:
# for line in f:
# optional_requirements.append(line.strip())
import subprocess
git_apt = "git+https://github.com/automl/Auto-PyTorch.git@nb301"
try:
import autoPyTorch
except ImportError:
if '--user' in sys.argv:
subprocess.run([sys.executable, '-m', 'pip', 'install', '--upgrade',
'--user', git_apt], check=False)
else:
subprocess.run([sys.executable, '-m', 'pip', 'install', '--upgrade',
git_apt], check=False)
setuptools.setup(
name="nasbench301",
version="0.3",
author="AutoML Freiburg",
author_email="[email protected]",
description=("A surrogate benchmark for neural architecture search"),
long_description=long_description,
url="https://github.com/automl/nasbench301",
long_description_content_type="text/markdown",
license="3-clause BSD",
keywords="machine learning"
"optimization tuning neural architecture deep learning",
packages=setuptools.find_packages(),
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
],
python_requires='>=3',
platforms=['Linux'],
#install_requires=requirements[1:],
include_package_data=True
# extras_require=optional_requirements
)