This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Pillow is a replacement for PIL that works as a drop-in replacement. Unlike PIL, it’s actively maintained and easy to install. It’s pretty great. There’s only one problem, which is that users must first uninstall PIL before installing Pillow, as they share a namespace.

This makes it very hard for Python modules or products that need to run on a variety of configurations to easily depend on either PIL or Pillow without inevitably breaking something (perhaps in subtle ways). That makes it hard to safely transition.

This package aims to “solve” that by providing a single dependency that can intelligently depend on either PIL or Pillow, based on what’s already on the system. Packages that still need to work if PIL is installed, but aim to transition to Pillow, can simply depend on the pillowfight package.

How it works

This package is provided as a source distribution with a simple setup script. When pillowfight is installed for the first time, its setup script will run and start inspecting the system.

The setup script will look to see if PIL is already installed. If so, it will print a warning saying that PIL is deprecated and to install Pillow. It will then turn around and depend on PIL.

If PIL is not installed, it will instead depend on Pillow.

Why we wrote this

We use Django and Pillow for a product that sysadmins can install in their network. There are a lot of configurations out there, and a lot of older systems already using PIL,

We’ve been trying to figure out the right strategy for getting new and existing users onto Pillow without breaking existing installs. We don’t have much control over the system, so we knew we had to be clever.

A lot of projects out there seem to have modify their setup.py scripts to check what’s on the system, but in practice, that doesn’t work too well. When building packages, the requires.txt files would be populated with either PIL or Pillow, and that just wasn’t going to work.

So we wrote this as a way to have a stable dependency that could do the right thing. We hope others will find it useful.

Who’s using it

We’re using it for our code review product, Review Board.

If you’re using it, let us know.

Release History

Release History

0.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pillowfight-0.2.tar.gz (2.6 kB) Copy SHA256 Checksum SHA256 Source Feb 21, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting