Public bug reported:

Binary package hint: python-numeric

Ubuntu release:
Description:    Ubuntu 8.04
Release:        8.04

In 8.04, python-numeric contains devel files as well as the Numeric
module. In that case, python-numeric should depend on python-devel,
otherwise compilation of Numeric python c-extensions fails due to
missing typedefs that should be provided via Python.h.

Additionally, /usr/include/python2.5/arrayobject.h depends on definitions in 
Python.h, but does not include it.
/usr/include/python2.5/arrayobject.h shoud be patched to contain:

----------------------
#ifndef Py_PYTHON_H
include <Pyhton.h>
#endif
----------------------

compilation error messages look like:
----------------------
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/usr/include/python2.5 -c src/geoext.c -o 
build/temp.linux-x86_64-2.5/src/geoext.o
src/geoext.c:1:20: error: Python.h: No such file or directory
In file included from src/geoext.c:2:
/usr/include/python2.5/Numeric/arrayobject.h:23: error: expected ‘=’, ‘,’, ‘;’, 
‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/include/python2.5/Numeric/arrayobject.h:24: error: expected ‘)’ before ‘*’ 
token
/usr/include/python2.5/Numeric/arrayobject.h:29: error: expected 
specifier-qualifier-list before ‘PyArray_GetItemFunc’
/usr/include/python2.5/Numeric/arrayobject.h:49: error: expected 
specifier-qualifier-list before ‘PyObject_HEAD’
/usr/include/python2.5/Numeric/arrayobject.h:71: error: expected 
specifier-qualifier-list before ‘Py_intptr_t’
src/geoext.c:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before 
‘*’ token
src/geoext.c:53: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before 
‘*’ token
src/geoext.c:128: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ 
before ‘*’ token
src/geoext.c:176: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ 
before ‘*’ token
src/geoext.c:229: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ 
before ‘*’ token
src/geoext.c:311: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ 
before ‘GeoExtMethods’
src/geoext.c:327: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ 
before ‘initgeoext’
----------------------


I suggest to either split off devel files from python-numeric into a devel 
package with appropriate dependencies, or fix the dependencies of 
python-numeric to include python-dev.

Furthermore, patch /usr/include/python2.5/arrayobject.h as described
above.

This may also affect Python 2.4.

Affected package versions are:

python-numeric:
  Installed: 24.2-8ubuntu2
  Candidate: 24.2-8ubuntu2
  Version table:
 *** 24.2-8ubuntu2 0
        500 http://de.archive.ubuntu.com hardy/main Packages
        100 /var/lib/dpkg/status

python:
  Installed: 2.5.2-0ubuntu1
  Candidate: 2.5.2-0ubuntu1
  Version table:
 *** 2.5.2-0ubuntu1 0
        500 http://de.archive.ubuntu.com hardy/main Packages
        100 /var/lib/dpkg/status

** Affects: python-numeric (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: build dependency numeric python

-- 
python-numeric dependency error
https://bugs.launchpad.net/bugs/240390
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to