From dafe8f6413cbe55104a9d0352a2d52d96f23558a Mon Sep 17 00:00:00 2001 From: stevenknight Date: Fri, 14 Dec 2001 00:46:59 +0000 Subject: [PATCH] Fix a build reentrancy problem introduced by our RPM build. git-svn-id: http://scons.tigris.org/svn/scons/trunk@151 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- Construct | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Construct b/Construct index 4a807821..049ce06f 100644 --- a/Construct +++ b/Construct @@ -347,8 +347,6 @@ for $p ($scons) { push(@src_deps, $archive); - my @setup_args = ('bdist', 'sdist'); - my @build_targets = ( "$build/dist/$pkg-$version.$platform.$archsuffix", $archive, @@ -359,7 +357,9 @@ for $p ($scons) { # We can get away with calling setup.py using a directory path # like this because we put a preamble in it that will chdir() # to the directory in which setup.py exists. - my $commands = qq(python $build/setup.py @setup_args + my @bdist_dirs = ("$build/build/lib", "$build/build/scripts"); + my $commands = qq(rm -rf @bdist_dirs && python $build/setup.py bdist + python $build/setup.py sdist python $build/setup.py bdist_wininst); if ($rpm) { -- 2.26.2