diff options
author | Christian Tismer <ctismer@gmail.com> | 2015-06-07 01:21:04 +0200 |
---|---|---|
committer | Christian Tismer <ctismer@gmail.com> | 2015-06-07 01:21:04 +0200 |
commit | c75b12f3cc3878480a047d62ab3a4f8928c85586 (patch) | |
tree | 3ed26bff91855c621967f7b9434bfe6c47c1f241 /setup.py | |
parent | 82b9540146aa5064bdb3116a2e76e8a497abf842 (diff) |
allow for slightly renamed folder names in the sub repositories.
shiboken is ready, pyside comes now!
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -26,9 +26,15 @@ OpenSSL: You can specify the location of OpenSSL DLLs with option --opnessl=</pa You can download OpenSSL for windows here: http://slproweb.com/products/Win32OpenSSL.html """ -__version__ = "1.3.0dev" +__version__ = "2.0.0.dev0" submodules = { + '2.0.0.dev0': [ + ["shiboken2", "qt5"], + ["pyside2", "qt5"], + ["pyside-tools", "master"], + ["pyside-examples", "master"], + ], '1.3.0dev': [ ["shiboken", "master"], ["pyside", "master"], @@ -77,6 +83,8 @@ import os import sys import platform +import difflib # for a close match of dirname and module + from distutils import log from distutils.errors import DistutilsOptionError from distutils.errors import DistutilsSetupError @@ -548,6 +556,10 @@ class pyside_build(_build): raise DistutilsSetupError("Error building patchelf") def build_extension(self, extension): + # calculate the subrepos folder name + maybe = list(map(lambda x:x[0], submodules[__version__])) + folder = difflib.get_close_matches(extension, maybe)[0] + log.info("Building module %s..." % extension) # Prepare folders @@ -560,7 +572,7 @@ class pyside_build(_build): os.makedirs(module_build_dir) os.chdir(module_build_dir) - module_src_dir = os.path.join(self.sources_dir, extension) + module_src_dir = os.path.join(self.sources_dir, folder) # Build module cmake_cmd = [ |