
Hi, I'm following this guide: http://docs.scipy.org/doc/numpy-dev/f2py/getting-started.html#the-quick-and-... 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

On Tue, Jul 5, 2016 at 9:18 PM, klo uo <klonuo@gmail.com> wrote:
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

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

On Tue, Jul 5, 2016 at 9:18 PM, klo uo <klonuo@gmail.com> wrote:
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

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
participants (2)
-
klo uo
-
Ralf Gommers