mirror of
https://github.com/triqs/dft_tools
synced 2024-12-26 22:33:48 +01:00
Fix installation of python sources in CMakeLists
This commit is contained in:
parent
ca16e77d22
commit
1158e2cacc
@ -1,25 +1,20 @@
|
|||||||
# where will the python end up in triqs?
|
# where will the python end up in triqs?
|
||||||
set(python_destination pytriqs/applications/dft)
|
set(PYTHON_LIB_DEST ${CPP2PY_PYTHON_LIB_DEST_ROOT}/triqs_dft_tools)
|
||||||
set(PYTHON_LIB_DEST ${CPP2PY_PYTHON_LIB_DEST_ROOT}/pytriqs/cthyb)
|
|
||||||
|
|
||||||
# site_customize for build
|
# site_customize for build
|
||||||
set(package_name "pytriqs.applications")
|
set(package_name "triqs_dft_tools")
|
||||||
|
|
||||||
# Create a temporary copy of the python modules so that we can run before installation with the test
|
# Create a temporary copy of the python modules so that we can run before installation with the test
|
||||||
FILE(GLOB_RECURSE all_py_files RELATIVE ${CMAKE_SOURCE_DIR}/python *.py )
|
FILE(GLOB_RECURSE PYTHON_SOURCES RELATIVE ${CMAKE_SOURCE_DIR}/python *.py )
|
||||||
foreach(f ${all_py_files})
|
foreach(f ${PYTHON_SOURCES})
|
||||||
configure_file(${f} ${f} COPYONLY)
|
configure_file(${f} ${f} COPYONLY)
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
#configure_file(${CMAKE_SOURCE_DIR}/cmake/sitecustomize.py ${CMAKE_CURRENT_BINARY_DIR}/sitecustomize.py @ONLY)
|
|
||||||
|
|
||||||
# VASP converter
|
# VASP converter
|
||||||
add_subdirectory(converters/plovasp)
|
add_subdirectory(converters/plovasp)
|
||||||
|
|
||||||
# add version file
|
# add version file
|
||||||
configure_file(version.py.in version.py @ONLY)
|
configure_file(version.py.in version.py @ONLY)
|
||||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/version.py DESTINATION ${PYTHON_LIB_DEST})
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# install files
|
||||||
|
install(FILES ${PYTHON_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/version.py DESTINATION ${PYTHON_LIB_DEST})
|
||||||
|
Loading…
Reference in New Issue
Block a user