blob: 4022ae54d486a9f1bd3c44701fb6f152a6cdc640 (
plain)
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
|
# Cairo
Requires cairo built form source. The conda builds dont' work: unable to render background-image css. On Ubuntu18+ might be able to install with apt. For Ubuntu 16.04 run:
```
wget https://www.cairographics.org/releases/cairo-1.16.0.tar.xz
tar -xf cairo-1.16.0.tar.xz
cd cairo-1.16.0
./configure --prefix=$HOME/code/cairo
make
make install
export PKG_CONFIG_PATH=$HOME/code/cairo/lib/pkgconfig:$PKG_CONFIG
export LD_LIBRARY_PATH=$HOME/code/cairo/lib:$LD_LIBRARY_PATH
# pip install weasyprint
```
Virtualenv
- Works in virtualenv with python `mkvirtualenv weasycairo -p python3.6`
- Doesn't work in virtualenv w/o cairo local build paths, cairo is < 1.15.4
Conda
- Works in conda env with python 3.6 and cairo built on system with paths set
- doesn't work with conda build of 1.16 (both builds don't work)
- Doesnt work in megapixels conda env even with local cairo build
WeasyPrint relies on Cairo>1.15.4. Locally built Cairo 1.16.0 tested and works as of Feb 9. But the conda installed Cairo 16 has issues
|