Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
2381cf24
Commit
2381cf24
authored
Apr 30, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
assume that source files without suffix are Python files instead of rejecting them
parent
87a227a1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
Cython/Compiler/CmdLine.py
Cython/Compiler/CmdLine.py
+1
-9
Cython/Compiler/Main.py
Cython/Compiler/Main.py
+1
-1
No files found.
Cython/Compiler/CmdLine.py
View file @
2381cf24
...
@@ -163,15 +163,7 @@ def parse_command_line(args):
...
@@ -163,15 +163,7 @@ def parse_command_line(args):
sys
.
stderr
.
write
(
"Unknown compiler flag: %s
\
n
"
%
option
)
sys
.
stderr
.
write
(
"Unknown compiler flag: %s
\
n
"
%
option
)
sys
.
exit
(
1
)
sys
.
exit
(
1
)
else
:
else
:
arg
=
pop_arg
()
sources
.
append
(
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
)
else
:
sys
.
stderr
.
write
(
"cython: %s: Unknown filename suffix
\
n
"
%
arg
)
if
options
.
use_listing_file
and
len
(
sources
)
>
1
:
if
options
.
use_listing_file
and
len
(
sources
)
>
1
:
sys
.
stderr
.
write
(
sys
.
stderr
.
write
(
"cython: Only one source file allowed when using -o
\
n
"
)
"cython: Only one source file allowed when using -o
\
n
"
)
...
...
Cython/Compiler/Main.py
View file @
2381cf24
...
@@ -616,7 +616,7 @@ def run_pipeline(source, options, full_module_name = None):
...
@@ -616,7 +616,7 @@ def run_pipeline(source, options, full_module_name = None):
options
.
annotate
=
True
options
.
annotate
=
True
# Get pipeline
# Get pipeline
if
source_ext
.
lower
()
==
'.py'
:
if
source_ext
.
lower
()
==
'.py'
or
not
source_ext
:
pipeline
=
context
.
create_py_pipeline
(
options
,
result
)
pipeline
=
context
.
create_py_pipeline
(
options
,
result
)
else
:
else
:
pipeline
=
context
.
create_pyx_pipeline
(
options
,
result
)
pipeline
=
context
.
create_pyx_pipeline
(
options
,
result
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment