Skip to content

Commit

Permalink
Test where code is executed, by exception
Browse files Browse the repository at this point in the history
  • Loading branch information
achaikou committed Jul 30, 2024
1 parent 5997705 commit 859fa60
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
workflow_dispatch:

jobs:
build_core:
build_python:
runs-on: ${{ matrix.os }}

strategy:
Expand Down
7 changes: 7 additions & 0 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
if (SKBUILD)
message(STATUS "in skbuild CMakeLists.txt")
# TODO: check when this path is called
# invoked as a part of scikit-build, so this is just a proxy for the python
# extension cmake. this works around the fundamental limitation in cmake
Expand All @@ -8,13 +9,17 @@ if (SKBUILD)
return ()
endif ()

message(STATUS "in main CMakeLists.txt")

cmake_minimum_required(VERSION 3.5.0)
project(dlisio-python)

if(NOT BUILD_PYTHON)
return()
endif()

message(STATUS "Info from main after python on CMakeLists.txt")

find_package(PythonInterp REQUIRED)

if(NOT PYTHON_EXECUTABLE)
Expand Down Expand Up @@ -143,3 +148,5 @@ add_test(NAME python.unit
COMMAND ${python} -m pytest tests
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

message(STATUS "Made it to the end of CMakeLists.txt")
2 changes: 2 additions & 0 deletions python/setup-CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 3.5.0)
project(dlisio-python-extension LANGUAGES C CXX)

message(FATAL_ERROR "Exception from setup-CMakeLists.txt")

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_VISIBILITY_PRESET "hidden")
set(CMAKE_C_VISIBILITY_PRESET "hidden")
Expand Down

0 comments on commit 859fa60

Please sign in to comment.