Opened 12 years ago
Closed 12 years ago
#38912 closed enhancement (fixed)
py*-opengl: support python 3.x with py${python.version}-Pillow
Reported by: | mamoll (Mark Moll) | Owned by: | jmroot (Joshua Root) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | py-opengl |
Description
Pillow is a fork of pil that includes support for python3. Allowing py32-Pillow to satisfy the py32-pil dependency is another option, but I don't see how you'd do that. Py32-opengl installs just fine with these small changes:
Index: Portfile =================================================================== --- Portfile (revision 105524) +++ Portfile (working copy) @@ -26,11 +26,11 @@ rmd160 0cbf4bc7c2e9ba59225534085f05ee589b26fc54 \ sha256 9ef93bbea2c193898341f574e281c3ca0dfe87c53aa25fbec4b03581f6d1ba03 -python.versions 24 25 26 27 +python.versions 24 25 26 27 32 33 if {$subport != $name} { depends_build port:py${python.version}-distribute - depends_lib port:py${python.version}-pil \ + depends_lib port:py${python.version}-Pillow \ port:py${python.version}-opengl-accelerate \ port:py${python.version}-tkinter if {${python.version} == 24} {
Change History (5)
comment:1 Changed 12 years ago by larryv (Lawrence Velázquez)
Keywords: | python3 pil removed |
---|---|
Owner: | changed from jmr to jmr@… |
Summary: | replace py${python.version}-pil with py${python.version}-Pillow → py*-opengl: replace py${python.version}-pil with py${python.version}-Pillow |
comment:2 Changed 12 years ago by jmroot (Joshua Root)
comment:3 Changed 12 years ago by mamoll (Mark Moll)
I tried py27-OpenGL with py27-Pillow and that seems to work just fine. It tried to find what you are talking about, but I can't find it.
comment:4 Changed 12 years ago by jmroot (Joshua Root)
https://github.com/python-imaging/Pillow/blob/master/README.rst is what I was referring to:
To run your existing PIL-compatible code with Pillow, it needs to be modified to import the Imaging module from the PIL namespace instead of the global namespace.
Note If your code imports _imaging, it will no longer work.
comment:5 Changed 12 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Summary: | py*-opengl: replace py${python.version}-pil with py${python.version}-Pillow → py*-opengl: support python 3.x with py${python.version}-Pillow |
Type: | defect → enhancement |
Version: | 2.1.3 |
Note: See
TracTickets for help on using
tickets.
Have you tested that it works after installing? The pillow readme says that the module needs to be imported slightly differently.
I'll probably go with pillow only for python 3.x.