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
Gwenaël Samain
cython
Commits
ee1b399f
Commit
ee1b399f
authored
Jul 28, 2007
by
William Stein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changing from pyrex/sagex to cython -- snapshot.
parent
14beaf2d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
11 deletions
+12
-11
Cython/Compiler/CmdLine.py
Cython/Compiler/CmdLine.py
+10
-9
Cython/Compiler/Version.py
Cython/Compiler/Version.py
+1
-1
Cython/Utils.py
Cython/Utils.py
+1
-1
No files found.
Cython/Compiler/CmdLine.py
View file @
ee1b399f
#
#
Pyrex
- Command Line Parsing
#
Cython
- Command Line Parsing
#
import
sys
import
Options
usage
=
"""
\
SageX is a minor variant of Pyrex for compiling code for SAGE.
Cython (http://cython.org) is for compiling code written in the Cython
language. Cython is based on Pyrex by Greg Ewing.
Usage:
sagexc
[options] sourcefile...
Usage:
cython
[options] sourcefile...
Options:
-v, --version Display version number of
pyrex
compiler
-v, --version Display version number of
cython
compiler
-l, --create-listing Write error messages to a listing file
-I, --include-dir <directory> Search for include files in named directory
(multiply include directories are allowed).
-o, --output-file <filename> Specify name of generated C file
-p, --embed-positions If specified, the positions in
Pyrex
files of each
-p, --embed-positions If specified, the positions in
Cython
files of each
function definition is embedded in its docstring.
-z, --pre-import <module> If specified, assume undeclared names in this
module. Emulates the behavior of putting
...
...
@@ -33,7 +34,7 @@ def bad_usage():
sys
.
exit
(
1
)
def
parse_command_line
(
args
):
from
Pyrex
.Compiler.Main
import
\
from
Cython
.Compiler.Main
import
\
CompilationOptions
,
default_options
def
pop_arg
():
...
...
@@ -85,13 +86,13 @@ def parse_command_line(args):
options
.
objects
.
append
(
arg
)
else
:
print
>>
sys
.
stderr
,
\
"
pyrexc
: %s: Unknown filename suffix"
%
arg
"
cython
: %s: Unknown filename suffix"
%
arg
if
options
.
objects
and
len
(
sources
)
>
1
:
print
>>
sys
.
stderr
,
\
"
pyrexc
: Only one source file allowed together with .o files"
"
cython
: Only one source file allowed together with .o files"
if
options
.
use_listing_file
and
len
(
sources
)
>
1
:
print
>>
sys
.
stderr
,
\
"
pyrexc
: Only one source file allowed when using -o"
"
cython
: Only one source file allowed when using -o"
sys
.
exit
(
1
)
if
len
(
sources
)
==
0
:
bad_usage
()
...
...
Cython/Compiler/Version.py
View file @
ee1b399f
version
=
'0.9.
5.1a
'
version
=
'0.9.
6
'
Cython/Utils.py
View file @
ee1b399f
#
#
Pyrex
-- Things that don't belong
#
Cython
-- Things that don't belong
# anywhere else in particular
#
...
...
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