-
Notifications
You must be signed in to change notification settings - Fork 14
/
cpp2py.modulefile.in
34 lines (27 loc) · 1.07 KB
/
cpp2py.modulefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#%Module1.0
#
# To be installed as ${MODULEPATH}/cpp2py/@CPP2PY_VERSION@
set name cpp2py
set version @CPP2PY_VERSION@
set root @CMAKE_INSTALL_PREFIX@
set git_hash @CPP2PY_GIT_HASH@
set url "https://github.com/TRIQS/cpp2py"
set description "Cpp2Py is the Python/C++ interfacing tool of the TRIQS project"
module-whatis "$description"
proc ModulesHelp { } {
global description url version git_hash
puts stderr "Description: $description"
puts stderr "URL: $url"
puts stderr "Version: $version"
puts stderr "Git hash: $git_hash"
}
# Only one version of cpp2py can be loaded at a time
conflict $name
setenv CPP2PY_ROOT $root
setenv CPP2PY_VERSION $version
setenv CPP2PY_GIT_HASH $git_hash
prepend-path PATH $root/bin
prepend-path CPLUS_INCLUDE_PATH $root/include
prepend-path LIBRARY_PATH $root/lib
prepend-path PYTHONPATH $root/@CPP2PY_PYTHON_LIB_DEST_ROOT@
prepend-path CMAKE_PREFIX_PATH $root/lib/cmake/cpp2py