summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/build_src.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-08-04 17:36:35 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-08-04 17:36:35 +0000
commit99835f47c42535b20bddb670f09bb99f011eae7f (patch)
treecf76c337fed7755d506b87b972cbd906c30d035a /numpy/distutils/command/build_src.py
parente74c00e2774b258680c97cd44a00c71ca4abc278 (diff)
downloadnumpy-99835f47c42535b20bddb670f09bb99f011eae7f.tar.gz
Do not finalize install_cmd if already finalized.
Diffstat (limited to 'numpy/distutils/command/build_src.py')
-rw-r--r--numpy/distutils/command/build_src.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/distutils/command/build_src.py b/numpy/distutils/command/build_src.py
index c7249c243..818bd52fd 100644
--- a/numpy/distutils/command/build_src.py
+++ b/numpy/distutils/command/build_src.py
@@ -239,7 +239,8 @@ class build_src(build_ext.build_ext):
# does not disrupt how distutils want to do things when with the
# original install command instance.
install_cmd = copy.copy(get_cmd('install'))
- install_cmd.finalize_options()
+ if not install_cmd.finalized == 1:
+ install_cmd.finalize_options()
build_npkg = False
gd = {}
if hasattr(install_cmd, 'install_libbase'):