distutils.sysconfig.get_config_vars("SO") or
distutils.sysconfig.get_config_vars("EXT_SUFFIX")(seems the later is only available for py3? and the py3 source say "SO" is deprecated) Mind you, this is easy to find out if you build an extension and you use hunter <https://pypi.python.org/pypi/hunter>, that's how I found it ;-) Thanks, -- Ionel Cristian Mărieș, http://blog.ionelmc.ro On Wed, Apr 8, 2015 at 1:28 AM, Randy Syring <[email protected]> wrote: > 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 > >
_______________________________________________ Distutils-SIG maillist - [email protected] https://mail.python.org/mailman/listinfo/distutils-sig
