public inbox for gentoo-python@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-python] Re: eclass patch to fix test rdepend
       [not found] <CA+NrkpfoPzNKznVsh1_UCkyOeXp_51-3pWses5GKeAdJj9ZsuQ@mail.gmail.com>
@ 2012-06-29 18:15 ` Mike Gilbert
  0 siblings, 0 replies; only message in thread
From: Mike Gilbert @ 2012-06-29 18:15 UTC (permalink / raw
  To: Tomáš Chvátal; +Cc: python, gentoo-python

On Fri, Jun 29, 2012 at 8:04 AM, Tomáš Chvátal <tomas.chvatal@gmail.com> wrote:
> Hi guys,
>
> I have package that uses python only during the test phase -> test
> conditional needed.
>
> Eclass currently adds the use conditional to depend and rdepend so I
> would propose two choices
> 1) detect some set of build only useflags, like the test and skip
> rdepend assignment on them
>
> Index: python.eclass
> ===================================================================
> RCS file: /var/cvsroot/gentoo-x86/eclass/python.eclass,v
> retrieving revision 1.155
> diff -u -b -B -r1.155 python.eclass
> --- python.eclass       9 Jun 2012 10:01:19 -0000       1.155
> +++ python.eclass       29 Jun 2012 12:03:37 -0000
> @@ -247,10 +247,10 @@
>
>                if [[ "${#_PYTHON_ATOMS[@]}" -gt 1 ]]; then
>                        DEPEND+="${DEPEND:+ }${USE_flag}${USE_flag:+?
> ( }|| ( ${_PYTHON_ATOMS[@]} )${USE_flag:+ )}"
> -                       RDEPEND+="${RDEPEND:+
> }${USE_flag}${USE_flag:+? ( }|| ( ${_PYTHON_ATOMS[@]} )${USE_flag:+
> )}"
> +                       [[ ${USE_flag} == test ]] ||
> RDEPEND+="${RDEPEND:+ }${USE_flag}${USE_flag:+? ( }|| (
> ${_PYTHON_ATOMS[@]} )${USE_flag:+ )}"
>                else
>                        DEPEND+="${DEPEND:+ }${USE_flag}${USE_flag:+?
> ( }${_PYTHON_ATOMS[@]}${USE_flag:+ )}"
> -                       RDEPEND+="${RDEPEND:+
> }${USE_flag}${USE_flag:+? ( }${_PYTHON_ATOMS[@]}${USE_flag:+ )}"
> +                       [[ ${USE_flag} == test ]] ||
> RDEPEND+="${RDEPEND:+ }${USE_flag}${USE_flag:+? (
> }${_PYTHON_ATOMS[@]}${USE_flag:+ )}"
>                fi
>        else
>                die "Invalid syntax of PYTHON_DEPEND"
>
>
> 2) provide something like PYTHON_DEPEND_ONLY variable.
>
> You write the patch.
>
> Please let me know what you guys decide to do as i have to atler my
> ebuild if you decide to go with number two.
>
> Cheers
>
> Tom

Arfrever has a patch implementing PYTHON_BDEPEND (build-time only
deps). Nobody has cared enough to apply it.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-06-29 18:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CA+NrkpfoPzNKznVsh1_UCkyOeXp_51-3pWses5GKeAdJj9ZsuQ@mail.gmail.com>
2012-06-29 18:15 ` [gentoo-python] Re: eclass patch to fix test rdepend Mike Gilbert

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