[Python-bugs-list] [Bug #119645] distutils.sysconfig.LINKFORSHARED is undefined
noreply@sourceforge.net
noreply@sourceforge.net
Sat, 9 Dec 2000 16:43:01 -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
Submitted by: beroul
Assigned to : fdrake
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-Dec-09 16:43
By: nobody
Comment:
I just tried this "fixed" version on python 2.0 and it still does not work.
>>> import distutils
>>> distutils.get_config_var("LINKFORSHARED")
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: get_config_var
This is a very annoying problem for us people trying to ship applications that embed python. PLEASE see that it gets fixed properly (and in the documentation on the website, which still has not been updated!)
-------------------------------------------------------
Date: 2000-Nov-02 13:52
By: fdrake
Comment:
Fixed in Doc/ext/ext.tex revision 1.88.
-------------------------------------------------------
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...
-------------------------------------------------------
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=119645&group_id=5470