File tree Expand file tree Collapse file tree 5 files changed +23
-22
lines changed
Expand file tree Collapse file tree 5 files changed +23
-22
lines changed Original file line number Diff line number Diff line change @@ -98,5 +98,7 @@ pybind11_add_module(filter
9898install (TARGETS filter DESTINATION osmium)
9999target_link_libraries (filter PRIVATE ${OSMIUM_LIBRARIES} )
100100
101+ configure_file (cmake/version .py.tmpl version .py)
102+ install (FILES ${PROJECT_BINARY_DIR} /version .py DESTINATION osmium)
101103
102104endif ()
Original file line number Diff line number Diff line change @@ -281,6 +281,7 @@ find_package_handle_standard_args(Osmium
281281 REQUIRED_VARS OSMIUM_INCLUDE_DIR ${OSMIUM_EXTRA_FIND_VARS}
282282 VERSION_VAR _libosmium_version)
283283unset (OSMIUM_EXTRA_FIND_VARS)
284+ set (OSMIUM_VERSION ${_libosmium_version} )
284285
285286#----------------------------------------------------------------------
286287#
Original file line number Diff line number Diff line change @@ -58,6 +58,6 @@ include(FindPackageHandleStandardArgs)
5858find_package_handle_standard_args(Protozero
5959 REQUIRED_VARS PROTOZERO_INCLUDE_DIR
6060 VERSION_VAR _version)
61-
61+ SET (PROTOZERO_VERSION ${_version} )
6262
6363#----------------------------------------------------------------------
Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: BSD-2-Clause
2+ #
3+ # This file is part of pyosmium. (https://osmcode.org/pyosmium/)
4+ #
5+ # Copyright (C) 2025 Sarah Hoffmann <
[email protected] > and others.
6+ # For a full list of authors see the git log.
7+ """
8+ Version information.
9+ """
10+
11+ # current release (Pip version)
12+ pyosmium_release = '@SKBUILD_PROJECT_VERSION@'
13+
14+ # libosmium version used to compile this package
15+ libosmium_version = '@OSMIUM_VERSION@'
16+ # protozero version used to compile this package
17+ protozero_version = '@PROTOZERO_VERSION@'
18+ # pybind11 version shipped used to compile this package
19+ pybind11_version = '@pybind11_VERSION@'
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments