Commit c215a3bb authored by gsell's avatar gsell

Merge branch '88-fixes-in-python-build-script' into 'master'

Resolve "fixes in Python build-script"

Closes #88

See merge request Pmodules/buildblocks!111
parents 8249d106 b5e65bc1
......@@ -48,16 +48,19 @@ pbuild::post_install_Linux() {
}
pbuild::post_install() {
export LD_LIBRARY_PATH+=":${PREFIX}/lib"
export LDFLAGS="-L${OPENSSL_LIBRARY_DIR}"
export PATH="${PREFIX}/bin:${PATH}"
export LD_LIBRARY_PATH="${PREFIX}/lib:${LD_LIBRARY_PATH}"
export CFLAGS="-I${OPENSSL_INCLUDE_DIR} -I${OPENSSL_INCLUDE_DIR}/openssl"
export CPPFLAGS="-I${OPENSSL_INCLUDE_DIR} -I${OPENSSL_INCLUDE_DIR}/openssl"
export LD_LIBRARY_PATH+=":${PREFIX}/lib"
export LDFLAGS="-L${OPENSSL_LIBRARY_DIR}"
ln -fs "${PREFIX}/bin/python${V%%.*}" "${PREFIX}/bin/python"
ln -fs "${PREFIX}/include/python${V%.*}m" "${PREFIX}/include/python"
ln -fs "${PREFIX}/include/python${V%.*}m" "${PREFIX}/include/python${V%.*}"
PATH+=":${PREFIX}/bin"
cd "${BUILDBLOCK_DIR}"
"${PREFIX}/bin/python" 'get-pip.py'
if (( V_MAJOR == 2 || (V_MAJOR == 3 && V_MINOR <= 7) )); then
cd "${BUILDBLOCK_DIR}"
"${PREFIX}/bin/python" 'get-pip.py'
fi
std::info "Building numpy\n"
pip${V_MAJOR} install numpy
......
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