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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
b89415d0
Commit
b89415d0
authored
Aug 10, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reorder options in bin/cythonize
parent
4f119a84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
bin/cythonize
bin/cythonize
+13
-7
No files found.
bin/cythonize
View file @
b89415d0
...
...
@@ -120,26 +120,32 @@ def run_distutils(args):
def
parse_args
(
args
):
from
optparse
import
OptionParser
parser
=
OptionParser
(
usage
=
'%prog [options] [sources and packages]+'
)
parser
.
add_option
(
'-X'
,
'--directive'
,
metavar
=
'NAME=VALUE,...'
,
dest
=
'directives'
,
action
=
'callback'
,
callback
=
parse_directives
,
default
=
{},
help
=
'set a compiler directive'
)
parser
.
add_option
(
'-s'
,
'--option'
,
metavar
=
'NAME=VALUE'
,
dest
=
'options'
,
action
=
'callback'
,
callback
=
parse_options
,
default
=
{},
help
=
'set a cythonize option'
)
parser
.
add_option
(
'-x'
,
'--exclude'
,
metavar
=
'PATTERN'
,
dest
=
'excludes'
,
action
=
'append'
,
default
=
[],
help
=
'exclude certain file patterns from the compilation'
)
parser
.
add_option
(
'--lenient'
,
dest
=
'lenient'
,
action
=
'store_true'
,
help
=
'increase Python compatibility by ignoring some compile time errors'
)
parser
.
add_option
(
'-k'
,
'--keep-going'
,
dest
=
'keep_going'
,
action
=
'store_true'
,
help
=
'compile as much as possible, ignore compilation failures'
)
parser
.
add_option
(
'-i'
,
'--inplace'
,
dest
=
'build_inplace'
,
action
=
'store_true'
,
help
=
'build extension modules in place using distutils (implies -b)'
)
parser
.
add_option
(
'-b'
,
'--build'
,
dest
=
'build'
,
action
=
'store_true'
,
help
=
'build extension modules using distutils'
)
parser
.
add_option
(
'-i'
,
'--inplace'
,
dest
=
'build_inplace'
,
action
=
'store_true'
,
help
=
'build extension modules in place using distutils (implies -b)'
)
parser
.
add_option
(
'-j'
,
'--parallel'
,
dest
=
'parallel'
,
metavar
=
'N'
,
type
=
int
,
default
=
parallel_compiles
,
help
=
'run builds in N parallel jobs'
)
help
=
(
'run builds in N parallel jobs (default: %d)'
%
parallel_compiles
or
1
))
parser
.
add_option
(
'--lenient'
,
dest
=
'lenient'
,
action
=
'store_true'
,
help
=
'increase Python compatibility by ignoring some compile time errors'
)
parser
.
add_option
(
'-k'
,
'--keep-going'
,
dest
=
'keep_going'
,
action
=
'store_true'
,
help
=
'compile as much as possible, ignore compilation failures'
)
options
,
args
=
parser
.
parse_args
(
args
)
if
not
args
:
parser
.
error
(
"no source files provided"
)
...
...
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