forked from yt-dlg/yt-dlg
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.sh
More file actions
74 lines (61 loc) · 1.92 KB
/
setup.sh
File metadata and controls
74 lines (61 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/bin/bash
# Setup for PyInstaller ManyLinux 2.28 Docker Action
# https://github.com/oleksis/pyinstaller-manylinux
# Fail on errors.
set -e
PYTHON_VERSION=3.10
PYINSTALLER_VERSION=5.8.0
# libpng12
curl -L -O -C - https://sourceforge.net/projects/libpng/files/libpng12/1.2.59/libpng-1.2.59.tar.gz
tar -xzf libpng-1.2.59.tar.gz
pushd libpng-1.2.59
./configure
make
make install
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib/
popd
rm -rf libpng-1.2.59 libpng-1.2.59.tar.gz
# libjpeg8
dnf -y install --allowerasing cmake nasm
curl -L -O -C - https://sourceforge.net/projects/libjpeg-turbo/files/2.1.1/libjpeg-turbo-2.1.1.tar.gz
tar -xzf libjpeg-turbo-2.1.1.tar.gz
pushd libjpeg-turbo-2.1.1
cmake -G"Unix Makefiles" -DWITH_JPEG8=1 .
make
make install
LD_LIBRARY_PATH=/opt/libjpeg-turbo/lib64/:${LD_LIBRARY_PATH}
popd
rm -rf libjpeg-turbo-2.1.1 libjpeg-turbo-2.1.1.tar.gz
echo "export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> ${HOME}/.bashrc
# Install wxPython 4 Dependencies
dnf -y update
dnf install -y \
freeglut-devel \
gstreamer1-devel \
gstreamer1-plugins-base-devel \
gtk3-devel \
libjpeg-turbo-devel \
libnotify-devel \
libpng-devel \
libSM-devel \
libtiff-devel \
libXtst-devel \
SDL-devel \
webkit2gtk3-devel \
which
# Simple DirectMedia Layer 2
dnf install -y SDL2-devel
# Perl-compatible regular expression library 2
dnf install -y pcre2 pcre2-devel
dnf clean all
rm -rf /var/cache/yum
pyenv virtualenv ${PYTHON_VERSION}.10 venv310
pyenv local venv310
pyenv exec python -m pip install --upgrade pip six setuptools wheel
curl -L -O -C - https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-20.04/wxPython-4.2.0-cp310-cp310-linux_x86_64.whl
pyenv exec pip install wxPython-4.2.0-cp310-cp310-linux_x86_64.whl
# Install requirements here
pyenv exec pip install --upgrade pyinstaller==$PYINSTALLER_VERSION
pyenv exec pip install polib -r requirements/requirements.in
# Build Translations
pyenv exec python setup.py build_trans