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
[feature] Environment variables for self-consumption #9177
Comments
Hi @ytimenkov Do you mean the current Heads-up: It seems we are refactoring VirtualEnv -> VirtualBuildEnv and VirtualRunEnv. The logic is different, the use case is different, seems it make sense. This is merged in develop for 1.39. Indeed, If necessary we could provide more examples about this, but probably the question is if Conan should do something automatic, like take the current layout and add it to the |
Yes, I mean
Being bit more on explicit end of spectrum in that case is fine. Repetition could be avoided by extracting into functions anyways.
Ah, I see now... I think I got the impression that it provides only This could work. In fact that's what I do now, but with I also was under impression that each generator "owns" files. For example if one runs -g VirtualEnv -g MyVirtualEnv they won't overwrite
Build systems - yes, but this is for consuming / testing, especially in multi-stage CI. There are more open questions in this area...
The tribe could be asked 😉 Although I agree that this could be an abuse of everyones time... Maybe as a part of some bigger epic. |
I've looked at the code. Now reimplementing I found that toolchains also register to auto-activate 👍. I just wonder how to make it easier for developer and avoid need to "activate" too many files. Generate an "activate_everything.sh" 🤭?.. Maybe |
Hi @memsharded, I'd like to follow up on #8534
I assumed that when installing package with
develop = True
(i.e.conan install .
in a directory with the recipe) means that I want to run it as well.In my case it would be a simplification if
<build_folder>/bin
was added toPATH
so I can run tests with same command as if I installed my package by reference (or other variables I set inpackage_info
).However I couldn't find way to add more variables to produced neither build_env nor run_env from inside recipe.
package_info
is not called in this case andVirtualEnv
class doesn't provide means to add custom variables before calling itsgenerate()
method.Something similar to layouts duality: local vs in the cache.
I wonder if this use-case makes sense or your (a Conan team) thoughts about it.
The text was updated successfully, but these errors were encountered: