[Usuarios Plone] Habilitar soporte a SSL para Python 2.4 con buildout.python

Franco Pellegrini frapell at gmail.com
Fri Jul 19 19:46:20 UTC 2013


Hola muchachos, este es un error conocido, pueden ver el bug en
https://github.com/collective/buildout.python/issues/8

Parece que se prefiere el uso de un ppa en lugar de el patch que dylan
propone... de todas maneras, yo sigo prefiriendo compilar a mano, asi que
lo hice andar de la siguiente manera:

Primero ponen el patch como esta ahi en un archivo dentro de la carpeta
"src/" del buildout.python, y lo nombran como quieren, yo lo
nombre python-2.4-ubuntu-precise.patch

luego editan src/python24.cfg y agregan una entrada de la siguiente manera:

[python-2.4-build:linux2-ubuntu-precise]
<= python-2.4-build:default
patch = ${buildout:python-buildout-root}/python-2.4-ubuntu-precise.patch
patch_options = --ignore-whitespace -p0

Luego corren buildout y deberian tener python con soport ssl listo...

Notas:
 - Tengan en cuenta que el 'linux2-ubuntu-precise'  en el nombre de la
seccion, corresponde a alguno de los nombres que el buildout reconozca de
su plataforma, esto lo pueden ver si corren ./bin/buildout -v , en una de
las primeras lineas, se puede observar:

Detected these platforms: linux2-ubuntu-precise, linux2-ubuntu-12.04,
default

Ustedes puede que obtengan otros resultados.... usen cualquiera de ellos
(excepto el default, claro ;) )

- Si es un buildout que ya han utilizado, borren las carpetas bin y el
contenido de parts y los /tmp con los builds anteriores por las dudas,
antes de volver a correr bootstrap.py y buildout.


Habria que revisar bien por que este fix no se incluye por defecto y ver de
hacerlo...

Saludos y suerte!



On Wed, Jul 17, 2013 at 7:39 PM, Manuel Gualda Caballero <manuel en minombre.es
> wrote:

