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: ...@@ -7,7 +7,7 @@ bin/buildout:
# run make assert to check that all is working # run make assert to check that all is working
assert: assert-software 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 assert-python2.4: bin/python2.4
bin/python2.4 -c 'import _ssl' bin/python2.4 -c 'import _ssl'
...@@ -15,27 +15,24 @@ assert-python2.4: bin/python2.4 ...@@ -15,27 +15,24 @@ assert-python2.4: bin/python2.4
bin/python2.4 -c 'import dbm' bin/python2.4 -c 'import dbm'
bin/python2.4 -c 'import xml.parsers.expat' bin/python2.4 -c 'import xml.parsers.expat'
bin/python2.4 -c 'import zlib' bin/python2.4 -c 'import zlib'
bin/python2.4 -c 'import lxml'
assert-eggs-2.4: bin/python2.4 -c 'import numpy'
ls -d eggs/erp5diff-*-py2.4.egg bin/python2.4 -c 'import ldap'
ls -d eggs/fpconst-*-py2.4.egg bin/python2.4 -c 'import pytz'
ls -d eggs/lxml-*-py2.4-*-*.egg bin/python2.4 -c 'import fpconst'
ls -d eggs/numpy-*-py2.4-*-*.egg bin/python2.4 -c 'import memcache'
ls -d eggs/python_ldap-*-py2.4-*-*.egg bin/python2.4 -c 'import threadframe'
ls -d eggs/python_memcached-*-py2.4.egg bin/python2.4 -c 'import itools'
ls -d eggs/pytz-*-py2.4.egg bin/python2.4 -c 'import MySQLdb'
ls -d eggs/PyXML-*-py2.4-*-*.egg # erp5diff
ls -d eggs/simplejson-*-py2.4-*-*.egg # elementtree
ls -d eggs/SOAPpy-*-py2.4.egg # PyXML
ls -d eggs/threadframe-*-py2.4-*-*.egg # simplejson
ls -d eggs/timerserver-*-py2.4.egg # SOAPpy
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'
assert-parts-libs: assert-parts-libs:
ldd parts/mysql-tritonn-5.0/libexec/mysqld | grep 'parts/senna/lib/libsenna.so.0' 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' ldd parts/memcached/bin/memcached | grep 'parts/libevent/lib/libevent'
create-mandriva2010-rpm: bin/buildout create-mandriva2010-rpm: bin/buildout
......
...@@ -23,3 +23,4 @@ supervisor_programs = ...@@ -23,3 +23,4 @@ supervisor_programs =
[software_definition] [software_definition]
software_home = /opt/erp5 software_home = /opt/erp5
executable = ${:software_home}/bin/python2.4
...@@ -28,7 +28,6 @@ find-links = ...@@ -28,7 +28,6 @@ find-links =
http://www.nexedi.org/static/packages/source/ http://www.nexedi.org/static/packages/source/
parts = parts =
pythonbin
eggs eggs
apache apache
memcached memcached
...@@ -47,6 +46,7 @@ parts = ...@@ -47,6 +46,7 @@ parts =
bt5-erp5 bt5-erp5
openoffice-bin openoffice-bin
oood oood
pythonbin
[show-requirements] [show-requirements]
recipe = plone.recipe.command recipe = plone.recipe.command
......
...@@ -31,9 +31,13 @@ configure-options = ...@@ -31,9 +31,13 @@ configure-options =
patches = ${python2.4-dbm-patch:location}/${python2.4-dbm-patch:filename} patches = ${python2.4-dbm-patch:location}/${python2.4-dbm-patch:filename}
[pythonbin] [pythonbin]
depends = ${python:recipe} recipe = zc.recipe.egg
recipe = plone.recipe.command eggs = ${eggs:eggs}
command = ln -sf ${software_definition:executable} ${software_definition:software_home}/bin/python${buildout:python_version} interpreter = python${buildout:python_version}
dependent-scripts = true
scripts =
python=${:interpreter}
ipython=ipython${buildout:python_version}
[requirements] [requirements]
binary = 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