Commit d797bbce authored by Łukasz Nowak's avatar Łukasz Nowak

- use zc.recipe.egg to generate python2.4 instead of just linking (thanks Leonardo)

 - reuse such generated python in deployment
 - assert if such generated python is able to import all needed libraries


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32874 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 879b6bba
......@@ -7,7 +7,7 @@ bin/buildout:
# run make assert to check that all is working
assert: assert-software
assert-software: assert-python2.4 assert-eggs-2.4 assert-parts-libs
assert-software: assert-python2.4 assert-parts-libs
assert-python2.4: bin/python2.4
bin/python2.4 -c 'import _ssl'
......@@ -15,27 +15,24 @@ assert-python2.4: bin/python2.4
bin/python2.4 -c 'import dbm'
bin/python2.4 -c 'import xml.parsers.expat'
bin/python2.4 -c 'import zlib'
assert-eggs-2.4:
ls -d eggs/erp5diff-*-py2.4.egg
ls -d eggs/fpconst-*-py2.4.egg
ls -d eggs/lxml-*-py2.4-*-*.egg
ls -d eggs/numpy-*-py2.4-*-*.egg
ls -d eggs/python_ldap-*-py2.4-*-*.egg
ls -d eggs/python_memcached-*-py2.4.egg
ls -d eggs/pytz-*-py2.4.egg
ls -d eggs/PyXML-*-py2.4-*-*.egg
ls -d eggs/simplejson-*-py2.4-*-*.egg
ls -d eggs/SOAPpy-*-py2.4.egg
ls -d eggs/threadframe-*-py2.4-*-*.egg
ls -d eggs/timerserver-*-py2.4.egg
ls -d develop-eggs/itools-*-py2.4-*-*.egg
ls -d develop-eggs/itools-*-py2.4-*-*.egg
ls -d develop-eggs/MySQL_python-*-py2.4-*-*.egg
ldd develop-eggs/MySQL_python-1.2.3c1-py2.4-linux-x86_64.egg/_mysql.so | grep 'parts/mysql-tritonn-5.0/lib/mysql/libmysqlclient_r.so'
bin/python2.4 -c 'import lxml'
bin/python2.4 -c 'import numpy'
bin/python2.4 -c 'import ldap'
bin/python2.4 -c 'import pytz'
bin/python2.4 -c 'import fpconst'
bin/python2.4 -c 'import memcache'
bin/python2.4 -c 'import threadframe'
bin/python2.4 -c 'import itools'
bin/python2.4 -c 'import MySQLdb'
# erp5diff
# elementtree
# PyXML
# simplejson
# SOAPpy
assert-parts-libs:
ldd parts/mysql-tritonn-5.0/libexec/mysqld | grep 'parts/senna/lib/libsenna.so.0'
ldd develop-eggs/MySQL_python-1.2.3c1-py2.4-linux-x86_64.egg/_mysql.so | grep 'parts/mysql-tritonn-5.0/lib/mysql/libmysqlclient_r.so'
ldd parts/memcached/bin/memcached | grep 'parts/libevent/lib/libevent'
create-mandriva2010-rpm: bin/buildout
......
......@@ -23,3 +23,4 @@ supervisor_programs =
[software_definition]
software_home = /opt/erp5
executable = ${:software_home}/bin/python2.4
......@@ -28,7 +28,6 @@ find-links =
http://www.nexedi.org/static/packages/source/
parts =
pythonbin
eggs
apache
memcached
......@@ -47,6 +46,7 @@ parts =
bt5-erp5
openoffice-bin
oood
pythonbin
[show-requirements]
recipe = plone.recipe.command
......
......@@ -31,9 +31,13 @@ configure-options =
patches = ${python2.4-dbm-patch:location}/${python2.4-dbm-patch:filename}
[pythonbin]
depends = ${python:recipe}
recipe = plone.recipe.command
command = ln -sf ${software_definition:executable} ${software_definition:software_home}/bin/python${buildout:python_version}
recipe = zc.recipe.egg
eggs = ${eggs:eggs}
interpreter = python${buildout:python_version}
dependent-scripts = true
scripts =
python=${:interpreter}
ipython=ipython${buildout:python_version}
[requirements]
binary =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment