diff options
author | tavis_rudd <tavis_rudd> | 2002-02-25 06:16:34 +0000 |
---|---|---|
committer | tavis_rudd <tavis_rudd> | 2002-02-25 06:16:34 +0000 |
commit | 96121cb60696923e02770e5f1c459fd708116729 (patch) | |
tree | 260688a9b40d6bb34336b8c9dd71e5ebbdd56431 /SetupConfig.py | |
parent | d74835594a3fe2b72d9ba661b586f2ae410a4dfc (diff) | |
download | python-cheetah-96121cb60696923e02770e5f1c459fd708116729.tar.gz |
fixed path problem for NT compilation
Diffstat (limited to 'SetupConfig.py')
-rw-r--r-- | SetupConfig.py | 8 |
1 files changed, 7 insertions, 1 deletions
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=[] |