all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Propagate inputs with a specific output only?
@ 2019-11-19 16:32 Hartmut Goebel
  2019-11-22 10:21 ` Danny Milosavljevic
  2019-11-23 17:46 ` Ludovic Courtès
  0 siblings, 2 replies; 4+ messages in thread
From: Hartmut Goebel @ 2019-11-19 16:32 UTC (permalink / raw)
  To: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 621 bytes --]

Hi,

I have a package, written in Python, which consists of a command line
tool and a GUI. Since the GUI requires Qt, I would like to create two
outputs: "out", and "gui". Thus one could install the command line tool
without huge dependencies.

Now the GUI requires Qt, but for Python packages one needs to specify
the requirements as propagated inputs. How can I make some of the 
inputs propagated with output "gui" only?

-- 
Regards
Hartmut Goebel

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



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: Propagate inputs with a specific output only?
  2019-11-19 16:32 Propagate inputs with a specific output only? Hartmut Goebel
@ 2019-11-22 10:21 ` Danny Milosavljevic
  2019-11-22 10:48   ` Hartmut Goebel
  2019-11-23 17:46 ` Ludovic Courtès
  1 sibling, 1 reply; 4+ messages in thread
From: Danny Milosavljevic @ 2019-11-22 10:21 UTC (permalink / raw)
  To: Hartmut Goebel; +Cc: guix-devel

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

Hi Hartmut,

On Tue, 19 Nov 2019 17:32:14 +0100
Hartmut Goebel <h.goebel@crazy-compilers.com> wrote:

> I have a package, written in Python, which consists of a command line
> tool and a GUI. Since the GUI requires Qt, I would like to create two
> outputs: "out", and "gui". Thus one could install the command line tool
> without huge dependencies.
> 
> Now the GUI requires Qt, but for Python packages one needs to specify
> the requirements as propagated inputs. How can I make some of the 
> inputs propagated with output "gui" only?

I think it's

(propagated-inputs
  `(("foo" ,bar "baz")))

but I can't remember exactly.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: Propagate inputs with a specific output only?
  2019-11-22 10:21 ` Danny Milosavljevic
@ 2019-11-22 10:48   ` Hartmut Goebel
  0 siblings, 0 replies; 4+ messages in thread
From: Hartmut Goebel @ 2019-11-22 10:48 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 496 bytes --]

Hi Danny,
> I think it's
> (propagated-inputs
>   `(("foo" ,bar "baz")))
>
> but I can't remember exactly.

This is for specifying another packages other output.

Maybe I should have added an example:

pdfposter:out -> propagates python-pypdf2

pdfposter:gui -> propagates qtbase, qtpolller, et.

-- 
Regards
Hartmut Goebel

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



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: Propagate inputs with a specific output only?
  2019-11-19 16:32 Propagate inputs with a specific output only? Hartmut Goebel
  2019-11-22 10:21 ` Danny Milosavljevic
@ 2019-11-23 17:46 ` Ludovic Courtès
  1 sibling, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2019-11-23 17:46 UTC (permalink / raw)
  To: Hartmut Goebel; +Cc: guix-devel

Hello,

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

> I have a package, written in Python, which consists of a command line
> tool and a GUI. Since the GUI requires Qt, I would like to create two
> outputs: "out", and "gui". Thus one could install the command line tool
> without huge dependencies.
>
> Now the GUI requires Qt, but for Python packages one needs to specify
> the requirements as propagated inputs. How can I make some of the 
> inputs propagated with output "gui" only?

It’s not possible.  It’s mentioned in ‘TODO’ (which thus not entirely
useless :-)).

Ludo’.

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

end of thread, other threads:[~2019-11-23 17:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-19 16:32 Propagate inputs with a specific output only? Hartmut Goebel
2019-11-22 10:21 ` Danny Milosavljevic
2019-11-22 10:48   ` Hartmut Goebel
2019-11-23 17:46 ` 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.