Files
Odoo-Build/image/bin/python-install
T

8 lines
301 B
Bash
Executable File

#!/bin/bash
HTTP_PYPI_OK=$(curl -s --head --request GET https://pypi.org/simple/ | grep "HTTP/2 200")
if [ -n "$PYTHON_INSTALL" ] && [ -n "$HTTP_PYPI_OK" ]; then
entrypoint-log "Install python packages: $PYTHON_INSTALL"
uv pip install --no-cache-dir $(echo "$PYTHON_INSTALL" | tr "," " ")
fi