This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: (partial?) fix for Misc/python-config.in
Type: Stage:
Components: None Versions: Python 2.5
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, levinsm, loewis
Priority: normal Keywords: patch

Created on 2006-07-16 11:41 by levinsm, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python-config-patch levinsm, 2006-07-16 11:41 patch
Messages (3)
msg50704 - (view) Author: M. Levinson (levinsm) Date: 2006-07-16 11:41
I've found that the current output from python-config
isn't quite right for compiling and linking an
application with an embedded interpreter on platforms
that need $(SYSLIBS). The attached patch removes
extraneous directories from the include path and adds
the missing libraries, which was enough to make it
work for me in my limited testing.

But even with these changes, I haven't quite managed
to convince myself that python-config is currently
general enough to work on all platforms. Couldn't
$(LINKFORSHARED) also be required in some cases, for
example? And perhaps there are other missing flags
I haven't thought of.

I feel it's worth double-checking because python-config
strikes me as a potentially convenient tool, but only
if its output is known to be correct: If a broken
version ever became widely installed in the wild then
even if it were to be fixed in some future release,
the authors of other applications would forever after
need to worry about distinguishing between good and
bad versions of python-config before relying on its
output, which would undermine its convenience.
(Also: if/when it is included in a release, a man page
and some mention of it in Doc/ext would be a plus. :-)

I hope this is helpful. Thanks for all your great work!
msg50705 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2006-07-24 07:02
Logged In: YES 
user_id=21627

Georg, can you please take a look?
msg50706 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-07-24 13:29
Logged In: YES 
user_id=849994

Thanks for the patch, applied as rev. 50800.
History
Date User Action Args
2022-04-11 14:56:18adminsetgithub: 43679
2006-07-16 11:41:04levinsmcreate