refactor python module wheel building and installation to be less prone to race conditions

This commit is contained in:
Axel Kohlmeyer
2023-03-24 17:43:52 -04:00
parent bd59c3ea69
commit ab48b834f7
4 changed files with 55 additions and 52 deletions

View File

@ -842,7 +842,7 @@ if(BUILD_SHARED_LIBS)
if(Python_EXECUTABLE)
add_custom_target(
install-python ${Python_EXECUTABLE} ${LAMMPS_PYTHON_DIR}/install.py -p ${LAMMPS_PYTHON_DIR}/lammps
-l ${LIBLAMMPS_SHARED_BINARY} -w ${MY_BUILD_DIR}
-l ${LIBLAMMPS_SHARED_BINARY} -w ${MY_BUILD_DIR} -v ${LAMMPS_SOURCE_DIR}/version.h
COMMENT "Installing LAMMPS Python module")
else()
add_custom_target(