diff options
author | R. Tyler Ballance <tyler@slide.com> | 2009-09-01 16:09:20 -0700 |
---|---|---|
committer | R. Tyler Ballance <tyler@slide.com> | 2009-09-01 16:09:20 -0700 |
commit | 1b1b4cb083ac07d8347b0d4f4a1c9bb2a621284f (patch) | |
tree | 7a1ef3abb2c3f4aa3254d96161e060ba9d5db0fa | |
parent | 40fd6ac120ee453a4e0f793e8f24f46fdc5a7988 (diff) | |
download | python-cheetah-1b1b4cb083ac07d8347b0d4f4a1c9bb2a621284f.tar.gz |
Only use entry_points if we're on Windows; hopefully this corrects kb@'s issues
-rw-r--r-- | SetupConfig.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/SetupConfig.py b/SetupConfig.py index 61e304d..be2d912 100644 --- a/SetupConfig.py +++ b/SetupConfig.py @@ -1,4 +1,6 @@ #-------Main Package Settings-----------# +import sys + name = 'Cheetah' from cheetah.Version import Version as version maintainer = "R. Tyler Ballance" @@ -59,13 +61,14 @@ if not os.getenv('CHEETAH_INSTALL_WITHOUT_SETUPTOOLS'): install_requires = [ "Markdown >= 2.0.1", ] - # use 'entry_points' instead of 'scripts' - del scripts - entry_points = { - 'console_scripts': [ - 'cheetah = Cheetah.CheetahWrapper:_cheetah', - 'cheetah-compile = Cheetah.CheetahWrapper:_cheetah_compile', - ] + if sys.platform == 'win32': + # use 'entry_points' instead of 'scripts' + del scripts + entry_points = { + 'console_scripts': [ + 'cheetah = Cheetah.CheetahWrapper:_cheetah', + 'cheetah-compile = Cheetah.CheetahWrapper:_cheetah_compile', + ] } except ImportError: print 'Not using setuptools, so we cannot install the Markdown dependency' |