From 96121cb60696923e02770e5f1c459fd708116729 Mon Sep 17 00:00:00 2001 From: tavis_rudd Date: Mon, 25 Feb 2002 06:16:34 +0000 Subject: fixed path problem for NT compilation --- SetupConfig.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'SetupConfig.py') diff --git a/SetupConfig.py b/SetupConfig.py index 04f0777..b92fb1b 100644 --- a/SetupConfig.py +++ b/SetupConfig.py @@ -14,9 +14,15 @@ packages = ['Cheetah', package_dir = {'Cheetah':'src'} import os +import os.path 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", ["src/_namemapper.c"])] + ext_modules=[Extension("Cheetah._namemapper", [os.path.join("src" ,"_namemapper.c")] + ) + ] else: ext_modules=[] -- cgit v1.2.1