-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
antok: Update INSTALL and add compile script.
Update the INSTALL with some information on pytok. Also add a script to compile the boost::python libraries (taken from rootpwa and slightly modified).
- Loading branch information
Showing
2 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
|
||
BOOST_ROOT_DIR=$(readlink --canonicalize ${BOOST_ROOT}) | ||
LOG_FILE=${BOOST_ROOT_DIR}/compileBoostLibs.log | ||
if [[ -d ${BOOST_ROOT_DIR} ]] | ||
then | ||
echo ">>> compiling Boost.MPI library in '${BOOST_ROOT_DIR}'" | ||
cd ${BOOST_ROOT_DIR} | ||
else | ||
echo "!!! error: '${BOOST_ROOT_DIR}' does not exist" | ||
exit 1 | ||
fi | ||
|
||
|
||
JAM_CONFIG_FILE="${BOOST_ROOT_DIR}/tools/build/v2/user-config.jam" | ||
if [[ ! -e ${JAM_CONFIG_FILE} ]] | ||
then | ||
echo "!!! error: '${JAM_CONFIG_FILE}' does not exist" | ||
exit 1 | ||
fi | ||
LINE='using mpi ;' | ||
if ! grep --quiet --line-regexp "${LINE}" ${JAM_CONFIG_FILE} | ||
then | ||
echo "${LINE}" >> ${JAM_CONFIG_FILE} | ||
fi | ||
|
||
|
||
echo " view result in ${LOG_FILE}" | ||
./bootstrap.sh --with-libraries=python --prefix=. &> ${LOG_FILE} | ||
./bjam >> ${LOG_FILE} 2>&1 | ||
|
||
|
||
exit 0 |