You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've be using pybind11 since few year, but I was not the developer that set-up all the machinery at the time. Today, I would like to dig into the build system, thus I created my own minimal working example based on what I found here and here using skbuild and cmake. I am also a newbie in cmake.
In the pyproject.toml, what is the build-backend? Sometime I found scikit_build_core.build and sometime setuptools.build_meta.
When pip install . terminates, I can find the files _core.cpython-310-x86_64-linux-gnu.so and libcpp_library.so in /local/home/dagnic/miniconda3/envs/p310/lib/python3.10/site-packages/scikit_build_example but the __init__.py is missing.
If I ldd on _core.cpython-310-x86_64-linux-gnu.so, it says libcpp_library.so is not found.
You help would be very appreciated, especially if you can help me to understand this and help me to make this example working.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I've be using pybind11 since few year, but I was not the developer that set-up all the machinery at the time. Today, I would like to dig into the build system, thus I created my own minimal working example based on what I found here and here using skbuild and cmake. I am also a newbie in cmake.
My project is here.
It compiles, but I cannot manage to use the bindings within python.
I have some questions based on my observations:
pip install -v .
, I can see the message below. What is the impact of this?pyproject.toml
, what is thebuild-backend
? Sometime I foundscikit_build_core.build
and sometimesetuptools.build_meta
.pip install .
terminates, I can find the files_core.cpython-310-x86_64-linux-gnu.so
andlibcpp_library.so
in/local/home/dagnic/miniconda3/envs/p310/lib/python3.10/site-packages/scikit_build_example
but the__init__.py
is missing.ldd
on_core.cpython-310-x86_64-linux-gnu.so
, it sayslibcpp_library.so
is not found.You help would be very appreciated, especially if you can help me to understand this and help me to make this example working.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions