-
Notifications
You must be signed in to change notification settings - Fork 5
Description
The file pyratp.pyd
is not working on my configuration and doesn't seem to be built while installing the package with scons.
My processor is a Intel i7-4800MQ 64 bits, with Windows 10. I installed a conda environment with Python 3.7 and the following packages :
- openalea.plantgl
- openalea.sconsx
- sphinx -> it seems like one of the packages installed with Sphinx allows a correct interaction between plantgl and sconsx, otherwise, plantgl is broken.
- openalea.deploy
- numpy, pandas, scipy, matplotlib : last version
Under this conda env, I did this modifications to adapt the code in Python 3 :
print "
->print(
<>
->!=
- setup.py l.12 :
metadata.iteritems()
->metadata.iter()
The command python setup.py install
correctly installs the pakage but without rebuilding the pyratp.pyd
file, only copying it.
The existing pyratp.pyd
seems to be compiled for Python 2, so I tried to build it with f2py
by typing the commands described in src/f90/SConscript :
f2py -m pyratp --overwrite-signature -h [source_64bits]
f2py -c --build-dir . --compiler=mingw32 --fcompiler=gnu95 [sources_64bits]
Where [sources_64bits] are the files written in src/f90/SConscript l.18-32 . The compile command (f2py -c
) ends up with an error :
pyratpmodule.c: 3335: undefined reference to '__intrinsic_setjmpex'
collect2.exe: error: ld returned 1 exit status
I also tried using a conda environnement with Python 2, but openalea.sconsx is no longer available for this version of Python which makes the python setup.py install
command obsolete. Then, when I recreate the pyratp.pyf
file, it calls unknown modules in the environnement so f2py -c
can't build.