rubenbalde / pyafipws

Automatically exported from code.google.com/p/pyafipws
GNU General Public License v3.0
0 stars 0 forks source link

Cambiar a Pillow por PIL para el módulo PyI25 #86

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hola!

Estaría bueno pasar a usar Pillow en vez de PIL ya que el último ha sido 
descontinuado. 

cita de wikipedia (14/10/2014):
"""
Development appears to be discontinued with the last commit to the PIL 
repository coming in 2011.[3] Consequently, a successor project called Pillow 
has forked the PIL repository and added Python 3.x support.[4] This fork has 
been adopted as a replacement for the original PIL in Linux distributions 
including Debian[5] and Ubuntu (since 13.04).[6]
"""

Explicación como cambiar el código de PIL a Pillow:
https://pypi.python.org/pypi/Pillow/2.2.1#port-existing-pil-based-code-to-pillow

Cambiar de:

 import Image

a:

 from PIL import Image

Saludos!
Luciano Rossi
gcoop.coop

Original issue reported on code.google.com by rossi.lu...@gmail.com on 14 Oct 2014 at 2:20

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hecho en ra0b607a925d6 y ajustado el instalador en r14c539dd0fa1 (aparentemente 
py2exe no detecta automáticamente los módulos de Pillow, si lo hace para PIL 
original)

También lo modifique en el "requirements.txt" agregado recientementem para 
facilitar los desarrollos/pruebas con pip y virtualenv: r0e4bd8f27f83

Aparte de que PIL parece haber sido discontinuado, agrego otras ventajas:

 * Pillow se puede instalar por pip (PIL no, requiere fuentes externas no seguras, etc...)
 * los binarios de PIL no están actualizados (la versión para Python 2.7 aparentemente esta compilada con un runtime anterior de MSVC9 lo que trae algunos problemas al armar el "instalador" en Windows)

PD: para la próxima,si quieren avísenme y les doy acceso commiter, así no 
tienen que esperar que yo tenga tiempo para hacer este tipo de ajustes. desde 
ya se agradece si pueden probarlo y reportar futuras incidencias

Original comment by reingart@gmail.com on 24 Jan 2015 at 12:40