From 924642ad36003a0559d3052425c7588399958638 Mon Sep 17 00:00:00 2001 From: Frank Winklmeier <frank.winklmeier@cern.ch> Date: Wed, 29 May 2019 12:54:59 +0200 Subject: [PATCH] PyModules: Create target directories explicitly Create target directories explicitly before copying files into them. According to the documentation of `copy_directory` this should not be necessary but our CI jobs say differently. --- External/PyModules/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/External/PyModules/CMakeLists.txt b/External/PyModules/CMakeLists.txt index 7d5d87cf..1b532fd8 100644 --- a/External/PyModules/CMakeLists.txt +++ b/External/PyModules/CMakeLists.txt @@ -47,6 +47,8 @@ function( _setup_python_package name file hash ) ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/atlas_build_run.sh ${PYTHON_EXECUTABLE} <SOURCE_DIR>/setup.py install --prefix=${_buildDir} COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/../scripts/sanitizePythonScripts.sh "${_buildDir}/bin/*" + COMMAND ${CMAKE_COMMAND} -E make_directory <INSTALL_DIR>/${CMAKE_INSTALL_PYTHONDIR} + COMMAND ${CMAKE_COMMAND} -E make_directory <INSTALL_DIR>/${CMAKE_INSTALL_BINDIR} COMMAND ${CMAKE_COMMAND} -E copy_directory ${_sitePkgsDir}/ <INSTALL_DIR>/${CMAKE_INSTALL_PYTHONDIR} COMMAND ${CMAKE_COMMAND} -E copy_directory ${_buildDir}/bin <INSTALL_DIR>/${CMAKE_INSTALL_BINDIR} ) -- GitLab