Distributing 2 python modules with incompatible API

mathieu mathieu.malaterre at gmail.com
Wed Jun 4 09:59:27 EDT 2008


hi there,

  As far as I understand python is not using the usual UNIX system of
soname when two libraries provide incompatible API. So let say I have
a _foo.so version 1.2 and 2.0, all I can (should do) is move them
underneath a subdirectory in site-package:

  pythonX.Y/site-package/foo1.2/_foo.so
  pythonX.Y/site-package/foo1.2/foo.py
and
  pythonX.Y/site-package/foo2.0/_foo.so
  pythonX.Y/site-package/foo2.0/foo.py

Then a central foo.pth would (sytem-wide) define which one is the
default version:

  pythonX.Y/site-package/foo.pth

  If this is correct ? Is there any documentation that I missed ?

Thanks
-Mathieu



More information about the Python-list mailing list