From 7c80ef15df907fce94856f811844428ed5bec256 Mon Sep 17 00:00:00 2001 From: thomasarsouze Date: Mon, 28 Sep 2026 17:02:12 +0200 Subject: [PATCH 01/18] Remove "cdt" package --- conda/meta.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conda/meta.yaml b/conda/meta.yaml index 545a1ed..dd8aa28 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -25,7 +25,7 @@ requirements: - {{ compiler('cxx')}} - make # [unix] - pkg-config # [linux] - - {{ cdt('mesa-libgl-devel') }} # [linux] # match libqglviewer CDT GL strategy + - mesa-libgl-devel-conda-aarch64 # [linux] # match libqglviewer CDT GL strategy # from https://conda-forge.org/docs/maintainer/knowledge_base.html#libgl - python # [build_platform != target_platform] - sip # [build_platform != target_platform] @@ -39,7 +39,7 @@ requirements: - sip - pyqt5-sip - pyqt-builder - - {{ cdt('mesa-libgl-devel') }} # [linux] + - mesa-libgl-devel-conda-aarch64 # [linux] - libxcb # [linux] - pthread-stubs # [linux] - xorg-libxfixes # [linux] From f07c4eaa78c855a76d87034ce479a95c6b28938d Mon Sep 17 00:00:00 2001 From: thomasarsouze Date: Thu, 1 Oct 2026 10:16:16 +0200 Subject: [PATCH 02/18] Update libgl-devel in meta.yaml --- conda/meta.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/conda/meta.yaml b/conda/meta.yaml index dd8aa28..9d5ead7 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -22,10 +22,11 @@ build: requirements: build: - - {{ compiler('cxx')}} + - {{ compiler('cxx') }} + - {{ stdlib('c') }} - make # [unix] - pkg-config # [linux] - - mesa-libgl-devel-conda-aarch64 # [linux] # match libqglviewer CDT GL strategy + - libgl-devel # [linux] # match libqglviewer CDT GL strategy # from https://conda-forge.org/docs/maintainer/knowledge_base.html#libgl - python # [build_platform != target_platform] - sip # [build_platform != target_platform] @@ -39,7 +40,7 @@ requirements: - sip - pyqt5-sip - pyqt-builder - - mesa-libgl-devel-conda-aarch64 # [linux] + - libgl-devel # [linux] - libxcb # [linux] - pthread-stubs # [linux] - xorg-libxfixes # [linux] From 300c2cd725539b092459f31f91766a80ced947c6 Mon Sep 17 00:00:00 2001 From: thomasarsouze Date: Mon, 5 Oct 2026 15:40:14 +0200 Subject: [PATCH 03/18] Debuging build --- conda/build.sh | 42 +++++++++++++++++++++++++++++------------- 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/conda/build.sh b/conda/build.sh index 604d590..3f73cd7 100644 --- a/conda/build.sh +++ b/conda/build.sh @@ -2,22 +2,40 @@ # Inspired from https://github.com/conda-forge/pyqt-feedstock/tree/main/recipe -if [ "$(uname)" == "Linux" ]; -then - USED_BUILD_PREFIX=${BUILD_PREFIX:-${PREFIX}} +if [ "$(uname)" == "Linux" ]; then + # USED_BUILD_PREFIX=${BUILD_PREFIX:-${PREFIX}} - ln -s ${GXX} g++ || true - ln -s ${GCC} gcc || true - ln -s ${USED_BUILD_PREFIX}/bin/${HOST}-gcc-ar gcc-ar || true + # ln -s ${GXX} g++ || true + # ln -s ${GCC} gcc || true + # ln -s ${USED_BUILD_PREFIX}/bin/${HOST}-gcc-ar gcc-ar || true export LD=${GXX} export CC=${GCC} export CXX=${GXX} + export QMAKE_CXX="${CXX}" + export QMAKE_CC="${CC}" export PKG_CONFIG_EXECUTABLE=$(basename $(which pkg-config)) - export PATH=${PWD}:${PATH} +# export PATH=${PWD}:${PATH} fi +echo "CC=${CC}" +echo "CXX=${CXX}" +echo "GCC=${GCC}" +echo "GXX=${GXX}" + +which gcc +which g++ + +readlink -f "$(which gcc)" || true +readlink -f "$(which g++)" || true +readlink -f "$GCC" || true +readlink -f "$GXX" || true + +"${CC}" --version +"${CXX}" --version + +"$GXX" -v -E -x c++ /dev/null echo "**** BUILD" sip-install --verbose @@ -27,14 +45,12 @@ echo "****** CHECK PYTHON LIB" # To check if Python lib is not in the dependencies with conda-forge distribution. # See https://github.com/conda-forge/boost-feedstock/issues/81 -if [ `uname` = "Darwin" ]; then - otool -L `${PYTHON} -c "import PyQGLViewer as pyqgl ; print(pyqgl.__file__)"` +if [ $(uname) = "Darwin" ]; then + otool -L $(${PYTHON} -c "import PyQGLViewer as pyqgl ; print(pyqgl.__file__)") fi - -if [ "$(uname)" == "Linux" ]; -then - ldd `${PYTHON} -c "import PyQGLViewer as pyqgl ; print(pyqgl.__file__)"` +if [ "$(uname)" == "Linux" ]; then + ldd $(${PYTHON} -c "import PyQGLViewer as pyqgl ; print(pyqgl.__file__)") fi echo "****** END OF BUILD PROCESS" From 3828fa417afc4b0faae395fbe69c840ce09c9f32 Mon Sep 17 00:00:00 2001 From: BESNIER AURELIEN Date: Tue, 27 Oct 2026 11:43:14 +0100 Subject: [PATCH 04/18] Trying build inspired by pyqt --- conda/build.sh | 21 +++++++++++++-------- conda/meta.yaml | 23 +++++++++++------------ 2 files changed, 24 insertions(+), 20 deletions(-) diff --git a/conda/build.sh b/conda/build.sh index 3f73cd7..c8049c8 100644 --- a/conda/build.sh +++ b/conda/build.sh @@ -3,20 +3,25 @@ # Inspired from https://github.com/conda-forge/pyqt-feedstock/tree/main/recipe if [ "$(uname)" == "Linux" ]; then - # USED_BUILD_PREFIX=${BUILD_PREFIX:-${PREFIX}} - - # ln -s ${GXX} g++ || true - # ln -s ${GCC} gcc || true - # ln -s ${USED_BUILD_PREFIX}/bin/${HOST}-gcc-ar gcc-ar || true + GXX_PATH=$(command -v "${GXX}") + GCC_PATH=$(command -v "${GCC}") + GCC_AR_PATH=$(command -v "${GCC_AR}") + ln -sf "${GXX_PATH}" g++ + ln -sf "${GCC_PATH}" gcc + ln -sf "${GCC_AR_PATH}" gcc-ar export LD=${GXX} export CC=${GCC} export CXX=${GXX} - export QMAKE_CXX="${CXX}" - export QMAKE_CC="${CC}" export PKG_CONFIG_EXECUTABLE=$(basename $(which pkg-config)) -# export PATH=${PWD}:${PATH} + chmod +x g++ gcc gcc-ar + export PATH=${PWD}:${PATH} + + SYSROOT_FLAGS="-L ${BUILD_PREFIX}/${HOST}/sysroot/usr/lib64 -L ${BUILD_PREFIX}/${HOST}/sysroot/usr/lib" + export CFLAGS="$SYSROOT_FLAGS $CFLAGS" + export CXXFLAGS="$SYSROOT_FLAGS $CXXFLAGS" + export LDFLAGS="$SYSROOT_FLAGS $LDFLAGS" fi echo "CC=${CC}" diff --git a/conda/meta.yaml b/conda/meta.yaml index 9d5ead7..02cd5b9 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -22,25 +22,24 @@ build: requirements: build: + - {{ compiler('c') }} - {{ compiler('cxx') }} - {{ stdlib('c') }} - make # [unix] - - pkg-config # [linux] - - libgl-devel # [linux] # match libqglviewer CDT GL strategy + - pkg-config # [unix] + - libgl-devel # [linux] # match libqglviewer CDT GL strategy # from https://conda-forge.org/docs/maintainer/knowledge_base.html#libgl - - python # [build_platform != target_platform] - - sip # [build_platform != target_platform] - - pyqt-builder # [build_platform != target_platform] + - python + - sip + - pyqt + - pyqt-builder host: - python - pip + - packaging - qt-main - - pyqt - libqglviewer - - sip - - pyqt5-sip - - pyqt-builder - - libgl-devel # [linux] + - libgl-devel # [linux] - libxcb # [linux] - pthread-stubs # [linux] - xorg-libxfixes # [linux] @@ -48,8 +47,8 @@ requirements: run: - python - - {{ pin_compatible('pyqt', max_pin='x.x') }} - - {{ pin_compatible('libqglviewer', max_pin='x.x') }} + - pyqt + - libqglviewer - pyopengl - xorg-libxfixes # [linux] From 6a1c8bd3569fbe2e292bf265d12c1acab1ac7384 Mon Sep 17 00:00:00 2001 From: AurelienBesnier Date: Tue, 27 Oct 2026 11:53:47 +0100 Subject: [PATCH 05/18] Adding host deps --- conda/meta.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conda/meta.yaml b/conda/meta.yaml index 02cd5b9..b1fddd0 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -36,6 +36,8 @@ requirements: host: - python - pip + - sip + - pyqt-builder - packaging - qt-main - libqglviewer From 7583d29b3ac601cf49ea03cc75735a5742d524bc Mon Sep 17 00:00:00 2001 From: AurelienBesnier Date: Tue, 27 Oct 2026 12:17:49 +0100 Subject: [PATCH 06/18] adding pyqt5-sip as required in pyproject --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9b3ae39..333d507 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ # Specify the build system. [build-system] # "setuptools", "setuptools-scm" not used -requires = ["sip", "PyQt-builder"] +requires = ["sip", "PyQt-builder", "PyQt5-sip"] build-backend = "sipbuild.api" From 1427ae07c8310622ecc54d4bb478fb121774e596 Mon Sep 17 00:00:00 2001 From: AurelienBesnier Date: Tue, 27 Oct 2026 12:25:22 +0100 Subject: [PATCH 07/18] Using pip install in build --- conda/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conda/build.sh b/conda/build.sh index c8049c8..1135f66 100644 --- a/conda/build.sh +++ b/conda/build.sh @@ -43,7 +43,7 @@ readlink -f "$GXX" || true "$GXX" -v -E -x c++ /dev/null echo "**** BUILD" -sip-install --verbose +pip install -v . echo echo "****** CHECK PYTHON LIB" From 9abdca7df2cae7e4e2031ae6d6999cc382ed6871 Mon Sep 17 00:00:00 2001 From: AurelienBesnier Date: Tue, 27 Oct 2026 12:31:23 +0100 Subject: [PATCH 08/18] build flags --- conda/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conda/build.sh b/conda/build.sh index 1135f66..2d204c4 100644 --- a/conda/build.sh +++ b/conda/build.sh @@ -43,7 +43,7 @@ readlink -f "$GXX" || true "$GXX" -v -E -x c++ /dev/null echo "**** BUILD" -pip install -v . +pip install -vv --ignore-installed . echo echo "****** CHECK PYTHON LIB" From afa62ccee8977c27ebc3cb65d2a27ffb15f016c3 Mon Sep 17 00:00:00 2001 From: AurelienBesnier Date: Tue, 27 Oct 2026 12:42:35 +0100 Subject: [PATCH 09/18] Trying to force reinstall to get right version --- conda/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conda/build.sh b/conda/build.sh index 2d204c4..4870d03 100644 --- a/conda/build.sh +++ b/conda/build.sh @@ -43,7 +43,7 @@ readlink -f "$GXX" || true "$GXX" -v -E -x c++ /dev/null echo "**** BUILD" -pip install -vv --ignore-installed . +pip install -vv --force-reinstall . echo echo "****** CHECK PYTHON LIB" From 9ef11899c32f0625b88d1aca0046fbe63cc5ec10 Mon Sep 17 00:00:00 2001 From: AurelienBesnier Date: Tue, 27 Oct 2026 16:25:40 +0100 Subject: [PATCH 10/18] Using python's pip --- conda/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conda/build.sh b/conda/build.sh index 4870d03..39c3eef 100644 --- a/conda/build.sh +++ b/conda/build.sh @@ -43,7 +43,7 @@ readlink -f "$GXX" || true "$GXX" -v -E -x c++ /dev/null echo "**** BUILD" -pip install -vv --force-reinstall . +${PYTHON} -m pip install . -v --no-build-isolation --no-deps echo echo "****** CHECK PYTHON LIB" From 115c3b94d69d86d21120b298c748d9b8e6e9d225 Mon Sep 17 00:00:00 2001 From: AurelienBesnier Date: Tue, 27 Oct 2026 17:14:44 +0100 Subject: [PATCH 11/18] Installing deps through pip for consistency --- conda/{bld.bat => bld.bat.bak} | 0 conda/{build.sh => build.sh.bak} | 2 ++ conda/meta.yaml | 12 +++++++----- pyproject.toml | 8 +++++++- 4 files changed, 16 insertions(+), 6 deletions(-) rename conda/{bld.bat => bld.bat.bak} (100%) rename conda/{build.sh => build.sh.bak} (96%) diff --git a/conda/bld.bat b/conda/bld.bat.bak similarity index 100% rename from conda/bld.bat rename to conda/bld.bat.bak diff --git a/conda/build.sh b/conda/build.sh.bak similarity index 96% rename from conda/build.sh rename to conda/build.sh.bak index 39c3eef..18ce957 100644 --- a/conda/build.sh +++ b/conda/build.sh.bak @@ -42,6 +42,8 @@ readlink -f "$GXX" || true "$GXX" -v -E -x c++ /dev/null +${PYTHON} -m pip install --force-reinstall sip pyqt5-sip pyqt5 + echo "**** BUILD" ${PYTHON} -m pip install . -v --no-build-isolation --no-deps diff --git a/conda/meta.yaml b/conda/meta.yaml index b1fddd0..a7db505 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -19,6 +19,8 @@ build: string: py{{ PY_VER }} script_env: - SETUPTOOLS_SCM_PRETEND_VERSION + script: + - {{ PYTHON }} -m pip install . -v --no-build-isolation requirements: build: @@ -30,14 +32,14 @@ requirements: - libgl-devel # [linux] # match libqglviewer CDT GL strategy # from https://conda-forge.org/docs/maintainer/knowledge_base.html#libgl - python - - sip - - pyqt - - pyqt-builder + # - sip + # - pyqt + # - pyqt-builder host: - python - pip - - sip - - pyqt-builder + # - sip + # - pyqt-builder - packaging - qt-main - libqglviewer diff --git a/pyproject.toml b/pyproject.toml index 333d507..636b8ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ # Specify the build system. [build-system] # "setuptools", "setuptools-scm" not used -requires = ["sip", "PyQt-builder", "PyQt5-sip"] +requires = ["sip", "PyQt-builder"] build-backend = "sipbuild.api" @@ -15,6 +15,10 @@ readme = "README.md" authors = [ { name = "Frederic Boudon", email = "frederic.boudon@cirad.fr" } ] +dependencies = [ + "PyQt5", + "PyQt5-sip" +] [tool.sip.project] sip-module = "PyQt5.sip" @@ -23,6 +27,8 @@ sip-files-dir = "sip" [tool.sip.bindings.PyQGLViewer] qmake-QT = ['xml', 'opengl', 'gui', 'widgets'] tags = ['QGLViewer_2_9_1'] +include-dirs=['${CONDA_PREFIX}/include'] +library-dirs=['${CONDA_PREFIX}/lib'] # Could specified directly with new construct but currently only working on MacOS. Instead options set in project.py # libraries = ['QGLViewer ; system_platform == "Linux"','GLU ; system_platform == "Linux"'] \ No newline at end of file From 243a70d3633770dfb35a2abe16110a6a8424713d Mon Sep 17 00:00:00 2001 From: AurelienBesnier Date: Wed, 28 Oct 2026 15:33:39 +0100 Subject: [PATCH 12/18] Manually setting pyqt-builder version --- conda/build.sh.bak | 2 -- conda/meta.yaml | 12 +++++++----- pyproject.toml | 1 + 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/conda/build.sh.bak b/conda/build.sh.bak index 18ce957..39c3eef 100644 --- a/conda/build.sh.bak +++ b/conda/build.sh.bak @@ -42,8 +42,6 @@ readlink -f "$GXX" || true "$GXX" -v -E -x c++ /dev/null -${PYTHON} -m pip install --force-reinstall sip pyqt5-sip pyqt5 - echo "**** BUILD" ${PYTHON} -m pip install . -v --no-build-isolation --no-deps diff --git a/conda/meta.yaml b/conda/meta.yaml index a7db505..bbd525d 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -20,7 +20,7 @@ build: script_env: - SETUPTOOLS_SCM_PRETEND_VERSION script: - - {{ PYTHON }} -m pip install . -v --no-build-isolation + - {{ PYTHON }} -m pip install . -v --no-build-isolation --no-deps --ignore-installed requirements: build: @@ -31,15 +31,17 @@ requirements: - pkg-config # [unix] - libgl-devel # [linux] # match libqglviewer CDT GL strategy # from https://conda-forge.org/docs/maintainer/knowledge_base.html#libgl - - python + # - python # - sip - # - pyqt + # - pyqt # - pyqt-builder host: - python - pip - # - sip - # - pyqt-builder + - sip + - pyqt + - pyqt5-sip + - pyqt-builder=1.18 - packaging - qt-main - libqglviewer diff --git a/pyproject.toml b/pyproject.toml index 636b8ea..3cd769b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,6 +16,7 @@ authors = [ { name = "Frederic Boudon", email = "frederic.boudon@cirad.fr" } ] dependencies = [ + "sip", "PyQt5", "PyQt5-sip" ] From a8b8470845f5462272bebed2e9cdd0506c84463c Mon Sep 17 00:00:00 2001 From: AurelienBesnier Date: Wed, 28 Oct 2026 15:54:30 +0100 Subject: [PATCH 13/18] trying with sip-install --- conda/meta.yaml | 11 ++++++----- pyproject.toml | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/conda/meta.yaml b/conda/meta.yaml index bbd525d..f924f9a 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -20,17 +20,18 @@ build: script_env: - SETUPTOOLS_SCM_PRETEND_VERSION script: - - {{ PYTHON }} -m pip install . -v --no-build-isolation --no-deps --ignore-installed + - sip-install --verbose + # - {{ PYTHON }} -m pip install . -v --no-build-isolation --no-deps --ignore-installed requirements: build: - {{ compiler('c') }} - {{ compiler('cxx') }} - {{ stdlib('c') }} - - make # [unix] - - pkg-config # [unix] - - libgl-devel # [linux] # match libqglviewer CDT GL strategy - # from https://conda-forge.org/docs/maintainer/knowledge_base.html#libgl + # - make # [unix] + # - pkg-config # [unix] + # - libgl-devel # [linux] # match libqglviewer CDT GL strategy + # # from https://conda-forge.org/docs/maintainer/knowledge_base.html#libgl # - python # - sip # - pyqt diff --git a/pyproject.toml b/pyproject.toml index 3cd769b..bd949fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,8 +28,8 @@ sip-files-dir = "sip" [tool.sip.bindings.PyQGLViewer] qmake-QT = ['xml', 'opengl', 'gui', 'widgets'] tags = ['QGLViewer_2_9_1'] -include-dirs=['${CONDA_PREFIX}/include'] -library-dirs=['${CONDA_PREFIX}/lib'] +# include-dirs=['${CONDA_PREFIX}/include'] +# library-dirs=['${CONDA_PREFIX}/lib'] # Could specified directly with new construct but currently only working on MacOS. Instead options set in project.py # libraries = ['QGLViewer ; system_platform == "Linux"','GLU ; system_platform == "Linux"'] \ No newline at end of file From dbc82e78f7ffa13ed7e447502d279db0c512cf59 Mon Sep 17 00:00:00 2001 From: AurelienBesnier Date: Wed, 28 Oct 2026 16:16:16 +0100 Subject: [PATCH 14/18] pinning pyqt + pthread remove --- conda/meta.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conda/meta.yaml b/conda/meta.yaml index f924f9a..bccfa2e 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -48,13 +48,13 @@ requirements: - libqglviewer - libgl-devel # [linux] - libxcb # [linux] - - pthread-stubs # [linux] + # - pthread-stubs # [linux] - xorg-libxfixes # [linux] run: - python - - pyqt + - {{ pin_compatible('pyqt', max_pin='x.x') }} - libqglviewer - pyopengl - xorg-libxfixes # [linux] From 86b0ae3bf3d53d74ee935697a93df5ce0c1def2b Mon Sep 17 00:00:00 2001 From: AurelienBesnier Date: Wed, 28 Oct 2026 16:30:34 +0100 Subject: [PATCH 15/18] Using sysroot linux for libc --- conda/meta.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/conda/meta.yaml b/conda/meta.yaml index bccfa2e..d8e66ba 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -27,7 +27,7 @@ requirements: build: - {{ compiler('c') }} - {{ compiler('cxx') }} - - {{ stdlib('c') }} + - {{ stdlib('c') }} # [osx and win] # - make # [unix] # - pkg-config # [unix] # - libgl-devel # [linux] # match libqglviewer CDT GL strategy @@ -48,7 +48,8 @@ requirements: - libqglviewer - libgl-devel # [linux] - libxcb # [linux] - # - pthread-stubs # [linux] + - pthread-stubs # [linux] + - sysroot_linux-64 # [linux] - xorg-libxfixes # [linux] From eccc6a7ba6a7c2289176a82f4dbbf6dafa01c79b Mon Sep 17 00:00:00 2001 From: AurelienBesnier Date: Wed, 28 Oct 2026 16:56:45 +0100 Subject: [PATCH 16/18] Using build scripts for debug --- conda/{bld.bat.bak => bld.bat} | 0 conda/{build.sh.bak => build.sh} | 2 +- conda/meta.yaml | 9 ++++----- 3 files changed, 5 insertions(+), 6 deletions(-) rename conda/{bld.bat.bak => bld.bat} (100%) rename conda/{build.sh.bak => build.sh} (96%) diff --git a/conda/bld.bat.bak b/conda/bld.bat similarity index 100% rename from conda/bld.bat.bak rename to conda/bld.bat diff --git a/conda/build.sh.bak b/conda/build.sh similarity index 96% rename from conda/build.sh.bak rename to conda/build.sh index 39c3eef..c8049c8 100644 --- a/conda/build.sh.bak +++ b/conda/build.sh @@ -43,7 +43,7 @@ readlink -f "$GXX" || true "$GXX" -v -E -x c++ /dev/null echo "**** BUILD" -${PYTHON} -m pip install . -v --no-build-isolation --no-deps +sip-install --verbose echo echo "****** CHECK PYTHON LIB" diff --git a/conda/meta.yaml b/conda/meta.yaml index d8e66ba..d8b47ac 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -19,17 +19,16 @@ build: string: py{{ PY_VER }} script_env: - SETUPTOOLS_SCM_PRETEND_VERSION - script: - - sip-install --verbose + # script: + # - sip-install --verbose # - {{ PYTHON }} -m pip install . -v --no-build-isolation --no-deps --ignore-installed requirements: build: - - {{ compiler('c') }} - {{ compiler('cxx') }} - {{ stdlib('c') }} # [osx and win] - # - make # [unix] - # - pkg-config # [unix] + - make # [unix] + - pkg-config # [unix] # - libgl-devel # [linux] # match libqglviewer CDT GL strategy # # from https://conda-forge.org/docs/maintainer/knowledge_base.html#libgl # - python From 286ec1365041846953c3dbb42bcb5ec7ef3dd22b Mon Sep 17 00:00:00 2001 From: AurelienBesnier Date: Wed, 28 Oct 2026 17:12:19 +0100 Subject: [PATCH 17/18] Just do sip install for Darwin --- conda/build.sh | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/conda/build.sh b/conda/build.sh index c8049c8..a277df2 100644 --- a/conda/build.sh +++ b/conda/build.sh @@ -22,25 +22,25 @@ if [ "$(uname)" == "Linux" ]; then export CFLAGS="$SYSROOT_FLAGS $CFLAGS" export CXXFLAGS="$SYSROOT_FLAGS $CXXFLAGS" export LDFLAGS="$SYSROOT_FLAGS $LDFLAGS" -fi -echo "CC=${CC}" -echo "CXX=${CXX}" -echo "GCC=${GCC}" -echo "GXX=${GXX}" + echo "CC=${CC}" + echo "CXX=${CXX}" + echo "GCC=${GCC}" + echo "GXX=${GXX}" -which gcc -which g++ + which gcc + which g++ -readlink -f "$(which gcc)" || true -readlink -f "$(which g++)" || true -readlink -f "$GCC" || true -readlink -f "$GXX" || true + readlink -f "$(which gcc)" || true + readlink -f "$(which g++)" || true + readlink -f "$GCC" || true + readlink -f "$GXX" || true -"${CC}" --version -"${CXX}" --version + "${CC}" --version + "${CXX}" --version -"$GXX" -v -E -x c++ /dev/null + "$GXX" -v -E -x c++ /dev/null +fi echo "**** BUILD" sip-install --verbose @@ -50,9 +50,9 @@ echo "****** CHECK PYTHON LIB" # To check if Python lib is not in the dependencies with conda-forge distribution. # See https://github.com/conda-forge/boost-feedstock/issues/81 -if [ $(uname) = "Darwin" ]; then - otool -L $(${PYTHON} -c "import PyQGLViewer as pyqgl ; print(pyqgl.__file__)") -fi +# if [ $(uname) = "Darwin" ]; then +# otool -L $(${PYTHON} -c "import PyQGLViewer as pyqgl ; print(pyqgl.__file__)") +# fi if [ "$(uname)" == "Linux" ]; then ldd $(${PYTHON} -c "import PyQGLViewer as pyqgl ; print(pyqgl.__file__)") From 04c5c26e688aef786adbc21ec0695d4806e35c21 Mon Sep 17 00:00:00 2001 From: AurelienBesnier Date: Wed, 28 Oct 2026 21:31:23 +0100 Subject: [PATCH 18/18] Setting sip version for mac latest --- conda/meta.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/conda/meta.yaml b/conda/meta.yaml index d8b47ac..1356943 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -38,7 +38,7 @@ requirements: host: - python - pip - - sip + - sip=6.10 - pyqt - pyqt5-sip - pyqt-builder=1.18 @@ -54,7 +54,8 @@ requirements: run: - python - - {{ pin_compatible('pyqt', max_pin='x.x') }} + - sip=6.10 + - pyqt - libqglviewer - pyopengl - xorg-libxfixes # [linux]