If both pythonX_package options are set ignore the python_package option
This commit is contained in:
parent
43b42e9942
commit
c233ddcd30
1 changed files with 8 additions and 0 deletions
|
|
@ -1112,6 +1112,14 @@ env['python_cmd_esc'] = quoted(env['python_cmd'])
|
|||
cython_min_version = LooseVersion('0.23')
|
||||
numpy_min_test_version = LooseVersion('1.8.1')
|
||||
|
||||
# If both python2_package and python3_package are set to something
|
||||
# other than the default ignore the python_package option
|
||||
if all([env['python{}_package'.format(p)] != 'default' for p in ['2', '3']]):
|
||||
if env['python_package'] != 'default':
|
||||
print("WARNING: Both version-specific pythonX_package options are set. Ignoring "
|
||||
"non-version specific python_package options")
|
||||
env['python_package'] = 'none'
|
||||
|
||||
if env['python_package'] == 'new':
|
||||
print("WARNING: The 'new' option for the Python package is "
|
||||
"deprecated and will be removed in the future. Use "
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue