mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-06-04 18:38:42 +02:00
Merge branch 'main' into dev/pixel-hist
This commit is contained in:
@@ -62,6 +62,8 @@ foreach(FILE ${PYTHON_EXAMPLES})
|
||||
message(STATUS "Copying ${FILE} to ${CMAKE_BINARY_DIR}/${FILE}")
|
||||
endforeach(FILE ${PYTHON_EXAMPLES})
|
||||
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../VERSION
|
||||
${CMAKE_BINARY_DIR}/aare/VERSION)
|
||||
if(AARE_INSTALL_PYTHONEXT)
|
||||
install(
|
||||
TARGETS _aare
|
||||
@@ -72,4 +74,8 @@ if(AARE_INSTALL_PYTHONEXT)
|
||||
FILES ${PYTHON_FILES}
|
||||
DESTINATION aare
|
||||
COMPONENT python)
|
||||
install(
|
||||
FILES ../VERSION
|
||||
DESTINATION aare
|
||||
COMPONENT python)
|
||||
endif()
|
||||
|
||||
@@ -5,4 +5,4 @@ from pathlib import Path
|
||||
try:
|
||||
__version__ = version('aare')
|
||||
except PackageNotFoundError:
|
||||
__version__ = Path(__file__).parents[2].joinpath('VERSION').read_text().strip()
|
||||
__version__ = Path(__file__).parent.joinpath('VERSION').read_text().strip()
|
||||
Reference in New Issue
Block a user