Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wish: generalize package to packages in executables stanza #378

Open
jberdine opened this issue Dec 21, 2017 · 3 comments
Open

Wish: generalize package to packages in executables stanza #378

jberdine opened this issue Dec 21, 2017 · 3 comments

Comments

@jberdine
Copy link
Contributor

An executables stanza can specify several names and several public_names but only one package. In case there are multiple executables which should appear in different packages, then multiple install stanzas need to be written explicitly. It seems like it would be less redundant to allow a packages field that works analogously to the public_names field.

@rgrinberg
Copy link
Member

One thing that we're planning to do is implement a plugin system for defining your stanzas. See #56 . With such a system, it should be easy enough to support what you're asking. In fact, I kind of regret that we added the various redundant executables/libraries stanzas.

Though for completion, it's possible to make the argument that we should just support this since we already went down there of adding sugar to defining executables.

@ghost ghost added the enhancement label Jan 19, 2018
@rgrinberg
Copy link
Member

Thinking about this again, maybe we should just have a way to label names with packages.

For example:

(executables
 (public_names foo bar baz)
 (packages (pkg1 foo bar) (pkg2 baz)))

Would this be acceptable for you @jberdine ?

@jberdine
Copy link
Contributor Author

Yes, that seems good to me.

Sorry for the delay, I missed this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants