From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 8B4B3198005 for ; Sun, 17 Mar 2013 23:35:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1C0A0E055C; Sun, 17 Mar 2013 23:34:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8E8E4E055C for ; Sun, 17 Mar 2013 23:34:56 +0000 (UTC) Received: from mail-ie0-x22d.google.com (mail-ie0-x22d.google.com [IPv6:2607:f8b0:4001:c03::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: floppym) by smtp.gentoo.org (Postfix) with ESMTPSA id A1C4B33D77F for ; Sun, 17 Mar 2013 23:34:55 +0000 (UTC) Received: by mail-ie0-f173.google.com with SMTP id 9so6362904iec.18 for ; Sun, 17 Mar 2013 16:34:53 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Discussions centering around the Python ecosystem in Gentoo Linux X-BeenThere: gentoo-python@gentoo.org X-BeenThere: gentoo-python@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.50.6.202 with SMTP id d10mr5074117iga.28.1363563293913; Sun, 17 Mar 2013 16:34:53 -0700 (PDT) Received: by 10.64.102.66 with HTTP; Sun, 17 Mar 2013 16:34:53 -0700 (PDT) In-Reply-To: <1363560848-18278-1-git-send-email-mgorny@gentoo.org> References: <1363560848-18278-1-git-send-email-mgorny@gentoo.org> Date: Sun, 17 Mar 2013 19:34:53 -0400 Message-ID: Subject: [gentoo-python] Re: [PATCH distutils-r1] Pass --build-platlib & --build-purelib instead of --build-lib. From: Mike Gilbert To: =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= Cc: gentoo-python@lists.gentoo.org, python@gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: a4cebff4-77f0-46ad-9a11-e7cf63372f88 X-Archives-Hash: a8aa19d33554b66524c1be850f0b1b37 On Sun, Mar 17, 2013 at 6:54 PM, Micha=C5=82 G=C3=B3rny = wrote: > This allows splitting the library directories back without replacing > the whole esetup.py invocation. > > Needed for wxpython, https://bugs.gentoo.org/show_bug.cgi?id=3D455332 > --- > gx86/eclass/distutils-r1.eclass | 13 +++++++++++-- > 1 file changed, 11 insertions(+), 2 deletions(-) > > diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.e= class > index 5c628ed..e1c06dd 100644 > --- a/gx86/eclass/distutils-r1.eclass > +++ b/gx86/eclass/distutils-r1.eclass > @@ -234,8 +234,17 @@ esetup.py() { > add_args+=3D( > build > --build-base "${BUILD_DIR}" > - # using a single directory for them helps us expo= rt ${PYTHONPATH} > - --build-lib "${BUILD_DIR}/lib" > + > + # using a single directory for them helps us expo= rt > + # ${PYTHONPATH} and ebuilds find the sources inde= pendently > + # of whether the package installs extensions or n= ot > + # > + # note: due to some packages (wxpython) relying o= n separate > + # platlib & purelib dirs, we do not set --build-l= ib (which > + # can not be overriden with --build-*lib) > + --build-platlib "${BUILD_DIR}/lib" > + --build-purelib "${BUILD_DIR}/lib" > + > # make the ebuild writer lives easier > --build-scripts "${BUILD_DIR}/scripts" > ) > -- > 1.8.1.5 > Seems fine, and it doesn't even break paver. ;-)