Browse Source

Create missing dir in setup.py

refactoring
Matthias Volk 8 years ago
parent
commit
a175c16c09
  1. 5
      setup.py

5
setup.py

@ -69,6 +69,11 @@ class CMakeBuild(build_ext):
storm_v_major, storm_v_minor, storm_v_patch = parse_storm_version(self.conf.STORM_VERSION) storm_v_major, storm_v_minor, storm_v_patch = parse_storm_version(self.conf.STORM_VERSION)
check_storm_compatible(storm_v_major, storm_v_minor, storm_v_patch) check_storm_compatible(storm_v_major, storm_v_minor, storm_v_patch)
# Create dir
lib_path = os.path.join(self.extdir("core"))
if not os.path.exists(lib_path):
os.makedirs(lib_path)
for ext in self.extensions: for ext in self.extensions:
if ext.name == "core": if ext.name == "core":
with open(os.path.join(self.extdir(ext.name), ext.subdir, "_config.py"), "w") as f: with open(os.path.join(self.extdir(ext.name), ext.subdir, "_config.py"), "w") as f:

Loading…
Cancel
Save