From: Stefan Behnel Date: Fri, 25 Apr 2008 16:05:33 +0000 (+0200) Subject: let Cython compile .py files without complaining about their file extension X-Git-Tag: 0.9.6.14~20^2~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d97b5704776fc82550eb6932e7222d697837de48;p=cython.git let Cython compile .py files without complaining about their file extension --- diff --git a/Cython/Compiler/CmdLine.py b/Cython/Compiler/CmdLine.py index 05a607a4..2c2a6d4f 100644 --- a/Cython/Compiler/CmdLine.py +++ b/Cython/Compiler/CmdLine.py @@ -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: