summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Abbatiello <abbeyj@gmail.com>2009-06-28 15:41:34 -0400
committerJames Abbatiello <abbeyj@gmail.com>2009-06-28 15:58:05 -0400
commit714a46b4ed922d7afaf8ef95144890cfcd74007e (patch)
treec9ac1823d287adc13d4bc9783caa18d359db478f
parente4a84a16e57eba6753c9e05d04ed0c34611a62d3 (diff)
downloadpython-cheetah-714a46b4ed922d7afaf8ef95144890cfcd74007e.tar.gz
Add cheetah.bat for Windows
-rw-r--r--SetupConfig.py3
-rw-r--r--bin/.gitattributes1
-rw-r--r--bin/cheetah.bat1
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" %*