Mailing List Archive

[issue5132] distutils: libpython not found when building python extensions on Solaris when Python was built with --enable-shared
New submission from Dave Peterson <dpeterson@enthought.com>:

I've had trouble building Python extensions on Solaris if the Python
install I'm using was built with the '--enable-shared' option. In
tracking this down, it appears that the code in
'distutils/command/build_ext.py' contains a number of statements to
detect a similar situation for other platforms and explicitly add the
'lib' dir option for the linker, but there is no similar detection for
Solaris.

I've attached a patch that fixes this and solves the problem for me. I
simply extended the checking for 'linux' and 'gnu' platforms to also
apply for 'sunos' platforms.

----------
components: Distutils
files: distutils_command_build_ext.patch
keywords: patch
messages: 80977
nosy: dpeterson
severity: normal
status: open
title: distutils: libpython not found when building python extensions on Solaris when Python was built with --enable-shared
type: compile error
versions: Python 2.5
Added file: http://bugs.python.org/file12920/distutils_command_build_ext.patch

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue5132>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue5132] distutils: libpython not found when building python extensions on Solaris when Python was built with --enable-shared [ In reply to ]
Changes by Tarek Ziadé <ziade.tarek@gmail.com>:


----------
assignee: -> tarek
nosy: +tarek
versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.5

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue5132>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue5132] distutils: libpython not found when building python extensions on Solaris when Python was built with --enable-shared [ In reply to ]
Tarek Ziadé <ziade.tarek@gmail.com> added the comment:

fixed in r69316

Thanks for the patch

----------
status: open -> closed

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue5132>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com