diff options
author | Anatoly Techtonik <techtonik@gmail.com> | 2011-04-15 22:08:04 (GMT) |
---|---|---|
committer | Anatoly Techtonik <techtonik@gmail.com> | 2011-04-15 22:08:04 (GMT) |
commit | f52c783c433a98961f6ed5baaf56ee527f2dc71c (patch) | |
tree | 1309ee501f68b760298568ab79943d030890377b /src | |
parent | e48ee0e711ca487893d34c9a3449a009135f28cc (diff) | |
download | SCons-f52c783c433a98961f6ed5baaf56ee527f2dc71c.zip SCons-f52c783c433a98961f6ed5baaf56ee527f2dc71c.tar.gz SCons-f52c783c433a98961f6ed5baaf56ee527f2dc71c.tar.bz2 |
add .py extensions to scripts on Windows
Diffstat (limited to 'src')
-rw-r--r-- | src/setup.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/setup.py b/src/setup.py index ea95ac2..7dd2f99 100644 --- a/src/setup.py +++ b/src/setup.py @@ -52,6 +52,9 @@ if head: os.chdir(head) sys.argv[0] = tail + +# flag if setup.py is run on win32 or _for_ win32 platform, +# (when building windows installer on linux, for example) is_win32 = 0 if not sys.platform == 'win32': try: @@ -303,6 +306,9 @@ class install_scripts(_install_scripts): base = os.path.basename(src) scons = os.path.join(self.install_dir, base) scons_ver = scons + '-' + Version + if is_win32: + scons += '.py' + scons_ver += '.py' create_version_script(src, scons_ver) create_basename_script(src, scons, scons_ver) |