Fix version (#319)
Build on RHEL9 / build (push) Successful in 2m34s
Build on RHEL8 / build (push) Successful in 3m2s
Run tests using data on local RHEL8 / build (push) Successful in 3m45s
Build on local RHEL8 / build (push) Successful in 2m38s

- install VERSION file and copy to build
- fix lookup for VERSION file in case of error
- update documentation for installing python bindings
This commit is contained in:
2026-06-03 12:10:58 +02:00
committed by GitHub
parent 282debcc94
commit 8e69b498e5
3 changed files with 11 additions and 2 deletions
+4 -1
View File
@@ -6,7 +6,10 @@
cd build
#configure using cmake
cmake ../aare -DCMAKE_INSTALL_PREFIX=/where/to/put/aare
cmake ../aare -DCMAKE_INSTALL_PREFIX=/where/to/put/aare
#install python bindings
#cmake .. -DCMAKE_INSTALL_PREFIX=/where/to/put/aare -DAARE_INSTALL_PYTHONEXT=ON -DAARE_PYTHON_BINDINGS=ON
#build (replace 4 with the number of threads you want to use)
make -j4
+6
View File
@@ -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()
+1 -1
View File
@@ -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()