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
eebdac3b
Commit
eebdac3b
authored
Jul 28, 2007
by
William Stein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More Pyrex --> Cython conversions.
parent
0a930f3f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
Cython/Compiler/CmdLine.py
Cython/Compiler/CmdLine.py
+3
-3
Cython/Compiler/Main.py
Cython/Compiler/Main.py
+6
-6
Cython/Compiler/Scanning.py
Cython/Compiler/Scanning.py
+1
-1
No files found.
Cython/Compiler/CmdLine.py
View file @
eebdac3b
...
...
@@ -6,10 +6,10 @@ import sys
import
Options
usage
=
"""
\
Cython (http://cython.org) is
for compiling code written in the Cython
language. Cython is based on Pyrex by Greg Ewing.
Cython (http://cython.org) is
a compiler for code written in the
Cython language. Cython is based on Pyrex by Greg Ewing.
Usage: cython [options] sourcefile...
Usage: cython [options] sourcefile.
pyx .
..
Options:
-v, --version Display version number of cython compiler
...
...
Cython/Compiler/Main.py
View file @
eebdac3b
#
#
Pyrex
Top Level
#
Cython
Top Level
#
import
os
,
sys
if
sys
.
version_info
[:
2
]
<
(
2
,
2
):
print
>>
sys
.
stderr
,
"Sorry,
Pyrex
requires Python 2.2 or later"
print
>>
sys
.
stderr
,
"Sorry,
Cython
requires Python 2.2 or later"
sys
.
exit
(
1
)
import
os
...
...
@@ -217,7 +217,7 @@ class Context:
class
CompilationOptions
:
"""
Options to the
Pyrex
compiler:
Options to the
Cython
compiler:
show_version boolean Display version number
use_listing_file boolean Generate a .lis file
...
...
@@ -243,7 +243,7 @@ class CompilationOptions:
class
CompilationResult
:
"""
Results from the
Pyrex
compiler:
Results from the
Cython
compiler:
c_file string or None The generated C source file
h_file string or None The generated C header file
...
...
@@ -267,7 +267,7 @@ def compile(source, options = None, c_compile = 0, c_link = 0):
"""
compile(source, options = default_options)
Compile the given
Pyrex
implementation file and return
Compile the given
Cython
implementation file and return
a CompilationResult object describing what was produced.
"""
if
not
options
:
...
...
@@ -296,7 +296,7 @@ def main(command_line = 0):
options
=
default_options
sources
=
args
if
options
.
show_version
:
print
>>
sys
.
stderr
,
"
Pyrex
version %s"
%
Version
.
version
print
>>
sys
.
stderr
,
"
Cython
version %s"
%
Version
.
version
context
=
Context
(
options
.
include_path
)
for
source
in
sources
:
try
:
...
...
Cython/Compiler/Scanning.py
View file @
eebdac3b
...
...
@@ -10,7 +10,7 @@ import stat
import
sys
from
time
import
time
from
Pyrex
import
Plex
from
Cython
import
Plex
from
Cython.Plex
import
Scanner
from
Cython.Plex.Errors
import
UnrecognizedInput
from
Errors
import
CompileError
,
error
...
...
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