From ac47f24a2a78a73b1db0bbc7e8c8ad2b2e536f78 Mon Sep 17 00:00:00 2001 From: stevenknight Date: Wed, 29 Sep 2004 03:22:10 +0000 Subject: [PATCH] On Win32, install scons.bat from setup.py. git-svn-id: http://scons.tigris.org/svn/scons/trunk@1109 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- src/CHANGES.txt | 3 +++ src/setup.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/CHANGES.txt b/src/CHANGES.txt index 7032d691..15be7db4 100644 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -79,6 +79,9 @@ RELEASE 0.97 - XXX - Fix handling of Action ojects (and other callables that don't match our calling arguments) in construction variable expansions. + - On Win32, install scons.bat in the Python directory when installing + from setup.py. (The bdist_wininst installer was already doing this.) + From Clive Levinson: - Make ParseConfig() recognize and add -mno-cygwin to $LINKFLAGS and diff --git a/src/setup.py b/src/setup.py index be3171d2..525d000d 100644 --- a/src/setup.py +++ b/src/setup.py @@ -213,7 +213,7 @@ arguments = { } try: - if sys.argv[1] == "bdist_wininst": + if sys.platform == 'win32' or sys.argv[1] == "bdist_wininst": arguments['data_files'] = [('.', ["script/scons.bat"])] except IndexError: pass -- 2.26.2