Python libraries portable?
Tim Johnson
tim at akwebsoft.com
Thu Jun 7 20:43:26 EDT 2012
* Corey Richardson <corey at octayn.net> [120607 15:20]:
> On Thu, 7 Jun 2012 15:09:36 -0800
> Tim Johnson <tim at akwebsoft.com> <tim at akwebsoft.com> wrote:
>
> > Does this mean that I could copy my MySQLdb module directly from
> > my workstation via ftp to a server, and have it work, given that
> > sys.path contained the path?
> >
>
> No, absolutely not. MySQLdb is a C extension. Assuming same
> architecture and shared libraries, it will *probably* work, but no
> guarantees. If any of those are different, even slightly, it will break.
Yeah, you're right - I knew that and I had forgotten!
Sorry.
So what to do if I can't install from the command line?
I could use python's external command tools like
subprocess.call(), but am not sure what the implications would be
since privileges might be limited.
--
Tim
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com
More information about the Python-list
mailing list