-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
45 lines (38 loc) · 1.31 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
#!/usr/bin/env python3
# flake8: noqa
"""Setup script for the PyCIGAR repository."""
from os.path import dirname, realpath
from setuptools import find_packages, setup, Distribution
import setuptools.command.build_ext as _build_ext
import subprocess
from pycigar import __version__
def _read_requirements_file():
"""Return the elements in requirements.txt."""
req_file_path = '%s/requirements.txt' % dirname(realpath(__file__))
with open(req_file_path) as f:
return [line.strip() for line in f]
"""class build_ext(_build_ext.build_ext):
def run(self):
try:
except ImportError:
subprocess.check_call([]))
class BinaryDistribution(Distribution):
def has_ext_modules(self):
return True
"""
setup(
name='pycigar',
version=__version__,
#distclass=BinaryDistribution,
#cmdclass={"build_ext": build_ext},
packages=find_packages(),
description=("A system for applying deep reinforcement learning and "
"control to distributed grid"),
long_description=open("README.md").read(),
url="https://github.com/lbnl-cybersecurity/ceds-cigar",
keywords=("distributed grid"
"reinforcement-learning deep-learning python"),
install_requires=_read_requirements_file(),
zip_safe=False,
scripts=['pycigar/__init__.py',]
)