diff options
-rw-r--r-- | numpy/distutils/environment.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/distutils/environment.py b/numpy/distutils/environment.py index 78fe15f20..01b5f9b7d 100644 --- a/numpy/distutils/environment.py +++ b/numpy/distutils/environment.py @@ -55,6 +55,8 @@ class EnvironmentConfig(object): envvar_contents = os.environ.get(envvar) if envvar_contents is not None: if append and os.environ.get('NPY_DISTUTILS_APPEND_FLAGS', '1') == '1': + if var is None: + var = '' try: var = ' '.join(var + [envvar_contents]) except TypeError: |