How to link 3rd party dependency that you try to make a binding for? #5184
Closed
cyborgdennett
started this conversation in
General
Replies: 1 comment
-
Okay, I found a solution to this problem, it consists of making the library you interface static. I don't recommend this practice for large libraries, but the one I use is only 100kb big. Step 1. |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hello,
I have library A, that has it's own CMake build, and I build that with default CMake params. Than my project is project B, where I make python bindings. how can I use the A library?
Project outline:
├── dist
├── MANIFEST.in
├── primesieve (Library I try to make bindings for)
├── primesieve_bindings.cpp (bindings)
├── primesieve_py (python module dir)
. ├─ init.py
├── pyproject.toml
├── setup.py
The steps I take in my setup.py are as follows
python -c "import primesieve_py;"
returns:primesieve_bindings.cpp:
primesieve_py/init.py
setup.py
Beta Was this translation helpful? Give feedback.
All reactions