As a follow-up to my earlier question, is there a way to pragmatically determine the naming scheme of installed shared object files? I've seen a couple different naming formats:

# python 2.7.6 - default ubuntu version
$ ls /usr/lib/python2.7/dist-packages/_dbus_*
/usr/lib/python2.7/dist-packages/_dbus_bindings.so
/usr/lib/python2.7/dist-packages/_dbus_glib_bindings.so

# python 3.4.0 - default ubuntu version
$ ls /usr/lib/python3/dist-packages/_dbus_*
/usr/lib/python3/dist-packages/_dbus_bindings.cpython-34m-x86_64-linux-gnu.so
/usr/lib/python3/dist-packages/_dbus_glib_bindings.cpython-34m-x86_64-linux-gnu.so

# python 3.4.3 - manual install on ubuntu
$ ls /opt/python34/lib/python3.4/site-packages/_dbus_*
/opt/python34/lib/python3.4/site-packages/_dbus_bindings.so
/opt/python34/lib/python3.4/site-packages/_dbus_glib_bindings.so

I can piece together the file structure for 3.4.0 from information in sysconfig, but I'm wondering if there is a better way.

Thanks.


*Randy Syring*
Husband | Father | Redeemed Sinner

/"For what does it profit a man to gain the whole world
and forfeit his soul?" (Mark 8:36 ESV)/

_______________________________________________
Distutils-SIG maillist  -  [email protected]
https://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to