Automatic discovery, SWIG wrappers, and pyproject toml #5028
Unanswered
stephematician
asked this question in
Q&A
Replies: 1 comment 2 replies
-
See also: https://stackoverflow.com/questions/50239473/building-a-module-with-setuptools-and-swig |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I want to include a SWIG-generated wrapper module called
cext
(which wraps the internal_cext
library that SWIG generates for me, too).When I build the project I see that, although
cext.py
is generated, it is not added to the dist or wheel:So when I try to import (obviously):
What's the simplest (and most future-proof) way to get the desired result that
cext.py
is included?Details of MWE
A
MANIFEST.in
is required to ensure the headers are packaged:Here's how I think the
pyproject.toml
would look:The contents of
cext.i
are:So, basically, I want to wrap all the structures that I declare in
foo_module.h
and a few enums, and so forth. But for a minimal example, can add anything tofoo_module.h
that we like, e.g.Beta Was this translation helpful? Give feedback.
All reactions