diff --git a/External/PyModules/CMakeLists.txt b/External/PyModules/CMakeLists.txt
index 7d5d87cffa575c192767a7bfd6ed7cac5d8ecb2f..1b532fd8c94634785abaed3f368d1f03f0dd3dc4 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} )