From aclark at aclark.net Wed Mar 6 15:41:08 2013 From: aclark at aclark.net (Alex Clark) Date: Wed, 6 Mar 2013 09:41:08 -0500 Subject: [Image-SIG] PSF grant References: Message-ID: On 2013-02-28 01:29:47 +0000, Alex Clark said: > On 2013-02-25 16:00:21 +0000, Alex Clark said: > >> Dear Python Imaging Folks, >> >> >> I'm considering asking the PSF for a grant to fund my work on >> Pillowfor> Python 3, please add any comments/questions/concerns you may >> havehere: >> >> >> - https://github.com/python-imaging/Pillow/issues/61 >> >> >> Thank you! > > > Proposal I will send tomorrow, comments > welcome:https://github.com/python-imaging/psf-grant-proposal Approved! Thank you PSF. Closed https://github.com/python-imaging/Pillow/issues/61. > >> >> >> Alex -- Alex Clark ? http://about.me/alex.clark From aclark at aclark.net Wed Mar 6 15:46:39 2013 From: aclark at aclark.net (Alex Clark) Date: Wed, 6 Mar 2013 09:46:39 -0500 Subject: [Image-SIG] New IRC channel on freenode, "#pil" Message-ID: I don't know if anyone has ever set up an IRC channel for PIL, and I am assuming that no minds if I do (e.g. Fredrik). If you do mind, please let me know! Otherwise, please join me for PIL & Pillow discussion on irc.freenode.net in the #pil channel. More details here: - http://python-imaging.github.com/Pillow/ Alex -- Alex Clark ? http://about.me/alex.clark From aclark at aclark.net Fri Mar 15 18:44:46 2013 From: aclark at aclark.net (Alex Clark) Date: Fri, 15 Mar 2013 13:44:46 -0400 Subject: [Image-SIG] Pillow 2.0.0 released Message-ID: FYI, Pillow 2.0.0 released: - https://pypi.python.org/pypi/Pillow/2.0.0 Please report issues here: - https://github.com/python-imaging/Pillow/issues -- Alex Clark ? http://about.me/alex.clark From felix.schwarz at oss.schwarz.eu Fri Mar 15 21:44:23 2013 From: felix.schwarz at oss.schwarz.eu (Felix Schwarz) Date: Fri, 15 Mar 2013 21:44:23 +0100 Subject: [Image-SIG] How to tell Pillow where to look for header files (on OS X)? Message-ID: <51438827.2060408@oss.schwarz.eu> Hey, how can I specify the include dir for header files (jpeglib.h) for Pillow without modifying the source? I'm on OS X (Mountain Lion) and installed libjpeg using homebrew. There is a 'jpeglib.h' file in ~/homebrew/include but 'python setup.py build' still says 'no jpeg support'. Any ideas/pointers? fs From sienkiew at stsci.edu Fri Mar 15 22:24:39 2013 From: sienkiew at stsci.edu (Mark Sienkiewicz) Date: Fri, 15 Mar 2013 17:24:39 -0400 Subject: [Image-SIG] How to tell Pillow where to look for header files (on OS X)? In-Reply-To: <51438827.2060408@oss.schwarz.eu> References: <51438827.2060408@oss.schwarz.eu> Message-ID: <51439197.5090201@stsci.edu> On 03/15/13 16:44, Felix Schwarz wrote: > Hey, > > how can I specify the include dir for header files (jpeglib.h) for Pillow > without modifying the source? There are parameters for setup.py to specify where the include files and library files are. The interface is a bit klunky, but it worked like this for me: build_ext means to build the C extensions; this command recognizes -I for another directory of include files and -L for another directory of library files python setup.py build_ext -I ~/homebrew/include -L ~/homebrew/lib build means to do both the python and the C extension, but distutils recognizes that the C extension is built already, so you don't need to specify -I/-L -- a good thing, because it doesn't recognize them! python setup.py build install copies the build files to the install directory; the above commands did all of the build steps python setup.py install There are options to specify a specific directory to install in. I usually use: python setup.py install --home ~/py to get ~/py/bin (add to PATH) and ~/py/lib/python (add to PYTHONPATH). Regards, Mark S. From johnson at pharmacy.arizona.edu Fri Mar 15 22:13:52 2013 From: johnson at pharmacy.arizona.edu (Bruce Johnson) Date: Fri, 15 Mar 2013 14:13:52 -0700 Subject: [Image-SIG] How to tell Pillow where to look for header files (on OS X)? In-Reply-To: <51438827.2060408@oss.schwarz.eu> References: <51438827.2060408@oss.schwarz.eu> Message-ID: <260ABE0A-2063-446B-A05D-BD3AA35C3FB0@pharmacy.arizona.edu> On Mar 15, 2013, at 1:44 PM, Felix Schwarz wrote: > Hey, > > how can I specify the include dir for header files (jpeglib.h) for Pillow > without modifying the source? > > I'm on OS X (Mountain Lion) and installed libjpeg using homebrew. There is a > 'jpeglib.h' file in ~/homebrew/include but 'python setup.py build' still says > 'no jpeg support'. > > Any ideas/pointers? Make sure ~/homebrew/include is on your $PATH? -- Bruce Johnson University of Arizona College of Pharmacy Information Technology Group Institutions do not have opinions, merely customs From aclark at aclark.net Fri Mar 15 23:46:36 2013 From: aclark at aclark.net (Alex Clark) Date: Fri, 15 Mar 2013 18:46:36 -0400 Subject: [Image-SIG] How to tell Pillow where to look for header files (on OS X)? References: <51438827.2060408@oss.schwarz.eu> Message-ID: On 2013-03-15 20:44:23 +0000, Felix Schwarz said: > Hey, > > how can I specify the include dir for header files (jpeglib.h) for Pillow > without modifying the source? > > I'm on OS X (Mountain Lion) and installed libjpeg using homebrew. There is a > 'jpeglib.h' file in ~/homebrew/include but 'python setup.py build' still says > 'no jpeg support'. > > Any ideas/pointers? You shouldn't have to. Could something else be wrong? I have the same OS and Homebrew libs? and I get this: -------------------------------------------------------------------- SETUP SUMMARY (Pillow 2.0.0 fork, originally based on PIL 1.1.7) -------------------------------------------------------------------- version 2.0.0 (Pillow) platform darwin 2.7.3 (default, Feb 11 2013, 07:30:37) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.24)] -------------------------------------------------------------------- --- TKINTER support available --- JPEG support available --- ZLIB (PNG/ZIP) support available --- TIFF G3/G4 (experimental) support available --- FREETYPE2 support available --- LITTLECMS support available *** WEBP support not available -------------------------------------------------------------------- To add a missing option, make sure you have the required library, and set the corresponding ROOT variable in the setup.py script. To check the build, run the selftest.py script. Alex > fs > _______________________________________________ > Image-SIG maillist - Image-SIG at python.org > http://mail.python.org/mailman/listinfo/image-sig -- Alex Clark ? http://about.me/alex.clark From felix.schwarz at oss.schwarz.eu Sat Mar 16 10:07:56 2013 From: felix.schwarz at oss.schwarz.eu (Felix Schwarz) Date: Sat, 16 Mar 2013 10:07:56 +0100 Subject: [Image-SIG] How to tell Pillow where to look for header files (on OS X)? In-Reply-To: <260ABE0A-2063-446B-A05D-BD3AA35C3FB0@pharmacy.arizona.edu> References: <51438827.2060408@oss.schwarz.eu> <260ABE0A-2063-446B-A05D-BD3AA35C3FB0@pharmacy.arizona.edu> Message-ID: <5144366C.20102@oss.schwarz.eu> Am 15.03.2013 22:13, schrieb Bruce Johnson: >> I'm on OS X (Mountain Lion) and installed libjpeg using homebrew. There is a >> 'jpeglib.h' file in ~/homebrew/include but 'python setup.py build' still says >> 'no jpeg support'. >> >> Any ideas/pointers? > > Make sure ~/homebrew/include is on your $PATH? Maybe I'm missing something but as far as I know $PATH is only used to find executables but in my case I need to specify the include directory which is usually specified using '-I...' in the compiler call. fs From felix.schwarz at oss.schwarz.eu Sat Mar 16 10:10:15 2013 From: felix.schwarz at oss.schwarz.eu (Felix Schwarz) Date: Sat, 16 Mar 2013 10:10:15 +0100 Subject: [Image-SIG] How to tell Pillow where to look for header files (on OS X)? In-Reply-To: <51439197.5090201@stsci.edu> References: <51438827.2060408@oss.schwarz.eu> <51439197.5090201@stsci.edu> Message-ID: <514436F7.3080001@oss.schwarz.eu> Hi Mark, Am 15.03.2013 22:24, schrieb Mark Sienkiewicz: > build_ext means to build the C extensions; this command recognizes -I for > another directory of include files and -L for another directory of library files > > python setup.py build_ext -I ~/homebrew/include -L ~/homebrew/lib That worked for me. Thanks a lot. Is there any way to set these parameters using environment variables? Pillow is being installed as a dependency for my library so it would be easier if users could set up something beforehand... > There are options to specify a specific directory to install in. I usually use: > > python setup.py install --home ~/py > > to get ~/py/bin (add to PATH) and ~/py/lib/python (add to PYTHONPATH). Well, I have a virtualenv anyway so I don't need that. Thank you very much for your spot-on explanation. fs From felix.schwarz at oss.schwarz.eu Sat Mar 16 10:29:19 2013 From: felix.schwarz at oss.schwarz.eu (Felix Schwarz) Date: Sat, 16 Mar 2013 10:29:19 +0100 Subject: [Image-SIG] How to tell Pillow where to look for header files (on OS X)? In-Reply-To: <514436F7.3080001@oss.schwarz.eu> References: <51438827.2060408@oss.schwarz.eu> <51439197.5090201@stsci.edu> <514436F7.3080001@oss.schwarz.eu> Message-ID: <51443B6F.3000306@oss.schwarz.eu> as a follow-up I hacked together a quick patch so that setup.py checks also special environment variables. Do you think that functionality is interesting for pillow? If so I can submit a pull request. fs -------------- next part -------------- A non-text attachment was scrubbed... Name: pillow-specify-include-dir.patch Type: text/x-patch Size: 543 bytes Desc: not available URL: From charlie.clark at clark-consulting.eu Sat Mar 16 14:23:20 2013 From: charlie.clark at clark-consulting.eu (Charlie Clark) Date: Sat, 16 Mar 2013 14:23:20 +0100 Subject: [Image-SIG] Pillow 2.0.0 released In-Reply-To: References: Message-ID: Am 15.03.2013, 18:44 Uhr, schrieb Alex Clark : > FYI, > Pillow 2.0.0 released: > - https://pypi.python.org/pypi/Pillow/2.0.0 Congratulations on adding Python 3 support! Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Kronenstr. 27a D?sseldorf D- 40217 Tel: +49-211-600-3657 Mobile: +49-178-782-6226 From felix.schwarz at oss.schwarz.eu Sat Mar 16 22:18:10 2013 From: felix.schwarz at oss.schwarz.eu (Felix Schwarz) Date: Sat, 16 Mar 2013 22:18:10 +0100 Subject: [Image-SIG] How to tell Pillow where to look for header files (on OS X)? In-Reply-To: References: <51438827.2060408@oss.schwarz.eu> <51443994.2000801@oss.schwarz.eu> Message-ID: <5144E192.1080703@oss.schwarz.eu> Hi, Am 16.03.2013 13:15, schrieb Alex Clark: > Not as far as I can tell. I just tested with /usr/bin/easy_install, after > installing Distribute with the system Python. Seem to be OK. I think that is > the equivalent of what you are doing. Very much so, yes. Can you check if you have the jpeg headers somehow installed system-wide? Is there anything in homebrew I can configure so the headers are linked also in the default include locations? fs From aclark at aclark.net Sun Mar 17 00:30:17 2013 From: aclark at aclark.net (Alex Clark) Date: Sat, 16 Mar 2013 19:30:17 -0400 Subject: [Image-SIG] Pillow 2.0.0 released References: Message-ID: On 2013-03-16 13:23:20 +0000, Charlie Clark said: > Am 15.03.2013, 18:44 Uhr, schrieb Alex Clark : > >> FYI, >> Pillow 2.0.0 released: >> - https://pypi.python.org/pypi/Pillow/2.0.0 > > Congratulations on adding Python 3 support! Thank you! The majority of that work was done by Brian Crowell (https://github.com/fluggo). > > Charlie -- Alex Clark ? http://about.me/alex.clark From aclark at aclark.net Sun Mar 17 13:08:40 2013 From: aclark at aclark.net (Alex Clark) Date: Sun, 17 Mar 2013 08:08:40 -0400 Subject: [Image-SIG] How to tell Pillow where to look for header files (on OS X)? References: <51438827.2060408@oss.schwarz.eu> <51439197.5090201@stsci.edu> <514436F7.3080001@oss.schwarz.eu> <51443B6F.3000306@oss.schwarz.eu> Message-ID: On 2013-03-16 09:29:19 +0000, Felix Schwarz said: > > as a follow-up I hacked together a quick patch so that setup.py checks also > special environment variables. What are "special environment variables"? Variables you defined, or are you setting already existing vars? > > Do you think that functionality is interesting for pillow? If so I can submit > a pull request. Yes, please submit it for review. I'm not sure I fully understand the issue yet, so maybe that will help. IIRC, brew uses very common lib and header path dirs (e.g. /usr/local/lib, /usr/local/include) and Pillow's setup.py certainly already checks those paths. It's good that you were able to get it to work by passing in the path, but I'm not sure why you had to. > fs > > > _______________________________________________ > Image-SIG maillist - Image-SIG at python.org > http://mail.python.org/mailman/listinfo/image-sig -- Alex Clark ? http://about.me/alex.clark From sienkiew at stsci.edu Mon Mar 18 15:28:10 2013 From: sienkiew at stsci.edu (Mark Sienkiewicz) Date: Mon, 18 Mar 2013 10:28:10 -0400 Subject: [Image-SIG] How to tell Pillow where to look for header files (on OS X)? In-Reply-To: <514436F7.3080001@oss.schwarz.eu> References: <51438827.2060408@oss.schwarz.eu> <51439197.5090201@stsci.edu> <514436F7.3080001@oss.schwarz.eu> Message-ID: <5147247A.3060500@stsci.edu> On 03/16/13 05:10, Felix Schwarz wrote: > Hi Mark, > > Am 15.03.2013 22:24, schrieb Mark Sienkiewicz: >> build_ext means to build the C extensions; this command recognizes -I for >> another directory of include files and -L for another directory of library files >> >> python setup.py build_ext -I ~/homebrew/include -L ~/homebrew/lib > That worked for me. Thanks a lot. > > Is there any way to set these parameters using environment variables? Pillow > is being installed as a dependency for my library so it would be easier if > users could set up something beforehand... Not environment variable,s but there is a config file for that. There is some minimal documentation at: http://docs.python.org/2/install/index.html#distutils-configuration-files Mark S. From omid.noroozi at wur.nl Mon Mar 18 15:40:57 2013 From: omid.noroozi at wur.nl (Noroozi, Omid) Date: Mon, 18 Mar 2013 14:40:57 +0000 Subject: [Image-SIG] Unsubscribe Message-ID: <261DD5BA5B785A43B7C34F210687DAF40BCEFA99@SCOMP0935.wurnet.nl> Dear sir, Would you please unsubscribe me from the list of recipients, Thanks -----Original Message----- From: Image-SIG [mailto:image-sig-bounces+omid.noroozi=wur.nl at python.org] On Behalf Of Mark Sienkiewicz Sent: maandag 18 maart 2013 15:28 To: image-sig at python.org Subject: Re: [Image-SIG] How to tell Pillow where to look for header files (on OS X)? On 03/16/13 05:10, Felix Schwarz wrote: > Hi Mark, > > Am 15.03.2013 22:24, schrieb Mark Sienkiewicz: >> build_ext means to build the C extensions; this command recognizes -I >> for another directory of include files and -L for another directory >> of library files >> >> python setup.py build_ext -I ~/homebrew/include -L >> ~/homebrew/lib > That worked for me. Thanks a lot. > > Is there any way to set these parameters using environment variables? > Pillow is being installed as a dependency for my library so it would > be easier if users could set up something beforehand... Not environment variable,s but there is a config file for that. There is some minimal documentation at: http://docs.python.org/2/install/index.html#distutils-configuration-files Mark S. _______________________________________________ Image-SIG maillist - Image-SIG at python.org http://mail.python.org/mailman/listinfo/image-sig From chris.barker at noaa.gov Wed Mar 20 00:50:21 2013 From: chris.barker at noaa.gov (Chris Barker - NOAA Federal) Date: Tue, 19 Mar 2013 16:50:21 -0700 Subject: [Image-SIG] Unsubscribe In-Reply-To: <261DD5BA5B785A43B7C34F210687DAF40BCEFA99@SCOMP0935.wurnet.nl> References: <261DD5BA5B785A43B7C34F210687DAF40BCEFA99@SCOMP0935.wurnet.nl> Message-ID: >> Is there any way to set these parameters using environment variables? >> Pillow is being installed as a dependency for my library so it would >> be easier if users could set up something beforehand... Also, it's a pretty common practice for setup.py files to look in "standard" locations for includes -- i.e. marcports and fink locations on OS-X, maybe we should add the homebrew locations as well (though doesn't homebrew use use/local ? I'd think that would already be on the standard list. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov