Skip to content

Commit

Permalink
Updated pyFLTK build.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Apr 13, 2024
1 parent c191cff commit 5a11179
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
22 changes: 9 additions & 13 deletions cmake/Modules/BuildpyFLTK.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,15 @@ set(pyFLTK_BUILD ${pyFLTK_ENV} ${PYTHON_EXECUTABLE} setup.py build --enable-
# Install steps (on Windows, we can just use setup.py install.
# on other platforms we can't, we install a wheel file)
#
if(WIN32)
set(pyFLTK_INSTALL ${pyFLTK_ENV} ${PYTHON_EXECUTABLE} setup.py install --enable-shared)
else()
set(pyFLTK_PIP_INSTALL_WHEEL ${PYTHON_EXECUTABLE} -m pip install wheel )
set(pyFLTK_CREATE_WHEELS ${pyFLTK_ENV} ${PYTHON_EXECUTABLE} setup.py bdist_wheel)
set(pyFLTK_INSTALL_WHEELS ${CMAKE_COMMAND}
-DPYTHON_EXECUTABLE=${PYTHON_EXECUTABLE}
-DWHL_DIRECTORY=${CMAKE_BINARY_DIR}/pyFLTK-prefix/src/pyFLTK/dist
-P "${CMAKE_SOURCE_DIR}/cmake/install_whl_files.cmake" )
set(pyFLTK_INSTALL "${pyFLTK_PIP_INSTALL_WHEEL}"
COMMAND "${pyFLTK_CREATE_WHEELS}"
COMMAND "${pyFLTK_INSTALL_WHEELS}")
endif()
set(pyFLTK_PIP_INSTALL_WHEEL ${PYTHON_EXECUTABLE} -m pip install wheel )
set(pyFLTK_CREATE_WHEELS ${pyFLTK_ENV} ${PYTHON_EXECUTABLE} setup.py bdist_wheel)
set(pyFLTK_INSTALL_WHEELS ${CMAKE_COMMAND}
-DPYTHON_EXECUTABLE=${PYTHON_EXECUTABLE}
-DWHL_DIRECTORY=${CMAKE_BINARY_DIR}/pyFLTK-prefix/src/pyFLTK/dist
-P "${CMAKE_SOURCE_DIR}/cmake/install_whl_files.cmake" )
set(pyFLTK_INSTALL "${pyFLTK_PIP_INSTALL_WHEEL}"
COMMAND "${pyFLTK_CREATE_WHEELS}"
COMMAND "${pyFLTK_INSTALL_WHEELS}")


ExternalProject_Add(
Expand Down
4 changes: 4 additions & 0 deletions etc/build_dir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ if [ -z "$OLD_DYLD_LIBRARY_PATH" ]; then
export OLD_DYLD_LIBRARY_PATH="/usr/local/opt/sqlite/lib:${DYLD_LIBRARY_PATH}"
fi

if [ -z "$OLD_PATH" ]; then
export OLD_PATH="$PATH"
fi

#
# Set environment variables to point to install directory
#
Expand Down
4 changes: 3 additions & 1 deletion runme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# It will also log the compilation on $BUILD_DIR/compile.log
#


#
# Store the parameters for passing them later
#
Expand All @@ -30,10 +31,11 @@ mkdir -p $BUILD_DIR


#
# Clear the flags, as they will be set by runme_nolog.sh.
# Clear the flags, as they will be set again by runme_nolog.sh.
#
export FLAGS=""
export CMAKE_FLAGS=""
export PATH="$OLD_PATH"


echo
Expand Down

0 comments on commit 5a11179

Please sign in to comment.