Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed path problem for NT compilation

  • Loading branch information...
commit 96121cb60696923e02770e5f1c459fd708116729 1 parent d748355
tavis_rudd authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 SetupConfig.py
View
8 SetupConfig.py
@@ -14,9 +14,15 @@
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=[]
Please sign in to comment.
Something went wrong with that request. Please try again.