Skip to content

Commit

Permalink
Added wheel as cmake target
Browse files Browse the repository at this point in the history
  • Loading branch information
jesper-friis committed Dec 13, 2024
1 parent ffe34e1 commit 1d10d6b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,6 @@ jobs:
run: cmake --install .
working-directory: build

- name: Test mappings
env:
DLITE_PYDEBUG: ""
working-directory: build
run: ctest -V -R mappings

- name: Test
env:
DLITE_PYDEBUG: ""
Expand Down
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,13 @@ if(WITH_PYTHON)
# endif()
# message(STATUS "ENV{Python3_LIBRARY}: $ENV{Python3_LIBRARY}")

add_custom_target(wheel
COMMAND ${Python3_EXECUTABLE} -m pip wheel -w dist
${dlite_SOURCE_DIR}/python
DEPENDS ${dlite}
COMMENT "Build Python wheels"
)


message(STATUS "CMAKE_INSTALL_PREFIX = ${CMAKE_INSTALL_PREFIX}")
message(STATUS "Python3_prefix = ${Python3_prefix}")
Expand Down Expand Up @@ -942,6 +949,7 @@ configure_package_config_file(
PATH_VARS ${DLITE_CONFIG_VARS}
)


#################################################################

# Install
Expand Down
2 changes: 2 additions & 0 deletions storages/python/tests-python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ foreach(test ${python-tests})
set_property(TEST ${test} APPEND PROPERTY
ENVIRONMENT "LD_LIBRARY_PATH=${dlite_LD_LIBRARY_PATH_NATIVE}")
endif()
set_property(TEST ${name} APPEND PROPERTY
ENVIRONMENT "DLITE_IMPORTSKIP_EXITCODE=$ENV{DLITE_IMPORTSKIP_EXITCODE}")

# Skip tests that exit with return code 44
set_property(TEST ${test} PROPERTY SKIP_RETURN_CODE 44)
Expand Down

0 comments on commit 1d10d6b

Please sign in to comment.