Open ghost opened 11 years ago
The problem here is python-eventlet which fails to build on squeeze - test suite failure. (python-greenlet is also needed but can be backported). python-eventlet also needs a small tweak to the debian/control to allow it to use the backport of python-greenlet (change Build-Depends python-greenlet (>= 0.3.1-2.1), to python-greenlet (>= 0.3.1-2.1~). 0.3.1-2.1 is the version in testing-proposed-updates.
So as the standard Debian packages cannot be readily backported to Squeeze, a local backport of just the bottle.py may be appropriate if the inclusion of bottle.py in the pybit source tree is deemed to be a problem.
Sample error from python-eventlet which looks like it doesn't like python2.6
======================================================================
FAIL: test_simple (tests.patcher_test.Tpool)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/neil/code/debian/src/python-eventlet/python-eventlet-0.9.16/tests/__init__.py", line 49, in wrapped
return func(*a, **kw)
File "/home/neil/code/debian/src/python-eventlet/python-eventlet-0.9.16/tests/patcher_test.py", line 250, in test_simple
self.assertEqual(len(lines), 3, output)
AssertionError: Traceback (most recent call last):
File "/tmp/tmpDzATMP_patcher_test/newmod.py", line 4, in <module>
patcher.monkey_patch()
File "/home/neil/code/debian/src/python-eventlet/python-eventlet-0.9.16/eventlet/patcher.py", line 236, in monkey_patch
modules_to_patch += _green_thread_modules()
File "/home/neil/code/debian/src/python-eventlet/python-eventlet-0.9.16/eventlet/patcher.py", line 300, in _green_thread_modules
from eventlet.green import threading
File "/home/neil/code/debian/src/python-eventlet/python-eventlet-0.9.16/eventlet/green/threading.py", line 24, in <module>
class _GreenThread(object):
File "/home/neil/code/debian/src/python-eventlet/python-eventlet-0.9.16/eventlet/green/threading.py", line 43, in _GreenThread
@name.setter
AttributeError: 'property' object has no attribute 'setter'
Yes, the version in Squeeze is too old - it has 0.8.4
0.12 is RC 0.11 is stable 0.10 is old stable
So Squeeze has old-old-old-stable, basically. 2-3 years old.
Look at thier github: https://github.com/defnull/bottle (P.S should we add that as a remote?)- so much has changed since then.
No way we can make a branch and support the version in Debian Stable as-is, due to it using different syntax for hooks, routing, templating, and the way it handles mounting bottle/app instances.
Neil, Ubuntu package bottle (Which only depends on python2) and bottle-docs as 2 seperate packages. It would be much better to do it that way for Debian too, as it is the building of the docs, which is a problem on Squeeze.
python-bottle needs to be available for Squeeze at a newer version than in Debian. At the very least, a local backport of python-bottle from Wheezy can be done and ideally this would be uploaded to squeeze-backports too for others to use.
The internal copy of bottle.py then needs to be removed from the release tarball and a suitable dependency added.