diff options
author | James Abbatiello <abbeyj@gmail.com> | 2009-08-24 21:11:59 -0400 |
---|---|---|
committer | James Abbatiello <abbeyj@gmail.com> | 2009-08-24 21:11:59 -0400 |
commit | e4705b12f2d53202a9a7ef4b8e5cc084f11c83fd (patch) | |
tree | e80fdc1eac2ecdbdcf50fa0585f14aff56b5eecb /SetupConfig.py | |
parent | e658b4ba82c5c07d40d2a5e394f42ecdac82b8fb (diff) | |
parent | da52de58a83fb39eefe245a7509796cb5b9acf37 (diff) | |
download | python-cheetah-e4705b12f2d53202a9a7ef4b8e5cc084f11c83fd.tar.gz |
Merge branch 'next' of git://github.com/rtyler/cheetah into next
Diffstat (limited to 'SetupConfig.py')
-rw-r--r-- | SetupConfig.py | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/SetupConfig.py b/SetupConfig.py index d974418..bcf5ca3 100644 --- a/SetupConfig.py +++ b/SetupConfig.py @@ -33,24 +33,30 @@ package_dir = {'Cheetah':'cheetah'} import os import os.path +import sys from distutils.core import Extension -## we only assume the presence of a c compiler on Posix systems, NT people will -# have to enable this manually. -if os.name == 'posix': - ext_modules=[Extension("Cheetah._namemapper", [os.path.join("cheetah" ,"_namemapper.c")] - ) - ] -else: - ext_modules=[] - +ext_modules=[ + Extension("Cheetah._namemapper", + [os.path.join('cheetah', 'c', '_namemapper.c')]), + Extension("Cheetah._verifytype", + [os.path.join('cheetah', 'c', '_verifytype.c')]), + Extension("Cheetah._filters", + [os.path.join('cheetah', 'c', '_filters.c')]), + Extension('Cheetah._template', + [os.path.join('cheetah', 'c', '_template.c')]), + ] ## Data Files and Scripts scripts = ['bin/cheetah-compile', 'bin/cheetah', ] -data_files = ['recursive: cheetah *.tmpl *.txt LICENSE README TODO CHANGES', - ] + +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'): try: from setuptools import setup |