[Cython] Cython 0.9.8 released
Ondrej Certik
ondrej at certik.cz
Sun Jul 20 14:09:45 CEST 2008
On Sun, Jul 20, 2008 at 2:02 PM, Ondrej Certik <ondrej at certik.cz> wrote:
> On Sun, Jul 20, 2008 at 1:58 PM, Ondrej Certik <ondrej at certik.cz> wrote:
>> On Sun, Jul 20, 2008 at 1:31 PM, Stefan Behnel <stefan_ml at behnel.de> wrote:
>>> Hi,
>>>
>>> Ondrej Certik wrote:
>>>> Why is cython now compiling Cython.Plex.Scanners with gcc but not
>>>> installing it with setup.py install?
>>>
>>> It should get installed automatically by distutils.
>>>
>>> It gets compiled because that makes it faster. It's a purely optional feature.
>>>
>>>
>>>> Is this a bug with Cython or on my side? I am just using the same
>>>> Debian package as I was using for all previous cython versions, but
>>>> suddenly it fails to build, because it depends on python-dev. So I
>>>> added python-dev to build-depends, it builds, it works, but the
>>>> Cython/Plex/Scanners.so is not installed in the final package. What's
>>>> wrong?
>>>
>>> Any error output?
>>
>> No, all is fine. It just doesn't install.
>>
>>>
>>>
>>>> Should I upload the package as it is, i.e. without the Scanners.so
>>>> file? I tested it on some simple .pyx files and it seems to work.
>>>
>>> You can, but I would prefer having that in.
>>
>> Yes, me too.
>>
>>>
>>>
>>>> I'd like to get this resolved in about 5 hours, so that I can upload
>>>> before today's dinstall run, so that Tim can build Sage in Debian with
>>>> it.
>>>
>>> Please provide some more details.
>>
>> The build log attached. When installing the package, here is the list of files:
>
> Ok, I just tried that manually with
>
> setup.py install --home=.
>
> and it does install the .so file. So the packaging just needs to be
> changed. Here is the debian/rules:
>
> #!/usr/bin/make -f
> # -*- makefile -*-
>
> DEB_PYTHON_SYSTEM=pysupport
>
> include /usr/share/cdbs/1/rules/debhelper.mk
> include /usr/share/cdbs/1/class/python-distutils.mk
>
> install/cython::
> dh_installman debian/cython.1
>
>
>
> Let me investigate some options. BTW, if you want to help maintaining
> the Debian package, here is the svn:
>
> Vcs-Svn: svn://svn.debian.org/svn/python-apps/packages/cython/trunk
> Vcs-Browser: http://svn.debian.org/wsvn/python-apps/packages/cython/trunk/?op=log
I think this patch needs to be applied:
Index: debian/control
===================================================================
--- debian/control (revision 1584)
+++ debian/control (working copy)
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: Python Applications Packaging Team
<python-apps-team at lists.alioth.debian.org>
Uploaders: Ondrej Certik <ondrej at certik.cz>
-Build-Depends: cdbs (>= 0.4.49), debhelper (>= 5.0.38), python (>= 2.4.4-6)
+Build-Depends: cdbs (>= 0.4.49), debhelper (>= 5.0.38), python (>=
2.4.4-6), python-dev (>= 2.4.4-6)
Build-Depends-Indep: python-support (>= 0.7.5)
Standards-Version: 3.8.0
Homepage: http://cython.org/
@@ -12,7 +12,7 @@
XS-DM-Upload-Allowed: yes
Package: cython
-Architecture: all
+Architecture: any
Depends: ${python:Depends}, ${misc:Depends}
Suggests: gcc
XB-Python-Version: ${python:Versions}
However, the cython build fails then:
cd . && python2.4 setup.py build --build-base="/tmp/buildd/cython-0.9.8/./build"
/bin/sh: python2.4: command not found
make: *** [python-build-stamp-2.4] Error 127
Now I am investigating why. python2.4 is not called from Cython, so
it's seems some Debian thing. CCing to Tim -- I am quite busy today, I
really need to work on my thesis, so I'd appreciate any help with
this.
Ondrej
More information about the Cython-dev
mailing list