0

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 Eigen with skbuild rather easily.

But when it comes to qt, I have a problem, because it says it can find qt6.6.0. Reading the docs, the procedure is:

mkdir qt6-build
cd qt6-build
..\qt6\configure.bat -prefix C:\path\to\install
cmake --build .
cmake --install .

When doing pip install ., skbuild will do the mkdir and cmake steps itself, but has no idea of the configure.bat step that is required.

How to tell setup.py to run this extra command before trying to build? Any other answer allowing to build qt through skbuild is very welcome! Thank you.

For information, my setup.py looks like:

from skbuild import setup
    
setup(
    name="external-deps",
    version="0.1.0",
    description="C++ opensource libraries",
    author="Multiple",
    license="LGPL",
    packages=["Eigen", "Qt"],
    python_requires=">=3.11",
)
PJ127
  • 986
  • 13
  • 23

0 Answers0