Commit 86cf0313 authored by eric pellegrini's avatar eric pellegrini Committed by Remi Perenon

refactored the debian build scrip with ILL versions of ScientificPython and MMTK

parent c483a368
......@@ -10,6 +10,25 @@ export DISTRO=$2
## Add some colors
BLEU="\\033[1;34m"
# build ILL version of ScientificPython
cd /tmp
git clone https://code.ill.fr/scientific-software/scientific-python.git
git checkout master
cd scientific-python
python setup.py build
declare -x PYTHONPATH=/tmp/scientific-python/build/lib.linux-x86_64-2.7/:${PYTHONPATH}
# build ILL version of ScientificPython
cd /tmp
git clone https://code.ill.fr/scientific-software/mmtk.git
git checkout master
cd mmtk
python setup.py build
declare -x PYTHONPATH=/tmp/mmtk/build/lib.linux-x86_64-2.7/:${PYTHONPATH}
cd
cd $CI_PROJECT_DIR
......
......@@ -60,10 +60,13 @@ dos2unix ${DEBIAN_BIN_DIR}/mdanse_*
# Build the usr/local/lib/python2.7/dist-packages directory inside the debian root directory and copy the MDANSE package inside
DEBIAN_DIST_DIR=${DEBIAN_ROOT_DIR}/usr/local/lib/python2.7/dist-packages
mkdir -p ${DEBIAN_DIST_DIR}
# Copy the localy installed ScientificPython and MMTK
cp -r /tmp/scientific-python/build/lib.linux-x86_64-2.7/Scientific ${DEBIAN_DIST_DIR}
cp -r /tmp/mmtk/build/lib.linux-x86_64-2.7/MMTK ${DEBIAN_DIST_DIR}
# Copy the localy installed MDANSE
cp -r build/lib.linux-x86_64-2.7/MDANSE ${DEBIAN_DIST_DIR}
# also copy the localy installed ScientificPython and MMTK
cp -r /usr/local/lib/python2.7/dist-packages/Scientific* ${DEBIAN_DIST_DIR}
cp -r /usr/local/lib/python2.7/dist-packages/MMTK* ${DEBIAN_DIST_DIR}
# Compute the Installed-Size field for the debian package
instSize=$(du ${DEBIAN_ROOT_DIR} -b -s | cut -f1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment