Skip to content
Snippets Groups Projects
Commit 91c98ff3 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

SuperBuild: fix GDAL python build error

parent f951701d
No related branches found
No related tags found
No related merge requests found
--- gdal-2.2.1-orig/swig/python/setup.py 2017-06-23 14:18:44.000000000 +0200
+++ gdal-2.2.1/swig/python/setup.py 2018-03-14 15:42:14.058663110 +0100
@@ -27,6 +27,11 @@
print('WARNING: "CXX=%s" was defined in the environment and contains more than one word. Unsetting it since that is incompatible of distutils' % os.environ['CXX'])
del os.environ['CXX']
+# do the same for CC for consistent results
+if 'CC' in os.environ and os.environ['CC'].strip().find(' ') >= 0:
+ print('WARNING: "CC=%s" was defined in the environment and contains more than one word. Unsetting it since that is incompatible of distutils' % os.environ['CC'])
+ del os.environ['CC']
+
# ---------------------------------------------------------------------------
# Switches
# ---------------------------------------------------------------------------
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment