Programming/Python: added
This commit is contained in:
1
Programming/Python/2/variants
Normal file
1
Programming/Python/2/variants
Normal file
@@ -0,0 +1 @@
|
||||
2.7.11 Linux,Darwin unstable openssl/1.0.2h Tcl/8.6.4 Tk/8.6.4
|
||||
@@ -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
|
||||
|
||||
|
||||
19154
Programming/Python/get-pip.py
Normal file
19154
Programming/Python/get-pip.py
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user