support .py extension in cython_freeze
authorStefan Behnel <scoder@users.berlios.de>
Tue, 6 Oct 2009 07:22:46 +0000 (09:22 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Tue, 6 Oct 2009 07:22:46 +0000 (09:22 +0200)
bin/cython_freeze.py

index 184c4a89ea406df38a8fc59b2e2158c6c2106999..a8c9448f84a1d2ab7b1355c46455ee230c16a22d 100644 (file)
@@ -15,6 +15,8 @@ if len(sys.argv) < 2:
 def format_modname(name):
     if name.endswith('.pyx'):
         name = name[:-4]
+    elif name.endswith('.py'):
+        name = name[:-3]
     return name.replace('.','_')
 
 modules = [format_modname(x) for x in sys.argv[1:]]