Discussion:
[Numpy-discussion] f2py output module name
klo uo
2016-07-05 19:18:56 UTC
Permalink
Hi, I'm following this guide:
http://docs.scipy.org/doc/numpy-dev/f2py/getting-started.html#the-quick-and-smart-way

I'm on Windows with gfortran and VS2015. When I run:

f2py -c -m fib3 fib3.f

as output I dont get "fib3.pyd", but "fib3.cp35-win_amd64.pyd".

Does anyone know how to get correctly named module in this case?


Thanks
Ralf Gommers
2016-07-05 19:59:07 UTC
Permalink
Post by klo uo
http://docs.scipy.org/doc/numpy-dev/f2py/getting-started.html#the-quick-and-smart-way
f2py -c -m fib3 fib3.f
as output I dont get "fib3.pyd", but "fib3.cp35-win_amd64.pyd".
Does anyone know how to get correctly named module in this case?
That is the right output, see https://www.python.org/dev/peps/pep-3149. You
can check the expected extension tag with
`sysconfig.get_config_var('SOABI')`.

There may be a way to turn that off, but why would you?

Ralf
klo uo
2016-07-05 20:14:21 UTC
Permalink
So on Linux too, there is "ABI" suffix too, for generated module...

I misunderstood. I was renaming generated module to "fib3.pyd" to be able
to do "import fib3", but now I see it's not necessary - it's importable the
same regardless the name of generated module :)


Thanks

Loading...