diff --git a/cmake/AkantuInstall.cmake b/cmake/AkantuInstall.cmake
index febe5259c..958f6405b 100644
--- a/cmake/AkantuInstall.cmake
+++ b/cmake/AkantuInstall.cmake
@@ -1,159 +1,160 @@
 #===============================================================================
 # @file   AkantuInstall.cmake
 #
 # @author Nicolas Richart <nicolas.richart@epfl.ch>
 #
 # @date creation: Wed Oct 17 2012
 # @date last modification: Fri Jan 22 2016
 #
 # @brief  Create the files that allows users to link with Akantu in an other
 # cmake project
 #
 # @section LICENSE
 #
 # Copyright (©)  2010-2012, 2014,  2015 EPFL  (Ecole Polytechnique  Fédérale de
 # Lausanne)  Laboratory (LSMS  -  Laboratoire de  Simulation  en Mécanique  des
 # Solides)
 #
 # Akantu is free  software: you can redistribute it and/or  modify it under the
 # terms  of the  GNU Lesser  General Public  License as  published by  the Free
 # Software Foundation, either version 3 of the License, or (at your option) any
 # later version.
 #
 # Akantu is  distributed in the  hope that it  will be useful, but  WITHOUT ANY
 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 # A  PARTICULAR PURPOSE. See  the GNU  Lesser General  Public License  for more
 # details.
 #
 # You should  have received  a copy  of the GNU  Lesser General  Public License
 # along with Akantu. If not, see <http://www.gnu.org/licenses/>.
 #
 #===============================================================================
 
 #===============================================================================
 # Config gen for external packages
 #===============================================================================
 configure_file(cmake/AkantuBuildTreeSettings.cmake.in
   "${PROJECT_BINARY_DIR}/AkantuBuildTreeSettings.cmake" @ONLY)
 
 file(WRITE "${PROJECT_BINARY_DIR}/AkantuConfigInclude.cmake" "
 #===============================================================================
 # @file   AkantuConfigInclude.cmake
 # @author Nicolas Richart <nicolas.richart@epfl.ch>
 # @date   Fri Jun 11 09:46:59 2010
 #
 # @section LICENSE
 #
 # Copyright (©) 2010-2011 EPFL (Ecole Polytechnique Fédérale de Lausanne)
 # Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
 #
 # Akantu is free  software: you can redistribute it and/or  modify it under the
 # terms  of the  GNU Lesser  General Public  License as  published by  the Free
 # Software Foundation, either version 3 of the License, or (at your option) any
 # later version.
 #
 # Akantu is  distributed in the  hope that it  will be useful, but  WITHOUT ANY
 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 # A  PARTICULAR PURPOSE. See  the GNU  Lesser General  Public License  for more
 # details.
 #
 # You should  have received  a copy  of the GNU  Lesser General  Public License
 # along with Akantu. If not, see <http://www.gnu.org/licenses/>.
 #
 # @section DESCRIPTION
 #
 #===============================================================================
 
 ")
 
 package_get_all_packages(_package_list)
 
 foreach(_pkg_name ${_package_list})
   #  package_pkg_name(${_option} _pkg_name)
   _package_is_activated(${_pkg_name} _acctivated)
   _package_get_real_name(${_pkg_name} _real_name)
 
   string(TOUPPER ${_real_name} _real_pkg_name)
 
   file(APPEND "${PROJECT_BINARY_DIR}/AkantuConfigInclude.cmake" "
 set(AKANTU_HAS_${_real_pkg_name} ${_acctivated})")
 
   _package_get_libraries(${_pkg_name} _libs)
   if(_libs)
     file(APPEND "${PROJECT_BINARY_DIR}/AkantuConfigInclude.cmake" "
 set(AKANTU_${_real_pkg_name}_LIBRARIES ${_libs})")
   endif()
 
   _package_get_include_dir(${_pkg_name} _incs)
   if(_incs)
     file(APPEND "${PROJECT_BINARY_DIR}/AkantuConfigInclude.cmake" "
 set(AKANTU_${_real_pkg_name}_INCLUDE_DIR ${_incs})
 ")
   endif()
 
   _package_get_compile_flags(${_pkg_name} CXX _compile_flags)
   if(_compile_flags)
     file(APPEND "${PROJECT_BINARY_DIR}/AkantuConfigInclude.cmake" "
 set(AKANTU_${_real_pkg_name}_COMPILE_CXX_FLAGS ${_compile_flags})
 ")
   endif()
 endforeach()
 
-file(APPEND "${PROJECT_BINARY_DIR}/AkantuConfigInclude.cmake" "
-")
-
 file(APPEND "${PROJECT_BINARY_DIR}/AkantuConfigInclude.cmake" "
 set(AKANTU_EXTRA_CXX_FLAGS \"${AKANTU_EXTRA_CXX_FLAGS}\")
 ")
 
 
 # Create the AkantuConfig.cmake and AkantuConfigVersion files
 get_filename_component(CONF_REL_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}" ABSOLUTE)
 configure_file(cmake/AkantuConfig.cmake.in "${PROJECT_BINARY_DIR}/AkantuConfig.cmake" @ONLY)
 configure_file(cmake/AkantuConfigVersion.cmake.in "${PROJECT_BINARY_DIR}/AkantuConfigVersion.cmake" @ONLY)
 configure_file(cmake/AkantuUse.cmake "${PROJECT_BINARY_DIR}/AkantuUse.cmake" COPYONLY)
 
 configure_file(cmake/akantu_environement.sh.in
   ${PROJECT_BINARY_DIR}/akantu_environement.sh  @ONLY)
 configure_file(cmake/akantu_environement.csh.in
   ${PROJECT_BINARY_DIR}/akantu_environement.csh @ONLY)
 
 
-configure_file(cmake/akantu_install_environement.sh.in
-  ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/akantu_environement.sh  @ONLY)
-configure_file(cmake/akantu_install_environement.csh.in
-  ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/akantu_environement.csh @ONLY)
+package_is_activated(python_interface _is_acticated)
+if(_is_acticated)
+  find_package(PythonInterp ${AKANTU_PREFERRED_PYTHON_VERSION})
+  configure_file(cmake/akantu_install_environement.sh.in
+    ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/akantu_environement.sh  @ONLY)
+  configure_file(cmake/akantu_install_environement.csh.in
+    ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/akantu_environement.csh @ONLY)
+endif()
 
 install(FILES
   ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/akantu_environement.sh
   ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/akantu_environement.csh
   DESTINATION share/akantu${AKANTU_VERSION})
 
 include(CMakePackageConfigHelpers)
 
 configure_package_config_file(cmake/AkantuConfig.cmake.in
   "${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
   INSTALL_DESTINATION share/cmake/${PROJECT_NAME}
   )
 
 write_basic_package_version_file(${PROJECT_BINARY_DIR}/AkantuConfigVersion.cmake
   VERSION ${AKANTU_VERSION}
   COMPATIBILITY SameMajorVersion)
 
 # Install the export set for use with the install-tree
 install(FILES
   ${PROJECT_SOURCE_DIR}/cmake/Modules/FindScaLAPACK.cmake
   ${PROJECT_SOURCE_DIR}/cmake/Modules/FindMETIS.cmake
   ${PROJECT_SOURCE_DIR}/cmake/Modules/FindParMETIS.cmake
   ${PROJECT_SOURCE_DIR}/cmake/Modules/FindPETSc.cmake
   ${PROJECT_SOURCE_DIR}/cmake/Modules/FindMumps.cmake
   ${PROJECT_SOURCE_DIR}/cmake/Modules/FindScotch.cmake
   ${PROJECT_SOURCE_DIR}/cmake/Modules/FindGMSH.cmake
   ${PROJECT_BINARY_DIR}/AkantuConfig.cmake
   ${PROJECT_BINARY_DIR}/AkantuConfigInclude.cmake
   ${PROJECT_BINARY_DIR}/AkantuConfigVersion.cmake
   ${PROJECT_SOURCE_DIR}/cmake/AkantuUse.cmake
   ${PROJECT_SOURCE_DIR}/cmake/AkantuSimulationMacros.cmake
   ${PROJECT_SOURCE_DIR}/cmake/Modules/FindGMSH.cmake
   DESTINATION share/cmake/${PROJECT_NAME}
   COMPONENT dev)