Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 0 additions & 54 deletions conda/build.sh
Original file line number Diff line number Diff line change
@@ -1,56 +1,2 @@
#!/bin/bash

# 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

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}
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

echo
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)" == "Linux" ]; then
ldd $(${PYTHON} -c "import PyQGLViewer as pyqgl ; print(pyqgl.__file__)")

fi
echo "****** END OF BUILD PROCESS"
1 change: 0 additions & 1 deletion conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ requirements:
- pyqt-builder
- libgl-devel # [linux]
- libxcb # [linux]
- pthread-stubs # [linux]
- xorg-libxfixes # [linux]


Expand Down
7 changes: 2 additions & 5 deletions project.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.


import os
import platform, os

from pyqtbuild import PyQtBindings, PyQtProject

Expand Down Expand Up @@ -68,9 +68,6 @@ def __init__(self, project):
print("Instanciation of the PyQGLViewerBindings ")

def apply_user_defaults(self, tool):
import platform, os


CONDA_PREFIX = os.environ.get('CONDA_PREFIX',None)
PREFIX = os.environ.get('PREFIX',None)
CONDA_BUILD_SYSROOT = os.environ.get('CONDA_BUILD_SYSROOT',None)
Expand All @@ -93,7 +90,7 @@ def apply_user_defaults(self, tool):
self.libraries.append('QGLViewer2')
self.libraries.append('opengl32')
self.libraries.append('glu32')

self.define_macros.append('PYQGLVIEWER_VERSION="'+PYQGLVIEWER_VERSION+'"')

super().apply_user_defaults(tool)
Loading