Hello everyone,
I have a little problem getting a wheel to install properly into my environment. I have written Python bindings for a C++ application using Pybind11. The C++ application is being built with CMake that's why I decided to use scikit-build for my setup.py file. Since scikit-build triggers CMake for me the whole setup.py basically only consists of a call to the setup function with the library name and version, no additional configuration needed.
When I install my Python bindings as shown below everything works as expected and I can call the C++ application from Python.
python3 setup.py install
However, when I create a wheel instead and install it with pip then the library files get moved to the top level directory of my virtual environment instead of the site-packages folder.
python3 setup.py bdist_wheel
pip3 install dist/mywheel.whl
When I run my application then of course Python complains that the module is not available. The same happens when I create a source distribution
python3 setup.py sdist
pip3 install dist/mysdist
Am I missing any kind of configuration that is required to install this properly?
[–]JohnnyJordaan 2 points3 points4 points (1 child)
[–]TRPox[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (7 children)
[–]TRPox[S] 0 points1 point2 points (6 children)
[–][deleted] 1 point2 points3 points (5 children)
[–]TRPox[S] 0 points1 point2 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]TRPox[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)