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
7fa11da9
Commit
7fa11da9
authored
Jul 07, 2016
by
Robert Bradshaw
Committed by
Stefan Behnel
Jul 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Example of using package_data for pxd files.
parent
d9b29b33
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
docs/src/reference/compilation.rst
docs/src/reference/compilation.rst
+14
-0
No files found.
docs/src/reference/compilation.rst
View file @
7fa11da9
...
@@ -222,6 +222,20 @@ list in the Extensions when not using Cython::
...
@@ -222,6 +222,20 @@ list in the Extensions when not using Cython::
extension.sources[:] = sources
extension.sources[:] = sources
return extensions
return extensions
If you want to expose the C-level interface of your library for other
libraries to cimport from, use package_data to install the ``.pxd`` files,
e.g.::
setup(
package_data = {
'my_package': ['*.pxd'],
'my_package/sub_package': ['*.pxd'],
},
...
)
These ``.pxd`` files need not correspond have corresponding ``.pyx``
modules if they contain purely declarations of external libraries.
Compiling with ``pyximport``
Compiling with ``pyximport``
=============================
=============================
...
...
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