Re: [f2py] Q: no Python27/Scripts directory

Pearu Peterson <[email protected]> Fri, 8 Mar 2013 16:17:24 +0200
Newsgroups gmane.comp.python.f2py.user
Message-ID <CAPpwKcxLhucE5NiP9pVEZxk4AWq=57cjChzZXFF1VydmZSeHaQ@mail.gmail.com>
--===============2606644506024013556==
Content-Type: multipart/alternative; boundary=f46d0444036c7359f804d76a7bd4

--f46d0444036c7359f804d76a7bd4
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Normally one does not need to create f2py.py file, only when it is missing
for whatever reasons.
The usage of f2py.py command looks ok to me (in your case you should use
Python27, of course).
Right now I don't understand what is the issue.

Pearu


On Fri, Mar 8, 2013 at 4:03 PM, Torppa Johanna (GTK)
<[email protected]>wrote:

>  I do not remember creating the f2py.py file myself with the previous
> versions (now I=92ve updated most of the software on my computer). I thin=
k I
> previously only followed the instructions found from the net, and, after
> installing nympy,  gave the command: ****
>
> python c:\Python25\Scripts\f2py.py -c --fcompiler=3Dgnu95 --compiler=3Dmi=
ngw32
> -lmsvcr71 -m <output.pyd> <input.f90>****
>
> to create a .pyd file fo be imported to python. And it worked. Do I not
> remember correctly..?****
>
> ** **
>
> I never even thought what this f2py.py contained. It already was in the
> Scripts directory=85 I think..****
>
> ** **
>
> What should it contain in this case? I mean referring to the command abov=
e.
> ****
>
> ** **
>
> bw, Johanna ****
>
> ** **
>
> ** **
>
> *From:* f2py-users-bounces-Y4l6ocDipWCuvFJfX82//[email protected] [mailto:
> f2py-users-bounces-Y4l6ocDipWCuvFJfX82//[email protected]] *On Behalf Of *Pearu Peterson
> *Sent:* 8. maaliskuuta 2013 14:54
> *To:* For users of the f2py program
> *Subject:* Re: [f2py] Q: no Python27/Scripts directory****
>
> ** **
>
> Hi,
>
> You can just create the f2py.py script and save it where Windows can find
> it, eg c:\Python27\Scripts.****
>
> As minimum, the script should contain the following statements:
>
> from numpy.f2py import main
> main()
>
> ****
>
> HTH,****
>
> Pearu****
>
> ** **
>
> On Fri, Mar 8, 2013 at 1:10 PM, Torppa Johanna (GTK) <
> [email protected]> wrote:****
>
> I=92have Python 2.7.2 and numpy 1.6.1 installed along with ArcGIS 10.1 on=
 my
> Win7 PC. The f2py.py directory is missing, however. I do not find it even
> with the =93search=94 tool. Anyone has an idea what this is all about? Sh=
ould I
> uninstall numpy and install it myself again. But how to do this? There=92=
s no
> uninstall-program in the numpy directory=85 just remove the directory=85?=
****
>
>  ****
>
> Thanks in advance, Johanna****
>
>
> _______________________________________________
> f2py-users mailing list
> f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]
> http://cens.ioc.ee/mailman/listinfo/f2py-users****
>
> ** **
>
> _______________________________________________
> f2py-users mailing list
> f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]
> http://cens.ioc.ee/mailman/listinfo/f2py-users
>
>

--f46d0444036c7359f804d76a7bd4
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div>Normally one does not need to create f2py.py fil=
e, only when it is missing for whatever reasons.<br></div>The usage of f2py=
.py command looks ok to me (in your case you should use Python27, of course=
).<br>
</div><div>Right now I don&#39;t understand what is the issue.<br></div><di=
v><br></div>Pearu<br><div><div><div><div><div class=3D"gmail_extra"><br><br=
><div class=3D"gmail_quote">On Fri, Mar 8, 2013 at 4:03 PM, Torppa Johanna =
(GTK) <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=
=3D"_blank">[email protected]</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">





<div link=3D"blue" vlink=3D"purple" lang=3D"FI">
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang=3D"EN-US">I do not r=
emember creating the f2py.py file myself with the previous versions (now I=
=92ve updated most of the software on my computer). I think I
 previously only followed the instructions found from the net, and, after i=
nstalling nympy, =A0gave the command:
<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang=3D"EN-US">python c:\=
Python25\Scripts\f2py.py -c --fcompiler=3Dgnu95 --compiler=3Dmingw32 -lmsvc=
r71 -m &lt;output.pyd&gt; &lt;input.f90&gt;<u></u><u></u></span></p>

