igmk / pamtra

Passive and Active Microwave TRAnsfer model
GNU General Public License v3.0
19 stars 16 forks source link

f2py2.7 points to wrong numpy on Ubuntu 20.04 #25

Closed DaveOri closed 3 years ago

DaveOri commented 3 years ago

Makefile favors the use of f2py2.7 over f2py In Ubuntu 20.04 the former is not overwritten by pip installed numpy (probably because pip is not in official repositories anymore), this causes users to have the code compiled against wrong numpy if they follow the installation instructions.

As an easy workaround, all Makefiles should favor f2py (also py_usStandard). This fix does not break the installation on Ubuntu 16.04 and 18.04 since both f2py and f2py2.7 are pointing to the pip installed numpy there.

DaveOri commented 3 years ago

Considering the recent efforts to move to python3 this issue will be soon outdated. Also to keep backward compatibility with other Ubuntu versions the best is to invoke make with overriding variables F2PY=/path/to/the/correct/f2py Closed