[Distutils] Method for calculating .so file names
Randy Syring
randy at thesyrings.us
Wed Apr 8 00:28:00 CEST 2015
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)/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20150407/78c0420d/attachment.html>
More information about the Distutils-SIG
mailing list