Ticket #44285: python-pil-pillow-maintainers.diff
File python-pil-pillow-maintainers.diff, 6.6 KB (added by Ionic (Mihai Moldovan), 10 years ago) |
---|
-
python/py-aplpy/Portfile
diff --git a/python/py-aplpy/Portfile b/python/py-aplpy/Portfile index 24170ec..5a92ac2 100644
a b PortGroup python 1.0 6 6 7 7 name py-aplpy 8 8 version 0.9.11 9 maintainers robitaille stsci.edu:mperrin 9 maintainers robitaille stsci.edu:mperrin openmaintainer 10 10 11 11 categories-append science 12 12 description The Astronomical Plotting Library in Python … … if {${name} ne ${subport}} { 36 36 port:py${python.version}-astropy 37 37 38 38 variant rgb description {Include support for RGB images} { 39 if {${python.version} >= 31} { 40 depends_run-append port:py${python.version}-Pillow 41 } else { 42 depends_run-append port:py${python.version}-pil 43 } 39 depends_run-append path:${python.pkgd}/PIL:py${python.version}-Pillow 44 40 } 45 41 46 42 variant avm description {Include support for AVM meta-data} { -
python/py-psychopy/Portfile
diff --git a/python/py-psychopy/Portfile b/python/py-psychopy/Portfile index 14314c4..210baa8 100644
a b PortGroup python 1.0 6 6 7 7 name py-psychopy 8 8 version 1.64.00 9 revision 1 9 10 platforms darwin 10 11 supported_archs noarch 11 maintainers jameskyle 12 maintainers jameskyle openmaintainer 12 13 13 14 set gproject PsychoPy 14 15 … … python.versions 26 23 24 if {${name} ne ${subport}} { 24 25 depends_lib port:py${python.version}-setuptools \ 25 26 port:py${python.version}-matplotlib \ 26 p ort:py${python.version}-pil\27 path:${python.pkgd}/PIL:py${python.version}-Pillow \ 27 28 port:py${python.version}-scipy \ 28 29 port:py${python.version}-pyglet 29 30 … … checksums md5 645c7218b088588813fb8315900c09a1 \ 35 36 sha1 2049c4ea83b747d7026124ab7e432e3fd4581a6d \ 36 37 rmd160 85591572f1335984b09b2d4170b6ef9de458f0c2 37 38 39 patchfiles patch-pillow-compat.diff 38 40 39 41 livecheck.regex ${gproject}-(\[0-9.\]+)\\.zip -
new file python/py-psychopy/files/patch-pillow-compat.diff
diff --git a/python/py-psychopy/files/patch-pillow-compat.diff b/python/py-psychopy/files/patch-pillow-compat.diff new file mode 100644 index 0000000..ce27a69
- + 1 --- psychopy/filters.py.old 2014-07-10 21:31:51.000000000 +0200 2 +++ psychopy/filters.py 2014-07-10 21:32:03.000000000 +0200 3 @@ -8,7 +8,7 @@ 4 5 import numpy 6 from numpy.fft import fft2, ifft2, fftshift, ifftshift 7 -import Image 8 +from PIL import Image 9 from psychopy import log 10 11 def makeGrating(res, 12 --- psychopy/makeMovies.py.old 2014-07-10 21:31:51.000000000 +0200 13 +++ psychopy/makeMovies.py 2014-07-10 21:32:24.000000000 +0200 14 @@ -11,7 +11,7 @@ 15 """ 16 from psychopy import log 17 import string, time, tempfile, os, glob 18 -import Image, ImageChops 19 +from PIL import Image, ImageChops 20 from GifImagePlugin import getheader, getdata #part of PIL 21 try: 22 import pymedia.video.vcodec as vcodec 23 @@ -390,4 +390,4 @@ 24 #would be nice also to remove self._movTmpFileName, but this fouls up movie writing (even deleting afterwards!?) 25 files=glob.glob(os.path.join(tmpFolder,'*.psychopyTmp.png')) 26 for thisFile in files: 27 - os.remove(thisFile) 28 \ No newline at end of file 29 + os.remove(thisFile) 30 --- psychopy/misc.py.old 2014-07-10 21:31:51.000000000 +0200 31 +++ psychopy/misc.py 2014-07-10 21:33:00.000000000 +0200 32 @@ -10,7 +10,8 @@ 33 import monitors 34 35 import os, shutil 36 -import Image, cPickle 37 +from PIL import Image 38 +import cPickle 39 #from random import shuffle #this is core python dist 40 41 def toFile(filename, data): 42 --- psychopy/tests/utils.py.old 2014-07-10 21:31:51.000000000 +0200 43 +++ psychopy/tests/utils.py 2014-07-10 21:33:24.000000000 +0200 44 @@ -1,4 +1,4 @@ 45 -import Image 46 +from PIL import Image 47 import nose 48 import os 49 import numpy as np 50 @@ -32,4 +32,4 @@ 51 frame.save(filenameLocal, optimize=1) 52 print "** Saved copy of actual frame to %s **" %filenameLocal 53 assert rms<crit 54 - 55 \ No newline at end of file 56 + 57 --- psychopy/visual.py.old 2014-07-10 21:31:51.000000000 +0200 58 +++ psychopy/visual.py 2014-07-10 21:33:32.000000000 +0200 59 @@ -10,7 +10,7 @@ 60 import psychopy.event 61 #misc must only be imported *after* event or MovieStim breaks on win32 (JWP has no idea why!) 62 import psychopy.misc 63 -import Image 64 +from PIL import Image 65 import sys, os, platform, time, glob, copy 66 import makeMovies 67 -
python/py-pyphant-imageprocessing/Portfile
diff --git a/python/py-pyphant-imageprocessing/Portfile b/python/py-pyphant-imageprocessing/Portfile index 5107531..9c46983 100644
a b python.versions 26 27 36 36 if {${name} ne ${subport}} { 37 37 depends_build port:py${python.version}-setuptools 38 38 depends_lib port:py${python.version}-pyphant \ 39 p ort:py${python.version}-pil\39 path:${python.pkgd}/PIL:py${python.version}-Pillow \ 40 40 port:py${python.version}-numpy \ 41 41 port:py${python.version}-scipy 42 42 } -
python/py-pyphant-osc/Portfile
diff --git a/python/py-pyphant-osc/Portfile b/python/py-pyphant-osc/Portfile index e9890f3..e660e63 100644
a b long_description This Toolbox offers various workers for the \ 21 21 homepage http://www.fmf.uni-freiburg.de/service/servicegruppen/sg_wissinfo/projekte/Pyphant 22 22 23 23 platforms darwin 24 # depends_lib p ort:py26-pil24 # depends_lib path:${python.pkgd}/PIL:py${python.version}-Pillow 25 25 26 26 master_sites sourceforge:pyphant 27 27 #master_sites http://pyphant.sourceforge.net/nightly-builds/ -
python/py-pyphant-tools/Portfile
diff --git a/python/py-pyphant-tools/Portfile b/python/py-pyphant-tools/Portfile index 9d2c57b..069356d 100644
a b long_description This toolbox currently provides two workers for the \ 21 21 homepage http://www.fmf.uni-freiburg.de/service/servicegruppen/sg_wissinfo/projekte/Pyphant 22 22 23 23 platforms darwin 24 # depends_lib p ort:py26-pil24 # depends_lib path:${python.pkgd}/PIL:py${python.version}-Pillow 25 25 26 26 master_sites sourceforge:pyphant 27 27 # master_sites http://pyphant.sourceforge.net/nightly-builds/