summaryrefslogtreecommitdiffstats
path: root/Construct
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-09-20 18:42:04 (GMT)
committerSteven Knight <knight@baldmt.com>2001-09-20 18:42:04 (GMT)
commit0b2e8f1e8bc49ab23cce17982bc6eb8c62604bff (patch)
treebc9688df0d96d5b75ff2c2da44c18466995fb1f8 /Construct
parent16a3b3c891ae3a04dfe50c2c6473b781c8194a15 (diff)
downloadSCons-0b2e8f1e8bc49ab23cce17982bc6eb8c62604bff.zip
SCons-0b2e8f1e8bc49ab23cce17982bc6eb8c62604bff.tar.gz
SCons-0b2e8f1e8bc49ab23cce17982bc6eb8c62604bff.tar.bz2
Install scons, not scons.py
Diffstat (limited to 'Construct')
-rw-r--r--Construct13
1 files changed, 9 insertions, 4 deletions
diff --git a/Construct b/Construct
index 658815d..853311c 100644
--- a/Construct
+++ b/Construct
@@ -116,6 +116,10 @@ $env = new cons( ENV => {
my @src_deps;
+my %src_file = (
+ 'scons' => 'scons.py',
+);
+
for $dir ('script', 'engine') {
my $pkg = $package_name{$dir};
@@ -130,9 +134,9 @@ for $dir ('script', 'engine') {
#
# Run everything in the MANIFEST through the sed command we concocted.
#
- my $file;
- foreach $file (@files) {
- $env->Command("$build/$file", "$src/$file", "%SEDCOM");
+ foreach $b (@files) {
+ my $s = $src_file{$b} || $b;
+ $env->Command("$build/$b", "$src/$s", "%SEDCOM");
}
#
@@ -197,7 +201,8 @@ for $dir ('script', 'engine') {
my %seen;
map($seen{$_}++, "MANIFEST", "setup.py");
@test_files = map(File::Spec->catfile($install, $_),
- grep($_ =~ /\.py$/ && ! $seen{$_}++, @files));
+ grep(!$seen{$_}++ &&
+ ($_ =~ /\.py$/ || $src_file{$_}), @files));
# We can get away with calling setup.py using a directory path
# like this because we put a preamble in it that will chdir()