Programming/Python: added
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
declare -x LDFLAGS="-L${OPENSSL_LIBRARY_DIR}"
|
||||
declare -x CPPFLAGS="-I${OPENSSL_INCLUDE_DIR} -I${OPENSSL_INCLUDE_DIR}/openssl"
|
||||
|
||||
pbuild::configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
@@ -10,10 +13,19 @@ pbuild::post_install() {
|
||||
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 "${BUILD_BLOCK_DIR}"
|
||||
"${PREFIX}/bin/python" 'get-pip.py'
|
||||
pip install numpy
|
||||
pip install scipy
|
||||
pip install matplotlib
|
||||
pip install ipython
|
||||
pip install pandas
|
||||
pip install sympy
|
||||
pip install nose
|
||||
}
|
||||
|
||||
pbuild::add_to_group 'Programming'
|
||||
pbuild::set_runtime_dependencies ""
|
||||
pbuild::set_build_dependencies "${COMPILER}"
|
||||
pbuild::make_all
|
||||
|
||||
|
||||
Reference in New Issue
Block a user