-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
47 lines (40 loc) · 1.38 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
import os
import subprocess
import sys
from setuptools import setup
from setuptools.command.build_py import build_py
__version__ = "0.1.9"
class CustomBuild(build_py):
def run(self):
""" Builds the scorpion binaries. """
curr_dir = os.getcwd()
os.chdir(os.path.join(curr_dir, 'state_space_generator/scorpion'))
print(sys.executable)
subprocess.check_call([sys.executable, "build.py"])
os.chdir(curr_dir)
super().run()
setup(
name="state_space_generator",
version=__version__,
license='GNU',
author="Dominik Drexler, Jendrik Seipp",
author_email="dominik.drexler@liu.se, jendrik.seipp@liu.se",
url="https://github.com/drexlerd/state-space-generator",
description="A tool for state space exploration of PDDL files",
long_description="",
packages=["state_space_generator"],
# package_data is copied after build, manifest is for source distribution.
package_data={"state_space_generator":
["scorpion/fast-downward.py",
"scorpion/README.md",
"scorpion/LICENSE.md",
"scorpion/builds/release/bin/*",
"scorpion/driver/*",
"scorpion/src/*"]
},
cmdclass={
'build_py': CustomBuild},
include_package_data=True,
has_ext_modules=lambda: True, # to not obtain pure python wheels
zip_safe=False, # contains platform specific code
)