gyrojeff commited on
Commit
809fc83
1 Parent(s): f329bf7

feat: add linux install script

Browse files
linux_venv_setup.sh ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # init virtual env
2
+ python -m venv venv
3
+
4
+ source venv/bin/activate
5
+
6
+ # install pillow deps
7
+ sudo apt update
8
+ sudo apt-get install libtiff5-dev libjpeg8-dev libopenjp2-7-dev zlib1g-dev \
9
+ libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk \
10
+ libharfbuzz-dev libfribidi-dev libxcb1-dev -y
11
+
12
+ pip install meson ninja
13
+
14
+ # clone pillow
15
+ git clone https://github.com/python-pillow/Pillow
16
+
17
+ cd Pillow/depends
18
+ # make sudo happy
19
+ sed -i 's/sudo/sudo -E env PATH=$PATH/g' install_raqm.sh
20
+ # install script
21
+ chmod +x ./install_raqm.sh && ./install_raqm.sh
22
+
23
+ # install everything
24
+ pip install -r requirements_generate_font_dataset.txt
25
+
26
+ #clean up
27
+ cd ../..
28
+ rm -rf Pillow
29
+
requirements_generate_font_dataset.txt ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ certifi==2022.12.7
2
+ charset-normalizer==2.0.12
3
+ fonttools==4.27.1
4
+ idna==3.4
5
+ importlib-resources==5.4.0
6
+ meson==0.61.5
7
+ ninja==1.11.1
8
+ Pillow==8.4.0
9
+ pkg-resources==0.0.0
10
+ PyYAML==6.0
11
+ requests==2.27.1
12
+ tqdm==4.64.1
13
+ urllib3==1.26.15
14
+ zipp==3.6.0