diff options
author | David Cournapeau <cournape@gmail.com> | 2009-08-29 17:21:49 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-08-29 17:21:49 +0000 |
commit | 3253b06df613ffd152e655ec6c3477b724640dd7 (patch) | |
tree | 7443c4c40d3fdbf835c72478e17777b4f87e7579 | |
parent | 4fd7a700493bb37ea4501491bd1ba24fe17a2d5c (diff) | |
download | numpy-3253b06df613ffd152e655ec6c3477b724640dd7.tar.gz |
Do not try to include site.cfg if it does not exist.
-rw-r--r-- | numpy/distutils/setupscons.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/distutils/setupscons.py b/numpy/distutils/setupscons.py index b16225f41..938f07ead 100644 --- a/numpy/distutils/setupscons.py +++ b/numpy/distutils/setupscons.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +import os.path def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration @@ -6,7 +7,8 @@ def configuration(parent_package='',top_path=None): config.add_subpackage('command') config.add_subpackage('fcompiler') config.add_data_dir('tests') - config.add_data_files('site.cfg') + if os.path.exists("site.cfg"): + config.add_data_files('site.cfg') config.make_config_py() return config |