let Cython compile .py files without complaining about their file extension
authorStefan Behnel <scoder@users.berlios.de>
Fri, 25 Apr 2008 16:05:33 +0000 (18:05 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 25 Apr 2008 16:05:33 +0000 (18:05 +0200)
Cython/Compiler/CmdLine.py

index 05a607a4a3e4a5b400ddede0320e912a52ccb1e5..2c2a6d4f9b366d96cf94fd39d12bc61fd94620e2 100644 (file)
@@ -129,6 +129,9 @@ def parse_command_line(args):
             arg = pop_arg()
             if arg.endswith(".pyx"):
                 sources.append(arg)
+            elif arg.endswith(".py"):
+                # maybe do some other stuff, but this should work for now
+                sources.append(arg)
             elif arg.endswith(".o"):
                 options.objects.append(arg)
             else: