[Python-bugs-list] [Bug #119645] distutils.sysconfig.LINKFORSHARED is undefined
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 2 Nov 2000 13:52:08 -0800
Bug #119645, was updated on 2000-Oct-28 17:24
Here is a current snapshot of the bug.
Project: Python
Category: Documentation
Status: Closed
Resolution: Fixed
Bug Group: None
Priority: 5
Summary: distutils.sysconfig.LINKFORSHARED is undefined
Details: The current documentation (in http://www.python.org/doc/current/ext/link-reqs.html) says to check the value of distutils.sysconfig.LINKFORSHARED in order to get compiler options for embedding Python. However, this value is undefined in Python 2.0, installed on a RedHat Linux system from the RPMs on www.python.org:
>>> import distutils.sysconfig
>>> distutils.sysconfig.LINKFORSHARED
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: LINKFORSHARED
Follow-Ups:
Date: 2000-Oct-30 18:25
By: gward
Comment:
This is a documentation bug, but I plead partly guilty (since I changed the interface of the distutils.sysconfig module without thinking to see if it had been documented anywhere, implicitly or not). Oops.
This patch fixes the doc bug:
--- ext.tex 2000/10/26 17:19:58 1.87
+++ ext.tex 2000/10/31 02:22:58
@@ -2138,7 +2138,7 @@
\begin{verbatim}
>>> import distutils.sysconfig
->>> distutils.sysconfig.LINKFORSHARED
+>>> distutils.sysconfig.get_config_var("LINKFORSHARED")
'-Xlinker -export-dynamic'
\end{verbatim}
\refstmodindex{distutils.sysconfig}
Fred, I can check this in if you want...
-------------------------------------------------------
Date: 2000-Nov-02 13:52
By: fdrake
Comment:
Fixed in Doc/ext/ext.tex revision 1.88.
-------------------------------------------------------
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=119645&group_id=5470