From 1b1b4cb083ac07d8347b0d4f4a1c9bb2a621284f Mon Sep 17 00:00:00 2001 From: "R. Tyler Ballance" Date: Tue, 1 Sep 2009 16:09:20 -0700 Subject: Only use entry_points if we're on Windows; hopefully this corrects kb@'s issues --- SetupConfig.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'SetupConfig.py') 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' -- cgit v1.2.1