<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang=3D"EN-US">to create =
a .pyd file fo be imported to python. And it worked. Do I not remember corr=
ectly..?<u></u><u></u></span></p>

<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang=3D"EN-US"><u></u>=A0=
<u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang=3D"EN-US">I never ev=
en thought what this f2py.py contained. It already was in the Scripts direc=
tory=85 I think..<u></u><u></u></span></p>

<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang=3D"EN-US"><u></u>=A0=
<u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang=3D"EN-US">What shoul=
d it contain in this case? I mean referring to the command above.<u></u><u>=
</u></span></p>

<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang=3D"EN-US"><u></u>=A0=
<u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang=3D"EN-US">bw, Johann=
a
<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang=3D"EN-US"><u></u>=A0=
<u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang=3D"EN-US"><u></u>=A0=
<u></u></span></p>
<div style=3D"border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm =
0cm 0cm">
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&quot=
;Tahoma&quot;,&quot;sans-serif&quot;" lang=3D"EN-US">From:</span></b><span =
style=3D"font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&q=
uot;" lang=3D"EN-US"> <a href=3D"mailto:f2py-users-bounces-Y4l6ocDipWCuvFJfX82//[email protected]" tar=
get=3D"_blank">f2py-users-bounces-Y4l6ocDipWCuvFJfX82//[email protected]</a> [mailto:<a href=3D"mailto=
:f2py-users-bounces-Y4l6ocDipWCuvFJfX82//[email protected]" target=3D"_blank">f2py-users-bounces@cens.=
ioc.ee</a>]
<b>On Behalf Of </b>Pearu Peterson<br>
<b>Sent:</b> 8. maaliskuuta 2013 14:54<br>
<b>To:</b> For users of the f2py program<br>
<b>Subject:</b> Re: [f2py] Q: no Python27/Scripts directory<u></u><u></u></=
span></p>
</div><div><div class=3D"h5">
<p class=3D"MsoNormal"><u></u>=A0<u></u></p>
<div>
<div>
<div>
<div>
<p class=3D"MsoNormal">Hi,<br>
<br>
You can just create the f2py.py script and save it where Windows can find i=
t, eg c:\Python27\Scripts.<u></u><u></u></p>
</div>
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt">As minimum, the scrip=
t should contain the following statements:<br>
<br>
from numpy.f2py import main<br>
main()<br>
<br>
<u></u><u></u></p>
</div>
<p class=3D"MsoNormal">HTH,<u></u><u></u></p>
</div>
<p class=3D"MsoNormal">Pearu<u></u><u></u></p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><u></u>=A0<u></u></p>
<div>
<p class=3D"MsoNormal">On Fri, Mar 8, 2013 at 1:10 PM, Torppa Johanna (GTK)=
 &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">johanna.tor=
[email protected]</a>&gt; wrote:<u></u><u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang=3D"EN-US">I=92have P=
ython 2.7.2 and numpy 1.6.1 installed along with ArcGIS 10.1 on my Win7 PC.
 The f2py.py directory is missing, however. I do not find it even with the =
=93search=94 tool. Anyone has an idea what this is all about? Should I unin=
stall numpy and install it myself again. But how to do this? There=92s no u=
ninstall-program in the numpy directory=85
 just remove the directory=85?</span><u></u><u></u></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang=3D"EN-US">=A0</span>=
<u></u><u></u></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang=3D"EN-US">Thanks in =
advance, Johanna</span><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><br>
_______________________________________________<br>
f2py-users mailing list<br>
<a href=3D"mailto:f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]" target=3D"_blank">f2py-users@cens=
.ioc.ee</a><br>
<a href=3D"http://cens.ioc.ee/mailman/listinfo/f2py-users" target=3D"_blank=
">http://cens.ioc.ee/mailman/listinfo/f2py-users</a><u></u><u></u></p>
</div>
<p class=3D"MsoNormal"><u></u>=A0<u></u></p>
</div>
</div></div></div>
</div>

<br>_______________________________________________<br>
f2py-users mailing list<br>
<a href=3D"mailto:f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]">f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]</a><br>
<a href=3D"http://cens.ioc.ee/mailman/listinfo/f2py-users" target=3D"_blank=
">http://cens.ioc.ee/mailman/listinfo/f2py-users</a><br>
<br></blockquote></div><br></div></div></div></div></div></div>

--f46d0444036c7359f804d76a7bd4--


--===============2606644506024013556==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
f2py-users mailing list
f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]
http://cens.ioc.ee/mailman/listinfo/f2py-users

--===============2606644506024013556==--