Comments (2)
You'd just use the full dotted path for the submodule name.
from python_example.
@henryiii Could you clarify / make an example with a mixed python/c++ module with pybind?
I assume I would modify the setup.py to specify the folder containing the python package as "packages = X". Would ext_modules automatically end up in the root of that package folder?
I guess I can just verify this myself.
EDIT: So this works, but the name needs to have the relpath, as you write above.
from python_example.
Related Issues (20)
- Compilation issue on macOS 12.3
- Cannot compile with conda build HOT 1
- I can't get it to work when I use my own python interpreter HOT 1
- Install compiled package in a Jupyter Notebook HOT 2
- Unsupported Wheel on x86_64 Intel Chip Mac running OSX 13.4 HOT 4
- yocto recipe for this example
- pybind11.get_include() with virutalenv HOT 1
- Libopenblas issues in conda build when adding <pybind11/numpy.h> functionality on OSX HOT 6
- module builds but fails to load with non-cmake library HOT 6
- The example does not explain how to handle .h file. HOT 2
- Linker error building on macOS HOT 4
- [Question] ImportError: DLL load failed while importing HOT 2
- REQ Github template repository HOT 8
- trying to install kivy on ubuntu HOT 1
- Difficulty uploading to pypi? HOT 2
- What about the pygrep hooks for the RST files we added recently. Those seem quite useful.
- Linking HOT 1
- Why the same code can be built and installed on Linux and macOS but not on Windows? HOT 4
- ImportError: dynamic module does not define module export function (PyInit_python_example) HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python_example.