>  Noe: Interesante y útil.
>
> Gracias por compartirlo.
>
> \ ;-)
>
> El 17/07/13 06:28, Leonardo Caballero escribió:
>
> Gracias Noe
>
>  Voy a revisar con esa que me dices :)
>
>
> 2013/7/15 Noe Nieto <nnieto en noenieto.com>
>
>>   Hola Leo.
>>
>>  En Webfaction tuve que parchar Zope2 para que pudiera andar una
>> instalación de Plone 4.1 con SSL.
>>
>> Acá la docu:
>> http://docs.webfaction.com/software/zope-and-plone/configuring.html#using-zope-over-https
>>
>>  Ahí tambien viene dónde descargar el parche.
>>
>>  HTH
>>
>>
>> 2013/7/15 Leonardo Caballero <leonardocaballero en gmail.com>
>>
>>>   Hola Plonistas
>>>
>>>  Estoy usando buildout.python [0] para compilar Python 2.4 para unos
>>> proyectos que están aun con Plone 3.3.x :/
>>>
>>>  El problema es que buildout.python me genera mi interprete mas no me da
>>> soporte a SSL y cuando requiero descargar un paquete Egg desde un sitio con
>>> https
>>>
>>> changing mode of
>>> /home/macagua/pythons/parts/opt/lib/python2.4/lib-dynload/ to 755
>>> running install_scripts
>>> copying build/scripts-2.4/pydoc -> /home/macagua/pythons/parts/opt/bin
>>> copying build/scripts-2.4/idle -> /home/macagua/pythons/parts/opt/bin
>>> copying build/scripts-2.4/smtpd.py -> /home/macagua/pythons/parts/opt/bin
>>> changing mode of /home/macagua/pythons/parts/opt/bin/pydoc to 755
>>> changing mode of /home/macagua/pythons/parts/opt/bin/idle to 755
>>> changing mode of /home/macagua/pythons/parts/opt/bin/smtpd.py to 755
>>> if test -f /home/macagua/pythons/parts/opt/bin/python -o -h
>>> /home/macagua/pythons/parts/opt/bin/python; \
>>>     then rm -f /home/macagua/pythons/parts/opt/bin/python; \
>>>     else true; \
>>>     fi
>>> (cd /home/macagua/pythons/parts/opt/bin; ln python2.4 python)
>>> /usr/bin/install -c -m 644 ./Misc/python.man \
>>>         /home/macagua/pythons/parts/opt/man/man1/python.1
>>> Installing virtualenv172.
>>> Searching cache at /home/macagua/.buildout/downloads/
>>> Using cache file
>>> /home/macagua/.buildout/downloads/9b6c8541e881368cf1f4b9a04d6b14e7
>>> virtualenv172: Extracting package to
>>> /home/macagua/pythons/parts/virtualenv172
>>> Installing python-2.4-virtualenv.
>>> Installing python-2.4.
>>> python-2.4: Running '
>>> /home/macagua/pythons/bin/virtualenv-2.4 /home/macagua/pythons/python-2.4
>>> /home/macagua/pythons/python-2.4/bin/easy_install -U collective.dist'
>>> New python executable in /home/macagua/pythons/python-2.4/bin/python2.4
>>> Also creating executable in /home/macagua/pythons/python-2.4/bin/python
>>> Installing
>>> distribute.................................................................................................................................................................................................done.
>>> Installing pip................done.
>>> Searching for collective.dist
>>> Reading http://pypi.python.org/simple/collective.dist/
>>> Download error on http://pypi.python.org/simple/collective.dist/:
>>> unknown url type: https -- Some packages may not be found!
>>> Reading http://pypi.python.org/simple/collective.dist/
>>> Download error on http://pypi.python.org/simple/collective.dist/:
>>> unknown url type: https -- Some packages may not be found!
>>> Couldn't find index page for 'collective.dist' (maybe misspelled?)
>>> Scanning index of all packages (this may take a while)
>>> Reading http://pypi.python.org/simple/
>>> Download error on http://pypi.python.org/simple/: unknown url type:
>>> https -- Some packages may not be found!
>>> No local packages or download links found for collective.dist
>>> error: Could not find suitable distribution for
>>> Requirement.parse('collective.dist')
>>> python-2.4: Non zero exit code (1) while running command.
>>> While:
>>>   Installing python-2.4.
>>>
>>> Error: Non zero exit code (1) while running command.
>>>
>>>  Ya tengo instalando los paquetes openssl libssl-dev
>>>
>>>  Alguna idea?
>>>
>>> [0] https://github.com/collective/buildout.python
>>>
>>> --
>>> Atentamente
>>>
>>> T.S.U. Leonardo Caballero
>>> Linux Counter ID = https://linuxcounter.net/user/369081.html
>>> Key fingerprint = 9FD2 DC71 38E7 A1D1 57F5  1D29 04DE 43BC 8A27 424A
>>>
>>> /me Corriendo Debian Wheezy y Canaina GNU/Linux 3
>>> /me Cree "El Conocimiento Humano le Pertenece al Mundo"
>>>
>>>  _______________________________________________
>>> Usuarios-Plone mailing list
>>> Usuarios-Plone en lists.plone.org
>>> https://lists.plone.org/mailman/listinfo/plone-usuarios-plone
>>>
>>>
>>
>>
>> --
>> ---
>> Noe Nieto
>> NNieto Consulting Services
>> M: nnieto en noenieto.com
>> W: http://noenieto.com
>> T:  @tzicatl <https://twitter.com/#%21/tzicatl>
>> Li: Perfil en LinkedIn <http://www.linkedin.com/profile/view?id=84300665>
>>
>> _______________________________________________
>> Usuarios-Plone mailing list
>> Usuarios-Plone en lists.plone.org
>> https://lists.plone.org/mailman/listinfo/plone-usuarios-plone
>>
>>
>
>
>  --
> Atentamente
>
> T.S.U. Leonardo Caballero
> Linux Counter ID = https://linuxcounter.net/user/369081.html
> Key fingerprint = 9FD2 DC71 38E7 A1D1 57F5  1D29 04DE 43BC 8A27 424A
>
> /me Corriendo Debian Wheezy y Canaina GNU/Linux 3
> /me Cree "El Conocimiento Humano le Pertenece al Mundo"
>
>
> _______________________________________________
> Usuarios-Plone mailing listUsuarios-Plone en lists.plone.orghttps://lists.plone.org/mailman/listinfo/plone-usuarios-plone
>
>
>
> _______________________________________________
> Usuarios-Plone mailing list
> Usuarios-Plone en lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-usuarios-plone
>
>
------------ pr�xima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://lists.plone.org/pipermail/plone-usuarios-plone/attachments/20130719/3b0dc7e2/attachment.html>


More information about the Usuarios-Plone mailing list