mirror of
https://github.com/triqs/dft_tools
synced 2024-12-25 22:03:43 +01:00
Further fix of issue with installation of __init__
modified: cmake/TRIQSConfig.cmake.in
This commit is contained in:
parent
3e96228770
commit
b1840d2a32
@ -140,10 +140,10 @@ file(WRITE ${CMAKE_BINARY_DIR}/.python/__init__.py "__all__=[]")
|
|||||||
set(partial_dir ${python_destination})
|
set(partial_dir ${python_destination})
|
||||||
while(partial_dir MATCHES "/")
|
while(partial_dir MATCHES "/")
|
||||||
string(REGEX REPLACE "/[^/]*$" "" partial_dir ${partial_dir})
|
string(REGEX REPLACE "/[^/]*$" "" partial_dir ${partial_dir})
|
||||||
if(NOT EXISTS ${TRIQS_PYTHON_LIB_DEST}/${partial_dir}/__init__.py)
|
if(NOT EXISTS ${TRIQS_PATH}/${TRIQS_PYTHON_LIB_DEST}/${partial_dir}/__init__.py)
|
||||||
execute_process(COMMAND cp ${CMAKE_BINARY_DIR}/.python/__init__.py ${CMAKE_BINARY_DIR}/pytriqs/${partial_dir})
|
execute_process(COMMAND cp ${CMAKE_BINARY_DIR}/.python/__init__.py ${CMAKE_BINARY_DIR}/pytriqs/${partial_dir})
|
||||||
install(FILES ${CMAKE_BINARY_DIR}/.python/__init__.py DESTINATION ${TRIQS_PYTHON_LIB_DEST}/${partial_dir})
|
install(FILES ${CMAKE_BINARY_DIR}/.python/__init__.py DESTINATION ${TRIQS_PYTHON_LIB_DEST}/${partial_dir})
|
||||||
endif(NOT EXISTS ${TRIQS_PYTHON_LIB_DEST}/${partial_dir}/__init__.py)
|
endif(NOT EXISTS ${TRIQS_PATH}/${TRIQS_PYTHON_LIB_DEST}/${partial_dir}/__init__.py)
|
||||||
endwhile(partial_dir MATCHES "/")
|
endwhile(partial_dir MATCHES "/")
|
||||||
|
|
||||||
# Install all other files
|
# Install all other files
|
||||||
|
Loading…
Reference in New Issue
Block a user