From 99835f47c42535b20bddb670f09bb99f011eae7f Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Tue, 4 Aug 2009 17:36:35 +0000 Subject: Do not finalize install_cmd if already finalized. --- numpy/distutils/command/build_src.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'numpy/distutils/command/build_src.py') 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'): -- cgit v1.2.1