summaryrefslogtreecommitdiff
path: root/notes/frameworks/cairo.md
diff options
context:
space:
mode:
Diffstat (limited to 'notes/frameworks/cairo.md')
-rw-r--r--notes/frameworks/cairo.md21
1 files changed, 15 insertions, 6 deletions
diff --git a/notes/frameworks/cairo.md b/notes/frameworks/cairo.md
index 3eeb2159..4022ae54 100644
--- a/notes/frameworks/cairo.md
+++ b/notes/frameworks/cairo.md
@@ -1,8 +1,6 @@
# Cairo
-WeasyPrint relies on Cairo>1.14.~ but cairo=1.15.* didn't install correctly. Cairo 1.16.0 tested and works as of Feb 9
-
-Install cairo on Ubuntu 16.04 for WeasyPrint
+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
@@ -11,7 +9,18 @@ cd cairo-1.16.0
./configure --prefix=$HOME/code/cairo
make
make install
-export PKG_CONFIG_PATH=$HOME/code/cairo/lib/pkgconfig
-export LD_LIBRARY_PATH=$HOME/code/cairo/lib
+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
-``` \ No newline at end of file
+```
+
+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 \ No newline at end of file