X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=products%2Fcompil_scripts%2FPython.sh;h=daa72fab7cc6073b948f71ec5fa7842dcf16f3a2;hb=134891346c17c925c878feba35c946023b45d28c;hp=4285668f2438b1cd5331cb6c03854631d0d9b09c;hpb=dc0399f386c5459d79108bc4d372272c0dd2d36c;p=tools%2Fsat_salome.git diff --git a/products/compil_scripts/Python.sh b/products/compil_scripts/Python.sh index 4285668..daa72fa 100755 --- a/products/compil_scripts/Python.sh +++ b/products/compil_scripts/Python.sh @@ -21,7 +21,13 @@ if version_ge $VERSION "3.6"; then # --without-pymalloc: disable specialized mallocs # --with-ensurepip : installation using bundled pip # --enable-optimizations: recommandé et utilisé par Nijni -> mais trop long! - CONFIGURE_ARGUMENTS="--enable-shared --with-threads --without-pymalloc --with-ensurepip=install --with-ssl --enable-loadable-sqlite-extensions" + # spns #30153 : pymalloc on demand + CONFIGURE_ARGUMENTS="--enable-shared --with-threads --with-ensurepip=install --with-ssl --enable-loadable-sqlite-extensions" + if [ "${SAT_ENABLE_PYTHON_PYMALLOC}" == "1" ]; then + CONFIGURE_ARGUMENTS+=" --with-pymalloc" + else + CONFIGURE_ARGUMENTS+=" --without-pymalloc" + fi else echo "*** Python version is older than version 3.6 ..." CONFIGURE_ARGUMENTS="--enable-shared --with-threads --without-pymalloc --enable-unicode=ucs4" @@ -79,6 +85,13 @@ then cd ${PRODUCT_INSTALL}/bin ln -s python3 python ln -s pip3 pip + # + if [ "${SAT_ENABLE_PYTHON_PYMALLOC}" == "1" ]; then + cd ${PRODUCT_INSTALL}/include + if [ ! -d python3.6 ]; then + ln -s python3.6m python3.6 + fi + fi fi # fix the path...