diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-05-23 11:31:48 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-06-06 14:45:13 +0000 |
commit | 88ae63d398fe1ca60802adcf5c92a2dec29b85d0 (patch) | |
tree | 1d3fa80d670e750747e1514bdb332cdb81c12829 /setup.py | |
parent | 1e05405a9826c4fcc98ab44814abca44741ff01f (diff) |
testrunner.py/Windows: Add Clang to the path
It is required for shiboken's ApiExtractor tests.
Move subroutine detectClang into utils.py
for usage by testrunner.py/setup.py.
Task-number: PYSIDE-431
Change-Id: I9f1984ea9fc9857ad3e7fddf621884fdc96ef52f
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 18 |
1 files changed, 1 insertions, 17 deletions
@@ -170,7 +170,7 @@ from setuptools.command.bdist_egg import bdist_egg as _bdist_egg from setuptools.command.develop import develop as _develop from qtinfo import QtInfo -from utils import rmtree +from utils import rmtree, detectClang from utils import makefile from utils import copyfile from utils import copydir @@ -350,22 +350,6 @@ def prefix(): name += 'd' return name -def detectClang(): - source = 'LLVM_INSTALL_DIR' - clangDir = os.environ.get(source, None) - if not clangDir: - source = 'CLANG_INSTALL_DIR' - clangDir = os.environ.get(source, None) - if not clangDir: - source = 'llvm-config' - try: - output = run_process_output([source, '--prefix']) - if output: - clangDir = output[0] - except: - pass - return [clangDir, source] - # Initialize, pull and checkout submodules def prepareSubModules(): print("Initializing submodules for PySide2 version %s" % __version__) |