diff options
-rw-r--r-- | SetupConfig.py | 3 | ||||
-rw-r--r-- | bin/.gitattributes | 1 | ||||
-rw-r--r-- | bin/cheetah.bat | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/SetupConfig.py b/SetupConfig.py index 87df62b..9508e3c 100644 --- a/SetupConfig.py +++ b/SetupConfig.py @@ -34,6 +34,7 @@ package_dir = {'Cheetah':'src'} import os import os.path +import sys from distutils.core import Extension ext_modules=[ @@ -51,6 +52,8 @@ ext_modules=[ scripts = ['bin/cheetah-compile', 'bin/cheetah', ] +if sys.platform == "win32": + scripts.append('bin/cheetah.bat') data_files = ['recursive: src *.tmpl *.txt LICENSE README TODO CHANGES', ] if not os.getenv('CHEETAH_INSTALL_WITHOUT_SETUPTOOLS'): diff --git a/bin/.gitattributes b/bin/.gitattributes new file mode 100644 index 0000000..5bebad2 --- /dev/null +++ b/bin/.gitattributes @@ -0,0 +1 @@ +cheetah.bat -crlf diff --git a/bin/cheetah.bat b/bin/cheetah.bat new file mode 100644 index 0000000..3f6cf2a --- /dev/null +++ b/bin/cheetah.bat @@ -0,0 +1 @@ +@"%~dp0..\python" "%~dpn0" %*
|