MSYS2 dev. env. setup script update/fix (#1979)
Fix Python bcj-cffi and pyppmd package installation under MSYS2 and match better the GitHub MSYS2 environment setup.
This commit is contained in:
@@ -1,5 +0,0 @@
|
|||||||
pillow==7.2.0
|
|
||||||
clang==6.0.0
|
|
||||||
py7zr==0.16.1
|
|
||||||
pyppmd==0.16.1
|
|
||||||
aqtinstall==1.2.5
|
|
||||||
@@ -20,36 +20,56 @@ if [[ $PAUSEAFTEREACHLINE == "true" ]]; then
|
|||||||
read
|
read
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "=== Step $((STEP++)): Installing Python wheel ==="
|
echo "=== Step $((STEP++)): Installing Python Pillow and clang ==="
|
||||||
pip install wheel
|
pip install Pillow clang
|
||||||
if [[ $PAUSEAFTEREACHLINE == "true" ]]; then
|
if [[ $PAUSEAFTEREACHLINE == "true" ]]; then
|
||||||
echo "Step finished. Please check the output above and press Enter to continue or Ctrl+C to stop."
|
echo "Step finished. Please check the output above and press Enter to continue or Ctrl+C to stop."
|
||||||
read
|
read
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "=== Step $((STEP++)): Fetching Python package requirements ==="
|
echo "=== Step $((STEP++)): Installing Python setuptools and wheel ==="
|
||||||
wget https://raw.githubusercontent.com/EdgeTX/edgetx/main/tools/setup_buildenv_msys2_py_requirements.txt
|
python -m pip install setuptools wheel
|
||||||
if [[ $PAUSEAFTEREACHLINE == "true" ]]; then
|
if [[ $PAUSEAFTEREACHLINE == "true" ]]; then
|
||||||
echo "Step finished. Please check the output above and press Enter to continue or Ctrl+C to stop."
|
echo "Step finished. Please check the output above and press Enter to continue or Ctrl+C to stop."
|
||||||
read
|
read
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "=== Step $((STEP++)): Installing Python packages ==="
|
echo "=== Step $((STEP++)): Fetching and installing Python package bcj-cffi ==="
|
||||||
pip install -r setup_buildenv_msys2_py_requirements.txt
|
git clone --recursive https://github.com/miurahr/bcj-cffi.git
|
||||||
|
cd bcj-cffi
|
||||||
|
python setup.py install
|
||||||
|
cd ..
|
||||||
if [[ $PAUSEAFTEREACHLINE == "true" ]]; then
|
if [[ $PAUSEAFTEREACHLINE == "true" ]]; then
|
||||||
echo "Step finished. Please check the output above and press Enter to continue or Ctrl+C to stop."
|
echo "Step finished. Please check the output above and press Enter to continue or Ctrl+C to stop."
|
||||||
read
|
read
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "=== Step $((STEP++)): Deleting Python package requirements file ==="
|
echo "=== Step $((STEP++)): Fetching and installing Python package pyppmd ==="
|
||||||
rm setup_buildenv_msys2_py_requirements.txt
|
git clone --recursive https://github.com/miurahr/pyppmd.git
|
||||||
|
cd pyppmd
|
||||||
|
python setup.py install
|
||||||
|
cd ..
|
||||||
|
if [[ $PAUSEAFTEREACHLINE == "true" ]]; then
|
||||||
|
echo "Step finished. Please check the output above and press Enter to continue or Ctrl+C to stop."
|
||||||
|
read
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "=== Step $((STEP++)): Installing Python package py7zr in version 0.16.1 ==="
|
||||||
|
python -m pip install py7zr==0.16.1
|
||||||
|
if [[ $PAUSEAFTEREACHLINE == "true" ]]; then
|
||||||
|
echo "Step finished. Please check the output above and press Enter to continue or Ctrl+C to stop."
|
||||||
|
read
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "=== Step $((STEP++)): Installing Python package aqtinstall in version 1.2.5 ==="
|
||||||
|
python -m pip install aqtinstall==1.2.5
|
||||||
if [[ $PAUSEAFTEREACHLINE == "true" ]]; then
|
if [[ $PAUSEAFTEREACHLINE == "true" ]]; then
|
||||||
echo "Step finished. Please check the output above and press Enter to continue or Ctrl+C to stop."
|
echo "Step finished. Please check the output above and press Enter to continue or Ctrl+C to stop."
|
||||||
read
|
read
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "=== Step $((STEP++)): Installing Qt build environment ==="
|
echo "=== Step $((STEP++)): Installing Qt build environment ==="
|
||||||
aqt install 5.12.9 windows desktop win64_mingw73
|
python -m aqt install 5.12.9 windows desktop win64_mingw73
|
||||||
if [[ $PAUSEAFTEREACHLINE == "true" ]]; then
|
if [[ $PAUSEAFTEREACHLINE == "true" ]]; then
|
||||||
echo "Step finished. Please check the output above and press Enter to continue or Ctrl+C to stop."
|
echo "Step finished. Please check the output above and press Enter to continue or Ctrl+C to stop."
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user