Installing Pygal into Cygwin

Pygal is a python library for emitting SVG charts. It might do PNGs too; the documentation is… sparse. Okay, there’s no documentation, but they show you several ways to make bar charts, and figure you can follow on from there.  Anyways, the installation instructions don’t work, not under cygwin.

Here’s what you should do:

  1. ensure cygwin has the libs libxml2-devel and libxslt-devel installed
  2. issue the command
    cygwin$ pip install pygal

and you’re done. Getting pip into cygwin is a whole world of hurt, but you will need to go looking for a http (not https) source to download setuptools, then download and run ez_setup.py, followed by using pip to upgrade setuptools. Have fun with that; I know I did.

One thought on “Installing Pygal into Cygwin

  1. ed

    A quick search of the source returns no reference “png”, no “jpg”, no “gif”. Which is fine.

    However.

    A quick *look* at the source shows … essentially no comments.

    I think this sort of thing really needs to be deprecated. If someone can’t comment and document adequately … they shouldn’t release it.

Comments are closed.