Setting up Brotli to support fontTools on a DigitalOcean/ServerPilot Ubuntu server

172 views
Skip to first unread message

ma...@jameslindeman.co.uk

unread,
Aug 4, 2016, 5:10:39 AM8/4/16
to Brotli
Hi,

I’m building a site that uses fontTools (https://github.com/behdad/fonttools) and need to support WOFF2, and understand Brotli is required.

I’ve installed Brotli on the server (DigitalOcean/ServerPilot Ubuntu) following this method:

sudo apt-get update
sudo apt
-get install python3
cd
sudo rm 
-rf brotli/
git clone https
://github.com/google/brotli.git
cd 
~/brotli/
sudo python setup
.py install
sudo make

The install appears successful with:

~/brotli/bin/bro --help

However it does not seem available to fontTools running on one of ServerPilot’s Apps on the server.

ServerPilot won’t support this installation so I’m asking if anyone here can help?

ma...@jameslindeman.co.uk

unread,
Aug 4, 2016, 6:05:06 AM8/4/16
to Brotli, ma...@jameslindeman.co.uk
In addition, I’ve also tried:

npm install brotli


Joe Duarte

unread,
Aug 5, 2016, 5:44:00 AM8/5/16
to Brotli
Try: python setup.py build_ext

It needs to build the Python brotli extension. Not sure what the install command is doing, but build_ext is what the docs say: https://github.com/google/brotli/blob/master/python/README.md

You see the extension building code in the setup.py file in the root brotli project directory.

JD

ma...@jameslindeman.co.uk

unread,
Aug 6, 2016, 4:40:48 PM8/6/16
to Brotli
Thanks. Got it working by installing in the serverpilot directory, rather than above it.

esea...@gmail.com

unread,
Apr 11, 2017, 6:02:47 AM4/11/17
to Brotli
Hi @james , can you pls write instructions on how you did it?
Reply all
Reply to author
Forward
0 new messages