Re: [f2py] Shared lib dependency…..

KASSBOHM <[email protected]> Wed, 22 Aug 2012 19:57:16 +0200 (CEST)
Newsgroups gmane.comp.python.f2py.user
Message-ID <alpine.DEB.2.02.1208221953490.29273@thnkpd>
Hello Louis,

thanks.

Regards,
Sven


On Mon, 20 Aug 2012, Dr. Louis Wicker wrote:

> Sven:
>
> I am not an expert, but you need to google for f2py and building static libraries.  Python is really set up to import only the code that it needs, and so it really is "shared" framework - not a static one.
>
> see for example: 
> http://cens.ioc.ee/pipermail/f2py-users/2010-November/002130.html
>
> also read
>
> http://www.digipedia.pl/usenet/thread/15954/715/ - that may be more helpful
>
> You may have to decide whether portability versus max speed is important, for 
> example, you can build against gfortran which is freely available on all 
> systems.  For many applications, gfortran (especially > 4.5 versions) are 
> approaching commerical compilers.
>
> Lou Wicker
>
>
> On Aug 20, 2012, at 4:00 AM, f2py-users-request-Y4l6ocDipWCuvFJfX82//[email protected] wrote:
>
>> Send f2py-users mailing list submissions to
>> 	f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> 	http://cens.ioc.ee/mailman/listinfo/f2py-users
>> or, via email, send a message with subject or body 'help' to
>> 	f2py-users-request-Y4l6ocDipWCuvFJfX82//[email protected]
>>
>> You can reach the person managing the list at
>> 	f2py-users-owner-Y4l6ocDipWCuvFJfX82//[email protected]
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of f2py-users digest..."
>>
>>
>> Today's Topics:
>>
>>   1. Basic question (fwd) (KASSBOHM)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Mon, 20 Aug 2012 08:03:56 +0200 (CEST)
>> From: KASSBOHM <[email protected]>
>> Subject: [f2py] Basic question (fwd)
>> To: f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]
>> Message-ID: <alpine.DEB.2.02.1208200800430.5263@thnkpd>
>> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>>
>> Hello, I sent the question below some days ago as a non-member. Now trying as a
>> member of the mailing list.
>>
>> I guess, my question is about how I can force f2py to link shared libs as well.
>>
>> Any help?
>> Regards,
>> Sven
>>
>> ---------- Forwarded message ----------
>> Date: Fri, 17 Aug 2012 18:46:43 +0200 (CEST)
>> To: f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]
>> Subject: Basic question
>>
>> Hello,
>>
>> I am new to f2py. So: Sorry for my stupid question in advance.
>>
>> I am building an xxx.so file locally with f2py from my Fortran-source like
>> this:
>>
>> f2py -c -m xxx -L/opt/.../lib/ -l... xxx.f
>>
>> Then I can do:
>>
>> import xxx
>>
>> in my Python program. Everything works fine. That is: On my local box with
>> Intel-Compiler.
>>
>> But actually: I would like to use this xxx.so on other boxes than mine as well.
>> In fact, this is the most important reason for me to use f2py. I assume, that I
>> do not need to have an Intel-Compiler installed everywhere...
>>
>> When I try to import my xxx.so on a box without Intel, I get (since
>> libifport.so.5 is an Intel-Object) the error message:
>>
>> ImportError: libifport.so.5: cannot open shared object file: No such f...
>>
>> But isn't the thrilling thing about f2py, that one can COMPLETELY WRAP a
>> Fortran subroutine and use it with Python?
>>
>> What is it, I most definitely need to understand, before I go any step
>> further...
>>
>> Can you help?
>> Sven
>>
>>
>>
>>
>>
>>
>> ------------------------------
>>
>> _______________________________________________
>> f2py-users mailing list
>> f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]
>> http://cens.ioc.ee/mailman/listinfo/f2py-users
>>
>>
>> End of f2py-users Digest, Vol 85, Issue 1
>> *****************************************
>
> ----------------------------------------------------------------------------
> | Dr. Louis J. Wicker
> | NSSL/FRDD  Rm 4368
> | National Weather Center
> | 120 David L. Boren Boulevard, Norman, OK 73072
> |
> | E-mail:   [email protected]
> | HTTP:    www.nssl.noaa.gov/~lwicker
> | Phone:    (405) 325-6340
> | Fax:        (405) 325-6780
> |
> |
> | "...In fact the hardest part of research is always to
> |  find a question that's big enough thats worth answering
> |  but little enough that you actually can answer it."
> |
> |       Professor Ed Witten (2012)
> |
> ----------------------------------------------------------------------------
> |
> | "The contents  of this message are mine personally and
> | do not reflect any position of  the Government or NOAA."
> |
> ----------------------------------------------------------------------------
>
>
> _______________________________________________
> f2py-users mailing list
> f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]
> http://cens.ioc.ee/mailman/listinfo/f2py-users
>