minor fixes in setup.py
This commit is contained in:
parent
b37fdd0e74
commit
7e2dc921ff
1 changed files with 3 additions and 3 deletions
4
setup.py
4
setup.py
|
|
@ -36,13 +36,13 @@ from distutils.core import setup, Extension
|
|||
|
||||
LLVM_PY_VERSION = '0.8.2'
|
||||
|
||||
llvm_config = os.environ('LLVM_CONFIG_PATH', 'llvm-config')
|
||||
llvm_config = os.environ.get('LLVM_CONFIG_PATH', 'llvm-config')
|
||||
|
||||
def run_llvm_config(args):
|
||||
cmd = llvm_config + ' ' + ' '.join(args)
|
||||
return os.popen(cmd).read().rstrip()
|
||||
|
||||
if run_llvm_config(['version']) == '':
|
||||
if run_llvm_config(['--version']) == '':
|
||||
print("Cannot invoke llvm-config.")
|
||||
print("Try setting LLVM_CONFIG_PATH=/path/to/llvm-config")
|
||||
sys.exit(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue