diff options
author | Anatoly Techtonik <techtonik@gmail.com> | 2011-04-15 22:08:04 +0000 |
---|---|---|
committer | Anatoly Techtonik <techtonik@gmail.com> | 2011-04-15 22:08:04 +0000 |
commit | fc5ba359d467d3f1023289c0b1d9f2d18b354608 (patch) | |
tree | 1309ee501f68b760298568ab79943d030890377b | |
parent | db218c6a29be7252daa1812d2aa7f3e32164d2a8 (diff) | |
download | scons-fc5ba359d467d3f1023289c0b1d9f2d18b354608.tar.gz |
add .py extensions to scripts on Windows
-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 ea95ac2e..7dd2f99d 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) |