Skip to content

Commit

Permalink
Add setuptools to actions python setup
Browse files Browse the repository at this point in the history
  • Loading branch information
GarrettDMorrison committed Dec 7, 2023
1 parent c7f329a commit 26dd2e9
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/workflows/debug-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
run: |
python -m pip install cython
python -m pip install oldest-supported-numpy
python -m pip install setuptools
- name: Install OpenMP
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/debug-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
run: |
python -m pip install cython
python -m pip install oldest-supported-numpy
python -m pip install setuptools
- name: Install OpenMP
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
run: |
python -m pip install cython
python -m pip install oldest-supported-numpy
python -m pip install setuptools
- name: Setup OpenMP (Linux)
if: ${{matrix.os == 'ubuntu-latest' && matrix.cxx_compiler == 'clang++'}}
Expand Down
2 changes: 0 additions & 2 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
cmake_policy(SET CMP0148 OLD)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_LIST_DIR}/scikit-build-cmake)
include(UseCython)
include(FindPythonExtensions)
Expand Down
2 changes: 0 additions & 2 deletions python/scikit-build-cmake/FindCython.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
# Use the Cython executable that lives next to the Python executable
# if it is a local installation.

cmake_policy(SET CMP0148 OLD)

find_package(PythonInterp)
if(PYTHONINTERP_FOUND)
execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "from os import path; import cython; print(path.dirname(cython.__file__))"
Expand Down
2 changes: 0 additions & 2 deletions python/scikit-build-cmake/FindNumPy.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
# ``NumPy_INCLUDE_DIR``
#

cmake_policy(SET CMP0148 OLD)

if(NOT NumPy_FOUND)
set(_find_extra_args)
if(NumPy_FIND_REQUIRED)
Expand Down
2 changes: 0 additions & 2 deletions python/scikit-build-cmake/FindPythonExtensions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,6 @@
# limitations under the License.
#=============================================================================

cmake_policy(SET CMP0148 OLD)

find_package(PythonInterp REQUIRED)
find_package(PythonLibs)
include(targetLinkLibrariesWithDynamicLookup)
Expand Down
2 changes: 0 additions & 2 deletions python/scikit-build-cmake/UseCython.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@
# limitations under the License.
#=============================================================================

cmake_policy(SET CMP0148 OLD)

# Configuration options.
set(CYTHON_ANNOTATE OFF
CACHE BOOL "Create an annotated .html file when compiling *.pyx.")
Expand Down
1 change: 0 additions & 1 deletion tests/python/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
cmake_policy(SET CMP0148 OLD)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/python/scikit-build-cmake)

find_package(PythonInterp REQUIRED)
Expand Down

0 comments on commit 26dd2e9

Please sign in to comment.