[SciPy-dev] binary compatibility question

josef.pktd@gmai... josef.pktd@gmai...
Fri May 15 09:44:28 CDT 2009


On Fri, May 15, 2009 at 10:19 AM,  <josef.pktd@gmail.com> wrote:
> On Fri, May 15, 2009 at 9:39 AM,  <josef.pktd@gmail.com> wrote:
>> I didn't follow the discussion of binary compatibility between
>> different versions very closely.
>>
>> I compiled scipy 0.7.1 against numpy 1.3.0 and ran it in a virtualenv
>> against numpy 1.2.1 and I get an immediate segfault when trying to run
>> scipy.test(). I get the usual 4 failures when I run scipy with numpy
>> 1.3.0
>>
>> Is this expected?
>>
>> (I didn't do it on purpose, the version mismatch was just a
>> consequence of how I wanted to setup my testing environment for scipy
>> 0.7.1 and is easily fixed)
>>
>
> I build scipy 0.7.1 against numpy 1.2.1 (official installer) and I get
> the same segfault. I get it already trying to `import scipy.stats`
>

Just to see if it works, I tried to build scipy trunk against numpy
1.2.1, but this time I get a compiler error

building 'scipy.signal.sigtools' extension
compiling C sources
C compiler: gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes

creating build\temp.win32-2.5\Release\scipy\signal
compile options: '-Ibuild\src.win32-2.5\scipy\signal -IC:\Programs\Python25\lib\
site-packages\numpy\core\include -IC:\Programs\Python25\include -IC:\Programs\Py
thon25\PC -c'
gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes -Ibuild\src.win32-2.5\scipy\signal
 -IC:\Programs\Python25\lib\site-packages\numpy\core\include -IC:\Programs\Pytho
n25\include -IC:\Programs\Python25\PC -c scipy\signal\sigtoolsmodule.c -o build\
temp.win32-2.5\Release\scipy\signal\sigtoolsmodule.o
scipy\signal\sigtoolsmodule.c:161: warning: parameter names (without types) in f
unction declaration
scipy\signal\sigtoolsmodule.c:161: warning: parameter names (without types) in f
unction declaration
scipy\signal\sigtoolsmodule.c:161: error: redefinition of parameter 'NPY_UNUSED'

scipy\signal\sigtoolsmodule.c:161: error: previous definition of 'NPY_UNUSED' wa
s here
scipy\signal\sigtoolsmodule.c:162: warning: parameter names (without types) in f
unction declaration
<....>

So it looks like, I cannot test backports to scipy 0.7.1 against numpy 1.2.1

Josef


More information about the Scipy-dev mailing list