all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Specifying and build output separately?
@ 2016-10-15  8:06 Hartmut Goebel
  2016-10-17  8:55 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Hartmut Goebel @ 2016-10-15  8:06 UTC (permalink / raw)
  To: Guix-devel

Hi,

we have several cyclic dependencies due to e.g. packages depending on
each other only for building the documentation. Examples are numpy and
matpltlib.

So I wonder it it would be possible to to something like this:

(define-public numpy:doc
  (inherit numpy)
  (name "numpy:doc")
  (outputs "doc")
  (inputs … matplotlib …)
  (… modify-phases …))


This would at least help breaking cycles where only specific the
documentation is effected. It will still not solve more complex
situation we have for python--tk--libxck--python, i assume. But maybe
this could be generalized.

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |

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

* Re: Specifying and build output separately?
  2016-10-15  8:06 Specifying and build output separately? Hartmut Goebel
@ 2016-10-17  8:55 ` Ludovic Courtès
  2016-10-17  9:06   ` Hartmut Goebel
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2016-10-17  8:55 UTC (permalink / raw)
  To: Hartmut Goebel; +Cc: Guix-devel

Hello,

Hartmut Goebel <h.goebel@crazy-compilers.com> skribis:

> we have several cyclic dependencies due to e.g. packages depending on
> each other only for building the documentation. Examples are numpy and
> matpltlib.
>
> So I wonder it it would be possible to to something like this:
>
> (define-public numpy:doc
>   (inherit numpy)
>   (name "numpy:doc")
>   (outputs "doc")
>   (inputs … matplotlib …)
>   (… modify-phases …))

Making the documentation a separate package, instead of a separate
output, is of course doable and it could help address the circular
reference issue.

Currently the approach used for numpy is a different one: there’s a
“bootstrap” package lacking documentation that is used as input to the
final package, which has an extra “doc” output.

I prefer this approach over what you propose because it’s more
consistent with what we usually do, which is to have doc in a “doc”
output rather than in a separate package.

Thanks,
Ludo’.

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

* Re: Specifying and build output separately?
  2016-10-17  8:55 ` Ludovic Courtès
@ 2016-10-17  9:06   ` Hartmut Goebel
  2016-10-17 14:54     ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Hartmut Goebel @ 2016-10-17  9:06 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Guix-devel

Am 17.10.2016 um 10:55 schrieb Ludovic Courtès:
> I prefer this approach over what you propose because it’s more
> consistent with what we usually do, which is to have doc in a “doc”
> output rather than in a separate package.

Yes, but it has the major drawback of building numpy twice - which is
quite time-consuming.

If we could "augment" the existing bootstrap package, for the normal
one, this would save the second build.

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |

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

* Re: Specifying and build output separately?
  2016-10-17  9:06   ` Hartmut Goebel
@ 2016-10-17 14:54     ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2016-10-17 14:54 UTC (permalink / raw)
  To: Hartmut Goebel; +Cc: Guix-devel

Hartmut Goebel <h.goebel@crazy-compilers.com> skribis:

> Am 17.10.2016 um 10:55 schrieb Ludovic Courtès:
>> I prefer this approach over what you propose because it’s more
>> consistent with what we usually do, which is to have doc in a “doc”
>> output rather than in a separate package.
>
> Yes, but it has the major drawback of building numpy twice - which is
> quite time-consuming.
>
> If we could "augment" the existing bootstrap package, for the normal
> one, this would save the second build.

You’re right.  However, the approach so far has been to favor usability
or convenience over build time.  The rationale is that most users do not
build everything locally.

Does that make sense?

Ludo’.

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

end of thread, other threads:[~2016-10-17 14:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-15  8:06 Specifying and build output separately? Hartmut Goebel
2016-10-17  8:55 ` Ludovic Courtès
2016-10-17  9:06   ` Hartmut Goebel
2016-10-17 14:54     ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.