Skip to content

Commit

Permalink
Merge pull request #86: Download pybind11 via CMake instead of shippi…
Browse files Browse the repository at this point in the history
…ng it
  • Loading branch information
volkm authored Sep 14, 2022
2 parents 9647341 + 992974d commit 3671d48
Show file tree
Hide file tree
Showing 238 changed files with 55 additions and 54,997 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ Changelog
Version 1.7.x
-------------

### Version 1.7.x
Requires Storm version >= 1.7.0 and pycarl version >= 2.1.0

- Developer: improved build process
- Developer: updated pybind version to 2.10.0. Check compatibility to pybind version of pycarl.

### Version 1.7.0 (2022/07)
Requires Storm version >= 1.7.0 and pycarl version >= 2.1.0

Expand Down
10 changes: 7 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
cmake_minimum_required(VERSION 3.8.0)
cmake_minimum_required(VERSION 3.14) # Needed for FetchContent_MakeAvailable

project(stormpy)

option(USE_STORM_DFT "Enable support for DFTs" ON)
option(USE_STORM_GSPN "Enable support for GSPNs" ON)
option(USE_STORM_PARS "Enable support for parametric models" ON)
option(USE_STORM_POMDP "Enable support for POMDPs" ON)
option(STORMPY_DISABLE_SIGNATURE_DOC "Disable the signature in the documentation" OFF)

MARK_AS_ADVANCED(STORMPY_DISABLE_SIGNATURE_DOC)
set(PYBIND_VERSION "" CACHE STRING "Pybind11 version to use")
MARK_AS_ADVANCED(PYBIND_VERSION)

find_package(storm REQUIRED)
add_subdirectory(resources/pybind11)

include(resources/include_pybind11.cmake)

include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/macros.cmake)

Expand Down
1 change: 1 addition & 0 deletions cmake/info_config.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
storm_version = "@STORM_VERSION@"
storm_cln_ea = @STORM_USE_CLN_EA_BOOL@
storm_cln_rf = @STORM_USE_CLN_RF_BOOL@
stormpy_pybind_version = "@PYBIND_VERSION@"
2 changes: 1 addition & 1 deletion doc/checklist_new_release.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The following steps should be performed when releasing a new stormpy version.

2. Update used tool versions:
* Update `storm_min_version` in `setup.py`
* Update `install_requires` version of pycarl in `setup.py`
* Update `install_requires`/`setup_requires` version of pycarl in `setup.py`

3. Update the Storm Docker images for Github actions:
* Set `RELEASE_IMG` and `DEBUG_IMG` in `.github/workflows/buildtest.yml`
Expand Down
16 changes: 16 additions & 0 deletions resources/include_pybind11.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
find_package(pybind11 ${PYBIND_VERSION} CONFIG QUIET)
if(pybind11_FOUND)
message(STATUS "Stormpy - Using system version of pybind11 (version ${pybind_VERSION}).")
else()
message(STATUS "Stormpy - Using shipped version of pybind11 (version ${PYBIND_VERSION}).")

include(FetchContent)
FetchContent_Declare(
pybind11
GIT_REPOSITORY https://github.com/pybind/pybind11
GIT_TAG "v${PYBIND_VERSION}"
)

FetchContent_MakeAvailable(pybind11)
endif()

37 changes: 0 additions & 37 deletions resources/pybind11/.appveyor.yml

This file was deleted.

19 changes: 0 additions & 19 deletions resources/pybind11/.clang-format

This file was deleted.

65 changes: 0 additions & 65 deletions resources/pybind11/.clang-tidy

This file was deleted.

73 changes: 0 additions & 73 deletions resources/pybind11/.cmake-format.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions resources/pybind11/.github/CODEOWNERS

This file was deleted.

Loading

0 comments on commit 3671d48

Please sign in to comment.