f2py release 5 coming soon (was Re: [f2py] Wrapping simple Fortranroutine on Windows using VisualStudio)

Herb Schilling Herbert.W.Schilling@grc.nasa.gov
Fri, 4 Jan 2002 15:30:40 -0500


>Note that f2py.bat that will be generated in Python21/Scripts under
>Windows is not tested. Please, if you can fix it, send it me too.

Hi Pearu,

  I think I fixed up the bat file. I don't really know DOS Batch 
language either but I found a good site that helped me:

http://www.robvanderwoude.com/batchfiles.html

The section on command line parameters was a big help!

Anyway, here is the bat file that works for me, at least as far as it 
running things correctly.

@echo off
rem WARNING: This batch file is untested.
rem Please correct it and send a patch to pearu@cens.ioc.ee
  set sys_argv=
:Loop
if "%1"=="" GOTO Continue
set sys_argv=%sys_argv% %1
SHIFT
GOTO Loop
:Continue
  D:\PYTHON\PYTHON.EXE -c "import f2py2e;f2py2e.main()" %sys_argv%

-- 
---------------------------------
Herb Schilling
NASA Glenn Research Center
Cleveland, OH 44135
Herbert.W.Schilling@grc.nasa.gov

Irish wish: "May you live to be 100, plus an extra year to repent"