delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/12/20:58:59

X-Spam-Check-By: sourceware.org
Date: Mon, 12 Mar 2007 20:58:34 -0500
From: Jason Tishler <jason AT tishler DOT net>
Subject: Re: python & development
In-reply-to: <20070312232707.GL4019@interface.famille.thibault.fr>
To: cygwin AT cygwin DOT com
Mail-followup-to: cygwin AT cygwin DOT com
Message-id: <20070313015834.GA3068@tishler.net>
MIME-version: 1.0
References: <20070312005446 DOT GG3707 AT interface DOT famille DOT thibault DOT fr> <20070312131932 DOT GA1272 AT tishler DOT net> <20070312134015 DOT GG3559 AT implementation DOT labri DOT fr> <20070312154601 DOT GA1052 AT tishler DOT net> <20070312232707 DOT GL4019 AT interface DOT famille DOT thibault DOT fr>
User-Agent: Mutt/1.4.2.1i
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

Samuel,

On Tue, Mar 13, 2007 at 12:27:07AM +0100, Samuel Thibault wrote:
> Jason Tishler, le Mon 12 Mar 2007 10:46:01 -0500, a ?crit :
> > On Mon, Mar 12, 2007 at 02:40:15PM +0100, Samuel Thibault wrote:
> > > Jason Tishler, le Mon 12 Mar 2007 08:19:32 -0500, a ?crit :
> > > > On Mon, Mar 12, 2007 at 01:54:46AM +0100, Samuel Thibault wrote:
> > > > > I'd need to use pyrexc for building python bindings, is there
> > > > > any plans for including it in the cygwin distribution?  (the
> > > > > upstream tgz currently installs just fine).
> > > > 
> > > > Would you like to contribute this package?
> > > 
> > > Why not, but maybe it's easier to have the same person manage
> > > related packages?
> > 
> > Easier for who? :,)
> 
> Ok, I've just sent the ITP.

Thanks.

> > > [snip]
> > > 
> > > So maybe the ac_python_devel.m4 file is just buggy actually:
> > > 
> > > 		PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
> > > 			from string import join; \
> > > 			print '-L' + get_python_lib(0,1), \
> > > 		      	'-lpython';"`$py_version
> > > 
> > > Maybe it should append config/ to get_python_lib(0,1) ?
> > 
> > That would fix the problem for Cygwin.  Unfortunately, I don't know how
> > it will affect all the other platforms.
> 
> It makes at least Linux work better.  I've reported the bug in the
> debian bts, I'll forward it to the authors of the file.

Thanks.

> > > > AFAICT, Distutils sets gcc's -L correctly under Cygwin.
> > > 
> > > Mmm, how?  This didn't work for me.
> > 
> > The normal "python setup.py" has always worked for me.
> 
> Ah, yes, but it seems to usually just _not_ use -lpython2.4 actually.

AFAICT, it does when building a shared extension.  For example, from
python-ldap, we have the following:

    gcc -shared -Wl,--enable-auto-image-base
    build/temp.cygwin-1.5.12-i686-2.4/Modules/LDAPObject.o
    ...
    -L/usr/local/openldap-OPENLDAP_REL_ENG_2_2/lib -L/usr/local/sasl/lib
**> -L/usr/lib/python2.4/config
    -Wl,-R/usr/local/openldap-OPENLDAP_REL_ENG_2_2/lib
    -Wl,-R/usr/local/sasl/lib -lldap_r -llber -lssl -lcrypto -lsasl2
**> -lpython2.4 -o build/lib.cygwin-1.5.12-i686-2.4/_ldap.dll

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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