[python] patch for python.jam for HP-UX (setting proper file suffix)

On HP-UX, different versions of Python interpreter expect shared libraries to have different suffix: for example, Python 2.4.3 expects .sl suffix while Python 2.5 expects .so suffix. Attached patch makes sure that on HP-UX, boost python library tests create python extension files with the suffix appropriate for the version of Python interpreter used by the test system. I tested it on HP-UX with Python 2.4.3 and with Python 2.5. I also tested it on Tru64 to make sure that it does not affect other platforms. Please, apply it to CVS HEAD and the RC branch. Thanks, Boris

"Boris Gubenko" <Boris.Gubenko@hp.com> writes:
On HP-UX, different versions of Python interpreter expect shared libraries to have different suffix: for example, Python 2.4.3 expects .sl suffix while Python 2.5 expects .so suffix.
Attached patch makes sure that on HP-UX, boost python library tests create python extension files with the suffix appropriate for the version of Python interpreter used by the test system.
I tested it on HP-UX with Python 2.4.3 and with Python 2.5. I also tested it on Tru64 to make sure that it does not affect other platforms.
Please, apply it to CVS HEAD and the RC branch.
It's not the right patch, though, because the version might not be explicitly specified. Please fix it so it does the right thing even if the user doesn't specify a version number. The version number of the Python is detected a bit further down in the file. Thanks. -- Dave Abrahams Boost Consulting www.boost-consulting.com

David Abrahams wrote:
It's not the right patch, though, because the version might not be explicitly specified.
I see. Thanks for the comment. Boris ----- Original Message ----- From: "David Abrahams" <dave@boost-consulting.com> To: <boost@lists.boost.org> Sent: Wednesday, January 10, 2007 10:34 PM Subject: Re: [boost] [python] patch for python.jam for HP-UX (setting properfile suffix)
"Boris Gubenko" <Boris.Gubenko@hp.com> writes:
On HP-UX, different versions of Python interpreter expect shared libraries to have different suffix: for example, Python 2.4.3 expects .sl suffix while Python 2.5 expects .so suffix.
Attached patch makes sure that on HP-UX, boost python library tests create python extension files with the suffix appropriate for the version of Python interpreter used by the test system.
I tested it on HP-UX with Python 2.4.3 and with Python 2.5. I also tested it on Tru64 to make sure that it does not affect other platforms.
Please, apply it to CVS HEAD and the RC branch.
It's not the right patch, though, because the version might not be explicitly specified. Please fix it so it does the right thing even if the user doesn't specify a version number. The version number of the Python is detected a bit further down in the file.
Thanks.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Attached is patch for python.jam which addresses the issue you raised in the attached mail: handling the case when the version of Python interpreter is not explicitly specified. I tested it on HP-UX with Python 2.4.3 (expecting .sl suffix) and Python 2.5 (expecting .so suffix) with and without explicitly specified version. I also tested it on Tru46 to make sure, that it does not break other platforms. Thanks again for the review. Boris ----- Original Message ----- From: "David Abrahams" <dave@boost-consulting.com> To: <boost@lists.boost.org> Sent: Wednesday, January 10, 2007 10:34 PM Subject: Re: [boost] [python] patch for python.jam for HP-UX (setting properfile suffix)
"Boris Gubenko" <Boris.Gubenko@hp.com> writes:
On HP-UX, different versions of Python interpreter expect shared libraries to have different suffix: for example, Python 2.4.3 expects .sl suffix while Python 2.5 expects .so suffix.
Attached patch makes sure that on HP-UX, boost python library tests create python extension files with the suffix appropriate for the version of Python interpreter used by the test system.
I tested it on HP-UX with Python 2.4.3 and with Python 2.5. I also tested it on Tru64 to make sure that it does not affect other platforms.
Please, apply it to CVS HEAD and the RC branch.
It's not the right patch, though, because the version might not be explicitly specified. Please fix it so it does the right thing even if the user doesn't specify a version number. The version number of the Python is detected a bit further down in the file.
Thanks.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (2)
-
Boris Gubenko
-
David Abrahams