abhilekhsingh / gc3pie

Automatically exported from code.google.com/p/gc3pie
0 stars 0 forks source link

Package `numpy` is not correctly installed by distutils #361

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an empty virtualenv
2. Install gc3pie from the source (trunk) using "python setup.py develop"

What is the expected output? What do you see instead?

The distutils module should install and compile all the dependencies, including 
numpy. However, it fails compiling `numpy`. Part of the output is:

_configtest.c:1:5: warning: conflicting types for built-in function ‘exp’ 
[enabled by default]
_configtest.o: In function `main':
/tmp/easy_install-UrFZU3/numpy-1.6.2/_configtest.c:6: undefined reference to 
`exp'
collect2: error: ld returned 1 exit status
_configtest.o: In function `main':
/tmp/easy_install-UrFZU3/numpy-1.6.2/_configtest.c:6: undefined reference to 
`exp'
collect2: error: ld returned 1 exit status
don't know how to compile Fortran code on platform 'posix'
don't know how to compile Fortran code on platform 'posix'
_configtest.c:1:5: warning: conflicting types for built-in function ‘exp’ 
[enabled by default]
don't know how to compile Fortran code on platform 'posix'
don't know how to compile Fortran code on platform 'posix'
_configtest.c:1:20: fatal error: Python.h: No such file or directory
compilation terminated.

Please note that among other things it's unable to find the python include file 
`Python.h`, which is actually present in /usr/include/python2.7, and note also 
that installing numpy using `pip` from the same virtualenv works fine. So 
distutils seems to mess up things while installing `numpy` and make the 
configure script unable to guess the correct options to use for gcc.

.a.

Original issue reported on code.google.com by arcimbo...@gmail.com on 8 Nov 2012 at 10:08

GoogleCodeExporter commented 9 years ago
Numpy has been removed from the dependencies since it's not a direct 
requirement of gc3pie: one can run GC3Pie scripts without numpy as long as he 
does not use the gc3libs.optimizer module.

I'm changing the status to "wontfix" since we don't actually fix anything.

(note: installing numpy module using pip works fine, so there probably is a bug 
in distutils)

Original comment by antonio....@gmail.com on 28 Jan 2013 at 3:46