Remove __pycache__ to fix 'venv/bin/__pycache__: not a regular file' error.

pull/72/head
Akshay Joshi 2022-02-14 18:23:52 +05:30
parent 0fa4609220
commit 6fb4df67a9
1 changed files with 3 additions and 0 deletions

View File

@ -65,6 +65,9 @@ _create_python_virtualenv() {
sed -i 's/setenv VIRTUAL_ENV .*/setenv VIRTUAL_ENV "\/usr\/pgadmin4\/venv"/g' venv/bin/activate.csh
sed -i 's/set -gx VIRTUAL_ENV .*/set -gx VIRTUAL_ENV "\/usr\/pgadmin4\/venv"/g' venv/bin/activate.fish
# Remove __pycache__
find . -name "__pycache__" -type d -print0 | xargs -0 rm -rf
# Fixup hash bangs
sed -i 's/#!.*\/python3/#\!\/usr\/pgadmin4\/venv\/bin\/python3/g' venv/bin/*