[Python-apps-team] Bug#627773: cython: not available in python 2.7

Michal Suchanek michal.suchanek at ruk.cuni.cz
Tue May 24 12:45:03 UTC 2011


Package: cython
Version: 0.12.1-1.1
Severity: normal


Cython packages can't bu built with python 2.7, Pyrex can.

Replacing Pyrex with Cython like this:

diff -ur parti-all-0.0.6+dfsg/debian/control parti-all-0.0.6+dfsg.cython/debian/control
--- parti-all-0.0.6+dfsg/debian/control 2010-12-30 11:40:10.000000000 +0100
+++ parti-all-0.0.6+dfsg.cython/debian/control  2011-05-24 14:31:17.000000000 +0200
@@ -4,7 +4,7 @@
 Maintainer: Python Applications Packaging Team <python-apps-team at lists.alioth.debian.org>
 Uploaders: أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy at sabily.org>,
  Miguel Landaeta <miguel at miguel.cc>
-Build-Depends: debhelper (>= 7.0.50~), libx11-dev, libxtst-dev, libxcomposite-dev, libxdamage-dev, python-all-dev (>= 2.6.6-2), python-pyrex, python-gobject-dev, python-gtk2-dev
+Build-Depends: debhelper (>= 7.0.50~), libx11-dev, libxtst-dev, libxcomposite-dev, libxdamage-dev, python-all-dev (>= 2.6.6-2), cython, python-gobject-dev, python-gtk2-dev
 X-Python-Version: all
 Standards-Version: 3.9.1
 Homepage: http://partiwm.org/
Only in parti-all-0.0.6+dfsg.cython/debian: control~
diff -ur parti-all-0.0.6+dfsg/setup.py parti-all-0.0.6+dfsg.cython/setup.py
--- parti-all-0.0.6+dfsg/setup.py       2009-03-22 10:34:43.000000000 +0100
+++ parti-all-0.0.6+dfsg.cython/setup.py        2011-05-24 14:31:36.000000000 +0200
@@ -15,7 +15,7 @@
 
 from distutils.core import setup
 from distutils.extension import Extension
-from Pyrex.Distutils import build_ext
+from Cython.Distutils import build_ext
 import commands, os
 
 # Tweaked from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/502261


leads to build error:

dpkg-buildpackage: host architecture amd64
 dpkg-source --before-build parti-all-0.0.6+dfsg.cython
 fakeroot debian/rules clean
dh clean --with python2
   dh_testdir
   dh_auto_clean
Traceback (most recent call last):
  File "setup.py", line 18, in <module>
    from Cython.Distutils import build_ext
ImportError: No module named Cython.Distutils
dh_auto_clean: python2.7 setup.py clean -a returned exit code 1
make: *** [clean] Error 1

Since Cython is supposed to be a Pyrex replacement this is a regression compared to Pyrex features.


-- System Information:
Debian Release: 6.0.1
  APT prefers stable
  APT policy: (900, 'stable'), (510, 'unstable'), (500, 'testing'), (200, 'experimental'), (111, 'oldstable'), (107, 'natty')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cython depends on:
ii  libc6                         2.11.2-10  Embedded GNU C Library: Shared lib
ii  python                        2.6.6-14   interactive high-level object-orie
ii  python-support                1.0.13     automated rebuilding support for P
ii  python2.6                     2.6.6-8+b1 An interactive high-level object-o

cython recommends no packages.

Versions of packages cython suggests:
ii  gcc                           4:4.4.5-1  The GNU C compiler

-- no debconf information





More information about the Python-apps-team mailing list