M
mathieu
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
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