Anonymous committed 958f6e6

Fix a build reentrancy problem introduced by our RPM build.

  • Participants
  • Parent commits 95e2496

Comments (0)

Files changed (1)

     push(@src_deps, $archive);
-    my @setup_args = ('bdist', 'sdist');
     my @build_targets = (
     # We can get away with calling using a directory path
     # like this because we put a preamble in it that will chdir()
     # to the directory in which exists.
-    my $commands = qq(python $build/ @setup_args
+    my @bdist_dirs = ("$build/build/lib", "$build/build/scripts");
+    my $commands = qq(rm -rf @bdist_dirs && python $build/ bdist
+		      python $build/ sdist
                       python $build/ bdist_wininst);
     if ($rpm) {