print("created pyopenms.cpp") with open("pyopenms/all_modules.py", "w") as fp: for modname in mnames: fp.write("from .%s import *\n" % modname) # create version information version = OPEN_MS_VERSION print("version=%r\n" % version, file=open("pyopenms/version.py", "w")) print("info=%r\n" % QT_QMAKE_VERSION_INFO, file=open("pyopenms/qt_version_info.py", "w")) # parse config if OPEN_MS_CONTRIB_BUILD_DIRS.endswith(";"): OPEN_MS_CONTRIB_BUILD_DIRS = OPEN_MS_CONTRIB_BUILD_DIRS[:-1] for OPEN_MS_CONTRIB_BUILD_DIR in OPEN_MS_CONTRIB_BUILD_DIRS.split(";"): if os.path.exists(os.path.join(OPEN_MS_CONTRIB_BUILD_DIR, "lib")): break if iswin: for libname in ["math", "regex"]: # fix for broken library names on Windows for p in glob.glob( os.path.join(OPEN_MS_CONTRIB_BUILD_DIR, "lib", "libboost_%s_*mt.lib" % libname)): # Copy for MSVS 2008 (vc90), MSVS 2010 (vc100) and MSVS 2015 (vc140) if "vc90" in p:
distutils.command.build_ext.build_ext.build_extensions = parallel_build_extensions # create version information ctime = os.stat("pyopenms").st_mtime ts = time.gmtime(ctime) timestamp = "%02d-%02d-%4d" % (ts.tm_mday, ts.tm_mon, ts.tm_year) version = OPEN_MS_VERSION with open("pyopenms/version.py", "w") as fp: print("version=%r" % version, file=fp) # parse config if OPEN_MS_CONTRIB_BUILD_DIRS.endswith(";"): OPEN_MS_CONTRIB_BUILD_DIRS = OPEN_MS_CONTRIB_BUILD_DIRS[:-1] for OPEN_MS_CONTRIB_BUILD_DIR in OPEN_MS_CONTRIB_BUILD_DIRS.split(";"): if os.path.exists(os.path.join(OPEN_MS_CONTRIB_BUILD_DIR, "lib")): break # Package data expected to be installed. On Linux the debian package # contains share/ data and must be installed to get access to the OpenMS shared # library. # if iswin: if IS_DEBUG: libraries = ["OpenMSd", "OpenSwathAlgod", "SuperHirnd", "Qt5Cored", "Qt5Networkd"] else: