aradi / fypp

Python powered Fortran preprocessor
http://fypp.readthedocs.io
BSD 2-Clause "Simplified" License
180 stars 30 forks source link

fypp with pypy throwing a FyppFatalError/NameError #32

Open MuellerSeb opened 10 months ago

MuellerSeb commented 10 months ago

When using fypp with pypy, I get the following strange error:

common.fypp:66: error: exception occurred when setting variable(s) 'VERSION90' to 'defined('VERSION90')' [FyppFatalError]
  error: name 'defined' is not defined [NameError]

(file from Fortran stdlib)

Don't know what goes wrong here...

MuellerSeb commented 10 months ago

Some more context:

This happens on a conda-forge feedstock but only for aarch64 and ppc64le platforms with this docker: quay.io/condaforge/linux-anvil-cos7-x86_64

See here for reference: https://github.com/conda-forge/mhm-feedstock/pull/15

aradi commented 10 months ago

Thanks, it seems I can reproduce it, after installing pypy with Conda on x86/Linux, I get the same error message. I have not the slightest idea, why this happens, I'd have to check the details...