variants for Python 2.7.16-1 and 3.7.3 added, fixes in build-script
This commit is contained in:
@@ -1,13 +1,20 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
pbuild::set_download_url "https://www.python.org/ftp/python/${V_PKG}/$P-${V_PKG}.tgz"
|
||||
|
||||
pbuild::set_sha256sum 'Python-3.7.3.tgz:d62e3015f2f89c970ac52343976b406694931742fbde2fed8d1ce8ebb4e1f8ff'
|
||||
|
||||
pbuild::add_to_group 'Programming'
|
||||
|
||||
pbuild::pre_configure() {
|
||||
if (( V_MAJOR == 2 )); then
|
||||
pbuild::add_configure_args "LDFLAGS=-L${OPENSSL_LIBRARY_DIR}"
|
||||
pbuild::add_configure_args "CPPFLAGS=-fPIC -I${OPENSSL_INCLUDE_DIR} -I${OPENSSL_INCLUDE_DIR}/openssl"
|
||||
pbuild::add_configure_args "--enable-shared"
|
||||
}
|
||||
else
|
||||
pbuild::add_configure_args "--enable-shared"
|
||||
pbuild::add_configure_args "--with-openssl=${OPENSSL_DIR}"
|
||||
pbuild::add_configure_args "--enable-optimizations"
|
||||
fi
|
||||
|
||||
pbuild::post_install() {
|
||||
export LD_LIBRARY_PATH+=":${PREFIX}/lib"
|
||||
@@ -20,14 +27,24 @@ pbuild::post_install() {
|
||||
PATH+=":${PREFIX}/bin"
|
||||
cd "${BUILDBLOCK_DIR}"
|
||||
"${PREFIX}/bin/python" 'get-pip.py'
|
||||
|
||||
std::info "Building numpy\n"
|
||||
pip${V_MAJOR} install numpy
|
||||
|
||||
std::info "Building scipy\n"
|
||||
pip${V_MAJOR} install scipy
|
||||
|
||||
std::info "Building matplotlub\n"
|
||||
pip${V_MAJOR} install matplotlib
|
||||
|
||||
std::info "Building ipython\n"
|
||||
pip${V_MAJOR} install ipython
|
||||
#pip${V_MAJOR} install pandas
|
||||
|
||||
std::info "Building sympy\n"
|
||||
pip${V_MAJOR} install sympy
|
||||
|
||||
std::info "Building nose\n"
|
||||
pip${V_MAJOR} install nose
|
||||
#pip${V_MAJOR} install mpi4py
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -2,5 +2,6 @@ Python/2.7.11 stable openssl/1.0.2j Tcl/8.6.4 Tk/8.6.4
|
||||
Python/2.7.12 stable openssl/1.0.2j Tcl/8.6.4 Tk/8.6.4
|
||||
Python/2.7.14 stable openssl/1.0.2o Tcl/8.6.4 Tk/8.6.4
|
||||
Python/2.7.16 stable openssl/1.0.2r Tcl/8.6.9 Tk/8.6.9
|
||||
Python/3.6.3 stable openssl/1.0.2m Tcl/8.6.4 Tk/8.6.4
|
||||
Python/3.7.3 unstable openssl/1.0.2r Tcl/8.6.9 Tk/8.6.9
|
||||
Python/2.7.16-1 unstable openssl/1.0.2r TclTk/8.6.9 b:xz/5.2.4
|
||||
Python/3.6.3 stable openssl/1.0.2m Tcl/8.6.4 Tk/8.6.4
|
||||
Python/3.7.3 unstable openssl/1.0.2r TclTk/8.6.9 b:xz/5.2.4
|
||||
|
||||
Reference in New Issue
Block a user