From 28f08df2392ee9330fd459485d6565f9ed827e0d Mon Sep 17 00:00:00 2001 From: Ondrej Samohel Date: Thu, 25 Feb 2021 13:09:10 +0100 Subject: [PATCH] move patch to create_env --- tools/build.sh | 8 -------- tools/create_env.sh | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/build.sh b/tools/build.sh index 0ab4a35060..d3e4769c4f 100755 --- a/tools/build.sh +++ b/tools/build.sh @@ -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." } diff --git a/tools/create_env.sh b/tools/create_env.sh index 8d3b3b393c..9033672e76 100755 --- a/tools/create_env.sh +++ b/tools/create_env.sh @@ -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