-
Notifications
You must be signed in to change notification settings - Fork 428
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
Tests for packages with features fail #1026
Comments
Add your track feature metapackage to your test: requires: section. You On Conda-Forge, people are using a "vc" metapackage to activate the On Tue, Jun 14, 2016 at 1:23 PM, Zaharid notifications@github.com wrote:
|
Thanks, this makes it work. Would be nice to have this in the docs. Also, should it be a run dependency rather than a test, in case I had those? In any case, I am not sure about this behaviour: Surely a package should never be incompatible with itself! |
Sure, a run dependency would work, too, and is probably the right choice. I find this behavior extremely unintuitive myself, and will be working over time to make this simpler. Sorry for the confusion. I'm glad you came up with the metapackage idea. Trying to do this without metapackages is even harder to get to work! |
I think this is yet another example where having a command: conda install-the-package-contained-in-this-file-and-set-ITS-dependencies .tar.bz2 would help. Then you could have that set the appropriate features for e.g. the test environment. Because it seems to be that the use case for features is to have versions of packages with and without them (otherwise there is a simple requirement), I'd say the API could look like: meta.yaml:
which does nothing by default. But when you do:
It sets a matching environment variable for the build script, like
which would build all available combinations. For tracking features I would simply have
and the corresponding API to list, untrack and so on (which would be equivalent to managing the metapackage but without somebody having to bother to build and upload an empty metapackage in the first place). |
We'll have matrix stuff like this as part of #966 - there will be features, pinning, and whatever you want, all done with jinja2 and configurable in a yaml file. CC @kalefranz about the install issue. |
Hi there, thank you for your contribution! This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs. If you would like this issue to remain open please:
NOTE: If this issue was closed prematurely, please leave a comment. Thanks! |
I have a packgage called nnpdf_use_double, which tracks a feature of the same name. The meta.yaml is copied from the documentation:
When I try to build a package that depends on this feature, I cannot get past the tests:
Conda build fails with the error:
The text was updated successfully, but these errors were encountered: