summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-12-17 16:27:21 (GMT)
committerSteven Knight <knight@baldmt.com>2001-12-17 16:27:21 (GMT)
commitf524ceca04f12a1186e6c003281197ef77dc397c (patch)
treea0a013adf1165f9ace6e1d3121821ddb85f9f5a3 /src
parent2c6e8c67b164bd354d5f34c4b260ef0ca6c6c473 (diff)
downloadSCons-f524ceca04f12a1186e6c003281197ef77dc397c.zip
SCons-f524ceca04f12a1186e6c003281197ef77dc397c.tar.gz
SCons-f524ceca04f12a1186e6c003281197ef77dc397c.tar.bz2
Fix setup.py so it doesn't require an argument.
Diffstat (limited to 'src')
-rw-r--r--src/CHANGES.txt2
-rw-r--r--src/README.txt2
-rw-r--r--src/setup.py7
3 files changed, 8 insertions, 3 deletions
diff --git a/src/CHANGES.txt b/src/CHANGES.txt
index 953c9e6..41a5ba7 100644
--- a/src/CHANGES.txt
+++ b/src/CHANGES.txt
@@ -25,6 +25,8 @@ RELEASE 0.02 -
- Made Default() accept Nodes as arguments (courtesy Anthony Roach).
+ - Fix to setup.py so it doesn't require a sys.argv[1] argument.
+
RELEASE 0.01 - Thu Dec 13 19:25:23 CST 2001
diff --git a/src/README.txt b/src/README.txt
index 8bb1df4..e8aaf55 100644
--- a/src/README.txt
+++ b/src/README.txt
@@ -33,7 +33,7 @@ INSTALLATION
To install this package, simply run the provided Python-standard setup
script as follows:
- # python setup.py
+ # python setup.py install
This will install the scons script in the default script directory
(/usr/bin or C:\Python*\Scripts, for example) and the build engine in an
diff --git a/src/setup.py b/src/setup.py
index 8f81573..fb90467 100644
--- a/src/setup.py
+++ b/src/setup.py
@@ -75,7 +75,10 @@ arguments = {
'cmdclass' : {'install_lib' : my_install_lib}
}
-if sys.argv[1] == "bdist_wininst":
- arguments['data_files'] = [('.', ["script/scons.bat"])]
+try:
+ if sys.argv[1] == "bdist_wininst":
+ arguments['data_files'] = [('.', ["script/scons.bat"])]
+except IndexError:
+ pass
apply(setup, (), arguments)