Bugs item #1081045, was opened at 2004-12-07 18:19
Message generated for change (Comment added) made by bcannon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1081045&group_id=5470

Category: Build
Group: Python 2.5
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Skip Montanaro (montanaro)
Assigned to: Brett Cannon (bcannon)
Summary: readline module doesn't build on MacOSX

Initial Comment:
Recent changes to either configure or setup.py seem to
have conspired to prevent the readline module from
building on MacOSX.  I configured and built with

    LDFLAGS='-L/sw/lib' CPPFLAGS='-I/sw/include' ../
configure '--prefix=/Users/skip/local'
    make

The relevant readline bits are in /sw/... but the
module is not built.  The following bits containing
/sw grep out of the generated Makefile:

    INSTALL=        /sw/bin/install -c
    CPPFLAGS=       -I. -I$(srcdir)/Include -I/sw/include
    LDFLAGS=        -L/sw/lib
    CONFIG_ARGS=    '--prefix=/Users/skip/local' 
'CPPFLAGS=-I/sw/include' 'LDFLAGS=-L/sw/lib'

Assigning to Brett since he touched this most recently.

Skip


----------------------------------------------------------------------

>Comment By: Brett Cannon (bcannon)
Date: 2004-12-18 12:48

Message:
Logged In: YES 
user_id=357491

Checked in under rev. 1.209 in setup.py .

----------------------------------------------------------------------

Comment By: Skip Montanaro (montanaro)
Date: 2004-12-18 11:59

Message:
Logged In: YES 
user_id=44345

That worked...  Thanks... (check it in?)


----------------------------------------------------------------------

Comment By: Brett Cannon (bcannon)
Date: 2004-12-17 23:56

Message:
Logged In: YES 
user_id=357491

I was able to reproduce the problem of the environment variable 
returning None for a short time (it for some reason stopped doing that 
and started to do what I expected).  While I could, though, I was able to 
get the right values using distutils.sysconfig.get_config_var().

The attached file adds a little bit more debugging output and also 
switches over to using distutils.sysconfig.get_config_var() instead of 
sys.getenv().  Let me know if that fixes the problem.

----------------------------------------------------------------------

Comment By: Brett Cannon (bcannon)
Date: 2004-12-10 11:44

Message:
Logged In: YES 
user_id=357491

I have uploaded a patch to add some debugging output.  Can you run 
make and let me know what it outputs (might need to touch a file to 
trigger the need for setup.py to execute)?  I need to know exactly what 
the environment variables are set to when they are parsed and what 
setup.py ends up with for its library and include directories.

----------------------------------------------------------------------

Comment By: Skip Montanaro (montanaro)
Date: 2004-12-07 18:46

Message:
Logged In: YES 
user_id=44345

More on this...  Sticking a print of lib_dirs just before setup.py
checks for readline shows that /sw/lib is not in that list.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1081045&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to