forked from hklarner/pyboolnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·69 lines (59 loc) · 2.44 KB
/
setup.py
File metadata and controls
executable file
·69 lines (59 loc) · 2.44 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
59
60
61
62
63
64
65
66
67
68
69
from setuptools import setup
import os
from distutils.dir_util import copy_tree
import platform
package_data_files = []
if "CONDA_BUILD" not in os.environ:
# PyBoolNet dependencies
this_os = platform.system()
if this_os == "Linux":
pyboolnet_dep_folder = os.path.join("Dependencies", "linux64")
elif this_os == "Darwin":
pyboolnet_dep_folder = os.path.join("Dependencies", "mac64")
elif this_os == "Windows":
pyboolnet_dep_folder = os.path.join("Dependencies", "win64")
else:
# no idea if we could get here?
raise Exception
print(f"PyBoolNet dependency folder = {pyboolnet_dep_folder}")
# copy dependencies to PyBoolNet/Dependencies
copy_tree(pyboolnet_dep_folder, os.path.join("PyBoolNet", "Dependencies"))
# adding dependency files
for root, dirnames, filenames in os.walk('PyBoolNet/Dependencies'):
root = root.replace('PyBoolNet/Dependencies', 'Dependencies')
package_data_files.extend([os.path.join(root, x) for x in filenames])
# adding repository files
for root, dirnames, filenames in os.walk('PyBoolNet/Repository'):
root = root.replace('PyBoolNet/Repository', 'Repository')
package_data_files.extend([os.path.join(root, x) for x in filenames])
# adding test files
for root, dirnames, filenames in os.walk('PyBoolNet/Tests/Files/Input'):
root = root.replace('PyBoolNet/Tests', 'Tests')
package_data_files.extend([os.path.join(root, x) for x in filenames])
setup(name="PyBoolNet",
version="2.31.0",
description="Python Toolbox for the Generation, Manipulation and Analysis of Boolean Networks.",
author="Hannes Klarner",
author_email="hannes.klarner@fu-berlin.de",
url="https://github.com/hklarner/PyBoolNet",
packages=["PyBoolNet",
"PyBoolNet.Tests",
"PyBoolNet.Utility",
"PyBoolNet.Repository",
],
package_data={'PyBoolNet': package_data_files},
classifiers=[
"Programming Language :: Python",
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Topic :: Scientific/Engineering :: Bio-Informatics",
],
install_requires=[
"networkx==2.4",
"matplotlib==3.3.3",
"pytest",
"pyeda==0.28.0"
]
)