delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/10/19:29:17

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: Problem compiling Numeric-23.0 with latest python-2.2.2-6
References: <3E6B2B1A DOT 2020606 AT oracle DOT com> <20030309134515 DOT GB1232 AT tishler DOT net>
<87k7f84odg DOT fsf AT vzell-de DOT de DOT oracle DOT com>
<20030310150526 DOT GF2112 AT tishler DOT net>
From: "Dr. Volker Zell" <Dr DOT Volker DOT Zell AT oracle DOT com>
Date: Tue, 11 Mar 2003 01:29:40 +0100
In-Reply-To: <20030310150526.GF2112@tishler.net> (Jason Tishler's message of
"Mon, 10 Mar 2003 10:05:26 -0500")
Message-ID: <87heaa21aj.fsf@vzell-de.de.oracle.com>
Lines: 50
User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.4 (Common Lisp
(candidate 1), i686-pc-cygwin)
MIME-Version: 1.0

>>>>> "Jason" == Jason Tishler <jason AT tishler DOT net> writes:

    Jason> Volker,
    Jason> On Sun, Mar 09, 2003 at 03:15:55PM +0100, Dr. Volker Zell wrote:
    >> Yes there is one on SF.

    Jason> I just tried Numeric-23.0 -- still works for me.

    >> Do you know where the -L stuff is generated

    Jason> IIRC, distutils "greps" this out of /usr/lib/python2.2/config/Makefile.
    Jason> However, I haven't been in this "special place" since I added shared
    Jason> extension support to Cygwin Python -- about 2 years.

    >> or how I can debug this further ?

    Jason> Sorry, until others have this problem, you will have to debug this
    Jason> yourself.

OK I found it.

From /lib/python2.2/distutils/command/build_ext.py:

        # for extensions under Cygwin Python's library directory must be
        # appended to library_dirs
        if sys.platform[:6] == 'cygwin':
            if string.find(sys.executable, sys.exec_prefix) != -1:
                # building third party extensions
                self.library_dirs.append(os.path.join(sys.prefix, "lib", "python" + sys.version[:3], "config"))
            else:
                # building python standard extensions
                self.library_dirs.append('.')


I always invoked

 /bin/python setup.py build

because I had an old selfcompiled version of python in /usr/local/bin
and so string.find gives -1 because sys.exec_prefix seems to be /usr 

So when I invoke it with /usr/bin/python everything's okay.

If somebody has /bin in front of /usr/bin in his or her PATH, third party extensions
will fail to build properly when just calling python setup.py build.

    Jason> Jason

Ciao
  Volker


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019