Skip to content

Commit

Permalink
add debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
looooo committed Nov 26, 2023
1 parent d181eac commit cefb1ed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions packaging/conda/bld.bat
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
mkdir build
cd build

echo Checking Python version...
if %PY_VER% LSS 312 (
set USE_QT6=OFF
echo Python version is less than 312. Using Qt6: %USE_QT6%
) else (
set USE_QT6=ON
echo Python version is greater than or equal to 312. Using Qt6: %USE_QT6%
)

cmake -G "Ninja" ^
Expand Down
12 changes: 7 additions & 5 deletions packaging/conda/build.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
mkdir -p build
cd build

if [[ ${HOST} =~ .*linux.* && $PY_VER -lt 312 ]]; then
if [[ ${HOST} =~ .*linux.* && ${PY_VER} -lt 312 ]]; then
sed -i 's|_qt5gui_find_extra_libs(EGL.*)|_qt5gui_find_extra_libs(EGL "EGL" "" "")|g' $PREFIX/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake
sed -i 's|_qt5gui_find_extra_libs(OPENGL.*)|_qt5gui_find_extra_libs(OPENGL "GL" "" "")|g' $PREFIX/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake
fi

# Check if PY_VER is less than 312 to determine whether to use Qt6
if [[ $PY_VER -lt 312 ]]; then
USE_QT6=OFF
echo "Checking Python version..."
if [[ ${PY_VER} -lt 312 ]]; then
USE_QT6=OFF
echo "Python version is less than 312. Using Qt6: $USE_QT6"
else
USE_QT6=ON
USE_QT6=ON
echo "Python version is greater than or equal to 312. Using Qt6: $USE_QT6"
fi

PIVY_CPP_FLAGS='-std=c++1z '
Expand Down

0 comments on commit cefb1ed

Please sign in to comment.