Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2dd7d179
Commit
2dd7d179
authored
May 12, 2007
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #1046945: document SWIG options of distutils.
parent
a74b67e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
Doc/dist/dist.tex
Doc/dist/dist.tex
+19
-3
No files found.
Doc/dist/dist.tex
View file @
2dd7d179
...
...
@@ -486,9 +486,24 @@ list; the \command{build\_ext} command knows how to deal with SWIG
extensions: it will run SWIG on the interface file and compile the
resulting C/
\Cpp
{}
file into your extension.
\XXX
{
SWIG support is rough around the edges and largely untested;
especially SWIG support for
\Cpp
{}
extensions! Explain in more detail
here when the interface firms up.
}
\XXX
{
SWIG support is rough around the edges and largely untested!
}
This warning notwithstanding, options to SWIG can be currently passed
like this:
\begin{verbatim}
setup(...
ext
_
modules=[Extension('
_
foo', ['foo.i'],
swig
_
opts=['-modern', '-I../include'])],
py
_
modules=['foo'],
)
\end{verbatim}
Or on the commandline like this:
\begin{verbatim}
> python setup.py build
_
ext --swig-opts="-modern -I../include"
\end{verbatim}
On some platforms, you can include non-source files that are processed
by the compiler and included in your extension. Currently, this just
...
...
@@ -1017,6 +1032,7 @@ Options for 'build_ext' command:
--include-dirs (-I) list of directories to search for header files
--define (-D) C preprocessor macros to define
--undef (-U) C preprocessor macros to undefine
--swig-opts list of SWIG command line options
[...]
\end{verbatim}
...
...
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