Python libraries portable?

Corey Richardson corey at octayn.net
Thu Jun 7 19:17:13 EDT 2012


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.

-- 
Corey Richardson



More information about the Python-list mailing list