-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
45 lines (42 loc) · 1.08 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
from setuptools import setup
def check_dependencies():
install_requires = []
try:
import numpy
except ImportError:
install_requires.append('numpy')
try:
import scipy
except ImportError:
install_requires.append('scipy')
try:
import matplotlib
except ImportError:
install_requires.append('matplotlib')
try:
import pandas
except ImportError:
install_requires.append('pandas')
try:
import seaborn
except ImportError:
install_requires.append('seaborn')
return install_requires
def readme():
with open('README.rst') as f:
return f.read()
if __name__ == "__main__":
install_requires = check_dependencies()
setup(
name='isc',
version='1.0',
description='a psychologically-motivated agent based model of opinion change',
url='https://github.com/psipeter/isc',
author='Peter Duggins',
author_email='[email protected]',
packages=['isc'],
long_description=readme(),
install_requires=install_requires,
include_package_data=True,
zip_safe=False
)