move patch to create_env

This commit is contained in:
Ondrej Samohel 2021-02-25 13:09:10 +01:00
parent 89a9a8d434
commit 28f08df239
No known key found for this signature in database
GPG key ID: 02376E18990A97C6
2 changed files with 8 additions and 8 deletions

View file

@ -136,14 +136,6 @@ main () {
poetry run python3 "$pype_root/setup.py" build > "$pype_root/build/build.log"
poetry run python3 "$pype_root/tools/build_dependencies.py"
# reinstall these because of bug in poetry? or cx_freeze?
# cx_freeze will crash on missing __pychache__ on these but
# reinstalling them solves the problem.
echo -e "${BIGreen}>>>${RST} Fixing pycache bug ..."
poetry run python -m pip install --upgrade pip
poetry run pip install --force-reinstall setuptools
poetry run pip install --force-reinstall wheel
echo -e "${BICyan}>>>${RST} All done. You will find Pype and build log in \c"
echo -e "${BIWhite}$pype_root/build${RST} directory."
}

View file

@ -148,6 +148,14 @@ main () {
echo -e "${BIGreen}>>>${RST} Cleaning cache files ..."
clean_pyc
# reinstall these because of bug in poetry? or cx_freeze?
# cx_freeze will crash on missing __pychache__ on these but
# reinstalling them solves the problem.
echo -e "${BIGreen}>>>${RST} Fixing pycache bug ..."
poetry run python -m pip install --upgrade pip
poetry run pip install --force-reinstall setuptools
poetry run pip install --force-reinstall wheel
}
main