From 9794a9f498bd52f6a31a1dd86c81717913c027f3 Mon Sep 17 00:00:00 2001 From: stevenknight Date: Mon, 17 Dec 2001 16:27:21 +0000 Subject: [PATCH] Fix setup.py so it doesn't require an argument. git-svn-id: http://scons.tigris.org/svn/scons/trunk@162 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- HOWTO/release.txt | 12 ++++++++++++ src/CHANGES.txt | 2 ++ src/README.txt | 2 +- src/setup.py | 7 +++++-- 4 files changed, 20 insertions(+), 3 deletions(-) diff --git a/HOWTO/release.txt b/HOWTO/release.txt index 2668499b..e6af803c 100644 --- a/HOWTO/release.txt +++ b/HOWTO/release.txt @@ -9,7 +9,19 @@ Things to do to release a version of SCons: Build candidate packages test on Linux + test on Windows NT + 1) tar zxf scons-src-{version}.tar.gz + cd scons-src-{version} + python runtest.py -a + 2) tar zxf scons-{version}.tar.gz + cd scons-{version} + python setup.py install + cd scons-src-{version} + python runtest.py -a -x C:\Python15\scons.bat + 3) scons-{verson}.win32.exe + cd scons-src-{version} + python runtest.py -a -x C:\Python15\scons.bat diff --git a/src/CHANGES.txt b/src/CHANGES.txt index 953c9e65..41a5ba7d 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 8bb1df45..e8aaf55e 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 8f815735..fb904678 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) -- 2.26.2