$ git clone --depth 1 https://github.com/pyodide/pyodide.git -b 0.21.1
$ cd pyodide
$ sudo bash run_docker
$ pip install ./pyodide-build
$ cd emsdk
$ make
$ cd ..
$ sudo apt update
$ sudo apt install vim libfreetype6-dev
$ source pyodide_env.sh
$ make -C cpython
$ make
edited: plist.txt
$ vi plist.txt
$ python pyodide_meta.py
@@ -4,6 +4,11 @@
source:
url: https://files.pythonhosted.org/packages/a6/d0/bdee3e8a7ba5f2dc8bacea10f4fdd1264b1dd9e53d96d318773180634a00/reportlab-3.6.11.tar.gz
sha256: 04fc4420f0548815d0623e031c86a1f7f3f3003e699d9af7148742e2d72b024a
+ patches:
+ - patches/gt1-namecontext.patch
+build:
+ cflags: |
+ -s USE_FREETYPE=1
test:
imports:
- reportlab
packages/reportlab/patches/gt1-namecontext.patch
https://gist.github.com/mbotsu/5d87dff8cf240062eda24e1af15ce92d#file-gt1-namecontext-patch
$ PYODIDE_PACKAGES="core,CLAPACK,Pillow,reportlab" make -C packages
$ python3 -m http.server
access to localhost:8000/pdf.html
https://gist.github.com/mbotsu/d5d567b7ed3d555a382aacb0da0ca732#file-pyodide_meta-py
Hi! Hope you are well. Could you add a .whl file that I can use in my Jupyter notebook (using micropip)?