mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Mac build fixes:
- Rebuild Python packages from scratch so we know what libraries they use - Ensure the backports Python module has an __init__.py file.
This commit is contained in:
parent
1cb2a62fa8
commit
001e0ce1cf
@ -87,7 +87,7 @@ _create_python_virtualenv() {
|
||||
cd $BUILDROOT
|
||||
test -d $VIRTUALENV || virtualenv -p $PYTHON $VIRTUALENV || exit 1
|
||||
source $VIRTUALENV/bin/activate
|
||||
$PIP install -r $SOURCEDIR/requirements.txt || { echo PIP install failed. Please resolve the issue and rerun the script; exit 1; }
|
||||
$PIP install --no-cache-dir --no-binary :all: -r $SOURCEDIR/requirements.txt || { echo PIP install failed. Please resolve the issue and rerun the script; exit 1; }
|
||||
|
||||
# Figure out some paths for use when completing the venv
|
||||
# Use "python" here as we want the venv path
|
||||
@ -128,6 +128,9 @@ _create_python_virtualenv() {
|
||||
if test -d $DIR_PYMODULES_PATH; then
|
||||
mv $DIR_PYMODULES_PATH $DIR_PYMODULES_PATH/../python
|
||||
fi
|
||||
|
||||
# Fix the backports module which will have no __init__.py file
|
||||
touch $BUILDROOT/$VIRTUALENV/lib/python/site-packages/backports/__init__.py
|
||||
}
|
||||
|
||||
_build_runtime() {
|
||||
|
Loading…
Reference in New Issue
Block a user