Dear Tore, I think the issue you're having is that bzr-0.16 requires, syntax-wise, Python 2.4 or greater, but your pycentral is configured to install things for Python2.3. Specifically, the postinst file generated by dh_pycentral calls each Python interpreter to compile the bytecode of each source file. (I don't know if there's a way to tell pycentral not to use Python2.3, but we can ask how if indeed this is the problem you're facing.) What is the output of "pycentral showversions"?
FWIW, I built a version of python-bzr_0.16.0-1_all.deb using more-or-less the commands you issued just now on Ubuntu Edgy. Upon installing it, all went well, and I didn't get the issues you're having. Also, I just added a section "A complete example" to the webpage http://stdeb.python-hosting.com/ using your package as an example. This works fine on my system. Tore Ferner wrote: > Hi, > > stdeb seems like a good idea... > > I tried to use 0.2.a1 on bzr > http://bazaar-vcs.org/releases/src/bzr-0.16.tar.gz > and got the error message below. > I run Debian unstable; I've paused upgrading since just after Etch was > released. At the end you can see my installed python modules. > On my system python equals python2.4, but for some things python2.3 is > used (for some reason unknown to me, but it has worked fine so far). > > Generated thus: > > python -c "import stdeb; execfile('setup.py')" sdist_dsc > cd deb_dist/bzr-0.16.0/ > dpkg-buildpackage -tc > dpkg -i ../python-bzr_0.16.0-1_all.deb > > Best regards > Tore > > > > (Reading database ... 242979 files and directories currently installed.) > Preparing to replace python-bzr 0.16.0-1 (using > python-bzr_0.16.0-1_all.deb) ... > INFO: using old version '/usr/bin/python2.3' > INFO: using unsupported version '/usr/bin/python2.5' > Unpacking replacement python-bzr ... > Setting up python-bzr (0.16.0-1) ... > Compiling > /usr/lib/python2.3/site-packages/bzrlib/benchmarks/tree_creator/__init__.py > ... > File > "/usr/lib/python2.3/site-packages/bzrlib/benchmarks/tree_creator/__init__.py", > line 25 > from bzrlib import ( > ^ > SyntaxError: invalid syntax > _______________________________________________ Distutils-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/distutils-sig
