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
Boxiang Sun
cython
Commits
68f94ce2
Commit
68f94ce2
authored
Aug 09, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix docstring reuse from distutils Extension base class
parent
d73ff291
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
22 deletions
+25
-22
Cython/Distutils/extension.py
Cython/Distutils/extension.py
+25
-22
No files found.
Cython/Distutils/extension.py
View file @
68f94ce2
...
@@ -15,29 +15,8 @@ try:
...
@@ -15,29 +15,8 @@ try:
except
ImportError
:
except
ImportError
:
warnings
=
None
warnings
=
None
class
Extension
(
_Extension
.
Extension
):
_Extension
.
Extension
.
__doc__
+
\
"""cython_include_dirs : [string]
list of directories to search for Pyrex header files (.pxd) (in
Unix form for portability)
cython_directives : {string:value}
dict of compiler directives
cython_create_listing_file : boolean
write pyrex error messages to a listing (.lis) file.
cython_line_directives : boolean
emit pyx line numbers for debugging/profiling
cython_cplus : boolean
use the C++ compiler for compiling and linking.
cython_c_in_temp : boolean
put generated C files in temp directory.
cython_gen_pxi : boolean
generate .pxi file for public declarations
cython_gdb : boolean
generate Cython debug information for this extension for cygdb
no_c_in_traceback : boolean
emit the c file and line number from the traceback for exceptions
"""
class
Extension
(
_Extension
.
Extension
):
# When adding arguments to this constructor, be sure to update
# When adding arguments to this constructor, be sure to update
# user_options.extend in build_ext.py.
# user_options.extend in build_ext.py.
def
__init__
(
self
,
name
,
sources
,
def
__init__
(
self
,
name
,
sources
,
...
@@ -120,4 +99,28 @@ class Extension(_Extension.Extension):
...
@@ -120,4 +99,28 @@ class Extension(_Extension.Extension):
# class Extension
# class Extension
# reuse and extend original docstring from base class
if
_Extension
.
Extension
.
__doc__
:
# -OO discards docstrings
Extension
.
__doc__
=
_Extension
.
Extension
.
__doc__
+
"""
\
cython_include_dirs : [string]
list of directories to search for Pyrex header files (.pxd) (in
Unix form for portability)
cython_directives : {string:value}
dict of compiler directives
cython_create_listing_file : boolean
write pyrex error messages to a listing (.lis) file.
cython_line_directives : boolean
emit pyx line numbers for debugging/profiling
cython_cplus : boolean
use the C++ compiler for compiling and linking.
cython_c_in_temp : boolean
put generated C files in temp directory.
cython_gen_pxi : boolean
generate .pxi file for public declarations
cython_gdb : boolean
generate Cython debug information for this extension for cygdb
no_c_in_traceback : boolean
emit the c file and line number from the traceback for exceptions
"""
read_setup_file
=
_Extension
.
read_setup_file
read_setup_file
=
_Extension
.
read_setup_file
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