collective/buildout.python

error building python2.4 on Ubuntu 12.04

Closed this issue · 4 comments

When building python2.4 on Ubuntu 12.04 I am getting the following error:

Installing python-2.4.
python-2.4: Running '
/ebs/python/bin/virtualenv-2.4 /ebs/python/python-2.4
/ebs/python/python-2.4/bin/easy_install -U collective.dist'
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "/ebs/python/parts/virtualenv/virtualenv.py", line 2270, in ?
main()
File "/ebs/python/parts/virtualenv/virtualenv.py", line 928, in main
never_download=options.never_download)
File "/ebs/python/parts/virtualenv/virtualenv.py", line 1029, in create_environment
site_packages=site_packages, clear=clear))
File "/ebs/python/parts/virtualenv/virtualenv.py", line 1180, in install_python
import site
File "/ebs/python/parts/buildout/site.py", line 151
with f:
^
SyntaxError: invalid syntax
/bin/sh: 3: /ebs/python/python-2.4/bin/easy_install: not found
python-2.4: Non zero exit code (127) while running command.
While:
Installing python-2.4.

Error: Non zero exit code (127) while running command.

As the error states: /ebs/python/python-2.4/bin/easy_install is not found and there is no bin directory in /ebs/python/python-2.4. (/ebs/python/ is the buildout directory).

buildout.python was cloned with: git clone https://github.com/collective/buildout.python.git python command and bootstrapped using the system python (v2.7.3).

build-essential is up to date: build-essential/precise uptodate 11.5ubuntu2

This "with":

File "/ebs/python/parts/buildout/site.py", line 151
with f:

Is Python 2.6+ syntax. Python 2.4 does not understand it. You have somehow Python 2.6 code mixed into Python 2.4 codebase.

this is the version of plon.recipe.zope2instance. make sure to pin it to a version in the 3 branch - 3.6 works I think. I just compiled 24 on oenieric with much pain so ping me if you have more issues.

I did not see the recent addition of the bootstrap-1.4.4.py file for those needing to compile python-2.4. When bootstrapping with this file, the buildout completes as expected.

Perhaps a note should be added to the README.rst file for python-2.4 users?

Added reference to bootstrap-1.4.4.py in docs/INSTALL.txt