public inbox for gentoo-python@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-python] [PATCH distutils-r1] Pass --build-platlib & --build-purelib instead of --build-lib.
@ 2013-03-17 22:54 Michał Górny
  2013-03-17 23:34 ` [gentoo-python] " Mike Gilbert
  2013-03-19  6:14 ` [gentoo-python] " Michał Górny
  0 siblings, 2 replies; 3+ messages in thread
From: Michał Górny @ 2013-03-17 22:54 UTC (permalink / raw
  To: gentoo-python; +Cc: python, Michał Górny

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=455332
---
 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.eclass
index 5c628ed..e1c06dd 100644
--- a/gx86/eclass/distutils-r1.eclass
+++ b/gx86/eclass/distutils-r1.eclass
@@ -234,8 +234,17 @@ esetup.py() {
 		add_args+=(
 			build
 			--build-base "${BUILD_DIR}"
-			# using a single directory for them helps us export ${PYTHONPATH}
-			--build-lib "${BUILD_DIR}/lib"
+
+			# using a single directory for them helps us export
+			# ${PYTHONPATH} and ebuilds find the sources independently
+			# of whether the package installs extensions or not
+			#
+			# note: due to some packages (wxpython) relying on separate
+			# platlib & purelib dirs, we do not set --build-lib (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



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-python] Re: [PATCH distutils-r1] Pass --build-platlib & --build-purelib instead of --build-lib.
  2013-03-17 22:54 [gentoo-python] [PATCH distutils-r1] Pass --build-platlib & --build-purelib instead of --build-lib Michał Górny
@ 2013-03-17 23:34 ` Mike Gilbert
  2013-03-19  6:14 ` [gentoo-python] " Michał Górny
  1 sibling, 0 replies; 3+ messages in thread
From: Mike Gilbert @ 2013-03-17 23:34 UTC (permalink / raw
  To: Michał Górny; +Cc: gentoo-python, python

On Sun, Mar 17, 2013 at 6:54 PM, Michał Górny <mgorny@gentoo.org> 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=455332
> ---
>  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.eclass
> index 5c628ed..e1c06dd 100644
> --- a/gx86/eclass/distutils-r1.eclass
> +++ b/gx86/eclass/distutils-r1.eclass
> @@ -234,8 +234,17 @@ esetup.py() {
>                 add_args+=(
>                         build
>                         --build-base "${BUILD_DIR}"
> -                       # using a single directory for them helps us export ${PYTHONPATH}
> -                       --build-lib "${BUILD_DIR}/lib"
> +
> +                       # using a single directory for them helps us export
> +                       # ${PYTHONPATH} and ebuilds find the sources independently
> +                       # of whether the package installs extensions or not
> +                       #
> +                       # note: due to some packages (wxpython) relying on separate
> +                       # platlib & purelib dirs, we do not set --build-lib (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. ;-)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-python] [PATCH distutils-r1] Pass --build-platlib & --build-purelib instead of --build-lib.
  2013-03-17 22:54 [gentoo-python] [PATCH distutils-r1] Pass --build-platlib & --build-purelib instead of --build-lib Michał Górny
  2013-03-17 23:34 ` [gentoo-python] " Mike Gilbert
@ 2013-03-19  6:14 ` Michał Górny
  1 sibling, 0 replies; 3+ messages in thread
From: Michał Górny @ 2013-03-19  6:14 UTC (permalink / raw
  To: Michał Górny; +Cc: gentoo-python, python

[-- Attachment #1: Type: text/plain, Size: 331 bytes --]

On Sun, 17 Mar 2013 23:54:08 +0100
Michał Górny <mgorny@gentoo.org> 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=455332
> ---

Committed this one.

-- 
Best regards,
Michał Górny

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 966 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-19  6:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-17 22:54 [gentoo-python] [PATCH distutils-r1] Pass --build-platlib & --build-purelib instead of --build-lib Michał Górny
2013-03-17 23:34 ` [gentoo-python] " Mike Gilbert
2013-03-19  6:14 ` [gentoo-python] " Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox