|
|
@ -47,7 +47,10 @@ class CMakeBuild(build_ext): |
|
|
|
match = re.search(r"HAVE-STORM-DFT: (.*)", output) |
|
|
|
assert(match) |
|
|
|
self.have_storm_dft = True if match.group(1) == "TRUE" else False |
|
|
|
|
|
|
|
# Set variable in _config.py |
|
|
|
with open(os.path.join("lib", "stormpy", "dft", "_config.py"), "w") as f: |
|
|
|
f.write("# Generated from setup.py\n") |
|
|
|
f.write("has_storm_dft = {}".format(self.have_storm_dft)) |
|
|
|
|
|
|
|
for ext in self.extensions: |
|
|
|
if ext.name == "dft": |
|
|
@ -58,6 +61,7 @@ class CMakeBuild(build_ext): |
|
|
|
else: |
|
|
|
self.build_extension(ext) |
|
|
|
|
|
|
|
|
|
|
|
def initialize_options(self): |
|
|
|
build_ext.initialize_options(self) |
|
|
|
self.storm_dir = None |
|
|
|