Path: csiph.com!usenet.pasdenom.info!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'yet.': 0.04; 'laura': 0.07; 'pypy': 0.07; 'sys': 0.07; 'test,': 0.07; 'mercurial': 0.09; 'pil': 0.09; 'says.': 0.09; 'skip:/ 10': 0.09; 'try:': 0.09; 'url:blog': 0.10; 'exhaustive': 0.16; 'im:': 0.16; 'ioerror:': 0.16; 'morning,': 0.16; 'pypy.': 0.16; 'received:openend.se': 0.16; 'received:theraft.openend.se': 0.16; 'subject:Pypy': 0.16; 'tarball': 0.16; 'virtualenv.': 0.16; 'write,': 0.16; 'working.': 0.19; 'written': 0.21; 'seems': 0.21; 'import': 0.22; "aren't": 0.24; "shouldn't": 0.24; 'fine': 0.24; "haven't": 0.24; 'question': 0.24; "i've": 0.25; 'pass': 0.26; 'header:In-Reply- To:1': 0.27; 'extensively': 0.31; 'except': 0.35; 'but': 0.35; 'are,': 0.36; 'edge': 0.36; 'done': 0.36; 'charset:us-ascii': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'read': 0.60; 'first': 0.61; 'you.': 0.62; 'here:': 0.62; 'header:Message-Id:1': 0.63; 'more': 0.64; 'within': 0.65; 'here': 0.66; 'news': 0.67; 'hour': 0.70; 'env': 0.84; 'hardly': 0.84; 'want:': 0.84; 'received:89': 0.85; 'promised': 0.91; 'url:latest': 0.91; 'tomorrow': 0.95 To: python-list@python.org From: Laura Creighton Subject: Re: Future of Pypy? In-Reply-To: Message from Dave Farrance of "Sun, 22 Feb 2015 19:20:44 +0000." <32akealnfprmj3qha172e40c4cojk6cq56@4ax.com> References: <54e9e236$0$13004$c3e8da3$5496439d@news.astraweb.com> <32akealnfprmj3qha172e40c4cojk6cq56@4ax.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <21010.1424641548.1@fido> Date: Sun, 22 Feb 2015 22:45:48 +0100 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 50 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1424641552 news.xs4all.nl 2878 [2001:888:2000:d::a6]:57228 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:86160 Good news -- it seems to be working fine with PyPy. https://travis-ci.org/hugovk/Pillow/builds for me, not extensively tested, it just seems to be working. I have several pypy's floating around here, each within its own virtualenv. If you aren't familiar with virtualenv, read all about it here: http://www.dabapps.com/blog/introduction-to-pip-and-virtualenv-python/ Note the first question to the blog writer is 'how to get it to work with pypy'. Do what he says. virtualenv -p /path/to/pypy env but, if you want to use more bleeding edge pypy you will want: # from a tarball $ virtualenv -p /opt/pypy-c-jit-41718-3fb486695f20-linux/bin/pypy my-pypy-env # from the mercurial checkout $ virtualenv -p /path/to/pypy/pypy/translator/goal/pypy-c my-pypy-env I've only got bleeding edge PyPys around here, in virtualenvs, but in all of them import sys from PIL import Image for infile in sys.argv[1:]: try: with Image.open(infile) as im: print(infile, im.format, "%dx%d" % im.size, im.mode) except IOError: pass which I pasted right in from http://pillow.readthedocs.org/en/latest/handbook/tutorial.html seems to be working just fine for me. Hardly an exhaustive test, but ... well, try it and see how it goes for you. I don't know what time it is where you are, but it is 22:44 here now, and alas I promised a kivy demo to a client tomorrow morning, and, double alas, I haven't written it yet. It shouldn't take more than an hour or three to write, but I am going to have to stop having pleasant chats about pypy for a while and get this thing done ... :) Laura