diff --git a/.github/workflows/setup_manylinux.sh b/.github/workflows/setup_manylinux.sh index 65034625..5ff14b92 100644 --- a/.github/workflows/setup_manylinux.sh +++ b/.github/workflows/setup_manylinux.sh @@ -1,21 +1,21 @@ #!/bin/bash -echo "Install Rust" +echo -e "\nInstall Rust" echo "========================================" curl https://sh.rustup.rs -sSf | sh -s -- -y source ${HOME}/.cargo/env -echo "Set Rust Version" +echo -e "\nSet Rust Version" echo "========================================" rustup install ${RUST_VERSION} rustup default ${RUST_VERSION} -echo "Check Rust Version" +echo -e "\nCheck Rust Version" echo "========================================" rustc --version cargo --version -echo "Install Newer OpenSSL" +echo -e "\nInstall Newer OpenSSL" echo "========================================" curl -O -L https://www.openssl.org/source/openssl-1.1.1w.tar.gz ls -al openssl-1.1.1w.tar.gz @@ -26,7 +26,7 @@ make make install cd $ROOT_DIR -echo "Save Minor Python Version" +echo -e "\nSave Minor Python Version" echo "========================================" IFS='.' read -r -a SPLIT_VER <<< ${PYTHON_VERSION} PY_M_VER=${SPLIT_VER[0]}.${SPLIT_VER[1]} @@ -34,25 +34,25 @@ echo $PY_M_VER LIBFFI_VER="3.12" if [[ $PY_M_VER == $LIBFFI_VER ]]; then - echo "Install libffi" + echo -e "\nInstall libffi" echo "========================================" yum install libffi-devel -y ldconfig else LOW=$(echo -e "$PY_M_VER\n$LIBFFI_VER" | sort --version-sort | head --lines=1) if [[ $LOW != $PY_M_VER ]]; then - echo "Install libffi" + echo -e "\nInstall libffi" echo "========================================" yum install libffi-devel -y ldconfig fi fi -echo "Install Perl-IPC-cmd" +echo -e "\nInstall Perl-IPC-cmd" echo "========================================" yum install perl-IPC-Cmd -y -echo "Install Python" +echo -e "\nInstall Python" echo "========================================" ls $ROOT_DIR/openssl-1.1.1w curl -O https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz @@ -62,7 +62,7 @@ cd Python-${PYTHON_VERSION} make altinstall if [[ $PYTHON_VERSION == "3.7.17" ]]; then - echo "Copy Python Shared Library (Python 3.7)" + echo -e "\nCopy Python Shared Library (Python 3.7)" echo "========================================" echo $PY_M_VER cd $ROOT_DIR/Python-${PYTHON_VERSION} @@ -70,7 +70,7 @@ if [[ $PYTHON_VERSION == "3.7.17" ]]; then cp libpython${PY_M_VER}\m.so.1.0 /usr/local/lib64/ cd $ROOT_DIR else - echo "Copy Python Shared Library (Python 3.8+)" + echo -e "\nCopy Python Shared Library (Python 3.8+)" echo "========================================" echo $PY_M_VER cd $ROOT_DIR/Python-${PYTHON_VERSION} @@ -79,11 +79,11 @@ else cd $ROOT_DIR fi -echo "Check LD_LIBRARY_PATH" +echo -e "\nCheck LD_LIBRARY_PATH" echo "========================================" echo $LD_LIBRARY_PATH -echo "Alias Python and Pip binaries" +echo -e "\nAlias Python and Pip binaries" echo "========================================" echo $PY_M_VER ls /root/python/bin @@ -91,89 +91,89 @@ ln -s /root/python/bin/python${PY_M_VER} /root/python/bin/python ln -s /root/python/bin/pip${PY_M_VER} /root/python/bin/pip ls /root/python/bin -echo "Update PATH" +echo -e "\nUpdate PATH" echo "========================================" export PATH=/root/python/bin:$PATH -echo "Display Python Version" +echo -e "\nDisplay Python Version" echo "========================================" which python which pip python --version pip --version -echo "Install Poetry" +echo -e "\nInstall Poetry" echo "========================================" pip install poetry==1.3.2 poetry --version -echo "Install Auditwheel" +echo -e "\nInstall Auditwheel" echo "========================================" pip install setuptools pip install auditwheel auditwheel --version -echo "Build Origen Metal Python Package" +echo -e "\nBuild Origen Metal Python Package" echo "========================================" cd ${GIT_DIR}/python/origen_metal poetry build --format wheel -echo "Display OM Dist Directory=" +echo -e "\nDisplay OM Dist Directory=" echo "========================================" cd ${GIT_DIR}/python/origen_metal ls dist -echo "Repair OM Wheel" +echo -e "\nRepair OM Wheel" echo "========================================" cd ${GIT_DIR}/python/origen_metal auditwheel show dist/* auditwheel repair dist/* -echo "Display OM Wheelhouse Directory" +echo -e "\nDisplay OM Wheelhouse Directory" echo "========================================" cd ${GIT_DIR}/python/origen_metal ls wheelhouse OM_WHEEL=$( ls wheelhouse | head -1 ) -echo "Display OM Wheel Name" +echo -e "\nDisplay OM Wheel Name" echo "========================================" echo $OM_WHEEL -echo "Get OM Python Package Version" +echo -e "\nGet OM Python Package Version" echo "========================================" cd ${GIT_DIR}/python/origen_metal poetry version -s > $OM_VER_FILE -echo "Build Origen Python Package" +echo -e "\nBuild Origen Python Package" echo "========================================" cd ${GIT_DIR}/python/origen poetry build --format wheel -echo "Display Origen Dist Directory" +echo -e "\nDisplay Origen Dist Directory" echo "========================================" cd ${GIT_DIR}/python/origen ls dist -echo "Repair Origen Wheel" +echo -e "\nRepair Origen Wheel" echo "========================================" cd ${GIT_DIR}/python/origen auditwheel show dist/* auditwheel repair dist/* -echo "Display Origen Wheelhouse Directory" +echo -e "\nDisplay Origen Wheelhouse Directory" echo "========================================" cd ${GIT_DIR}/python/origen ls wheelhouse ORIGEN_WHEEL=$( ls wheelhouse | head -1 ) -echo "Display Origen Wheelhouse Directory" +echo -e "\nDisplay Origen Wheelhouse Directory" echo "========================================" cd ${GIT_DIR} ls -al python/origen/origen/__bin__/bin ls -al rust/pyapi/target/release echo $ORIGEN_WHEEL -echo "Get Origen Python Package Version" +echo -e "\nGet Origen Python Package Version" echo "========================================" cd ${GIT_DIR}/python/origen poetry version -s > $ORIGEN_VER_FILE