Questions tagged [scikit-build]
9 questions
5
votes
1 answer
Installing python extension module : understanding skbuild+setuptools
I am one of the devs of a (fairly large) C++ simulation tool. Disclaimer : I'm more of a physicist than a dev. I wrote Python bindings for that project using pybind11.
I managed to get the Python module to compile with cmake. I then managed to write…

SergeD
- 44
- 9
2
votes
1 answer
Packaging executable, shared library, and Python bindings not finding library
I have a project, cloudgen, that I would like to add bindings for Python so I can access some of the underlying functions. I have stubbed out the initial work on a branch. Because the main executable is built with cmake, I decided to use…

Keith Prussing
- 803
- 8
- 19
1
vote
1 answer
Adding a minimal `pyproject.toml` silently breaks my build
I am trying to use pybind11 and scikit-build in a minimal repository based on their cpp example repo. When trying to build it via pip install -e ., pip claims that the file was "Successfully installed", but didn't actually build anything (I suspect…

polortiz40
- 391
- 4
- 13
1
vote
0 answers
Skbuild setuptools : put library in correct place
I implemented python bindings for a C++ project. I want the extension module to be installable via pip. I managed to get a setupfile working, that compiles the module : https://gitlab.com/cytosim/cytosim/-/tree/pybind
So I can python3 setup.py sdist…

SergeD
- 44
- 9
1
vote
1 answer
How to generate an abi3 weel with shiboken6?
I was able to generate cpX-cpX-manylinux_2_24 wheels using PySide2/6, shiboken2/6, scikit-build and repairwheel (https://github.com/aymara/lima-python/) but I'm not able to find where to ask to build abi3 compatible binaries.
I read in "The Python/C…

Kleag
- 642
- 7
- 14
0
votes
0 answers
How to add a configure step with skbuild to build qt?
I have 3 external dependencies that we'd like to build automatically and install on our Dev server: Eigen, Qt and OpenCV. My main directory has 3 subdirectories, each one being a git submodule of those projects.
I managed to compile and install…

PJ127
- 986
- 13
- 23
0
votes
1 answer
How to package a nested Python module using scikit-build?
scikit-build is failing to package a python project for me. Here's the layout
hello-cpp
├── src
| └── hello
| ├── OtherModule
| | └── __init__.py # empty
| └── __init__.py # empty
| └── hello.cpp
├──…

polortiz40
- 391
- 4
- 13
0
votes
1 answer
CMake C++ library includes toolchain name
I am building a Python extension in C++ using pybind11 and scikit-build. I base on the example provided at https://github.com/pybind/scikit_build_example/blob/master/setup.py.
My CMakelists boils down to this:
pybind11_add_module(_mylib MODULE…

Aart Stuurman
- 3,188
- 4
- 26
- 44
0
votes
1 answer
Including compiled extension with cx_freeze
I have a C extension that I am building with scikit-build (because it uses a CMake library), and this builds fine and works when imported in python.
I am then trying to build the script that uses the extension with cx-freeze, which is building, but…

Nick
- 3,958
- 4
- 32
- 47