Closed jgsogo closed 4 years ago
I know it's a draft, but the idea sounds good :+1:
It was a draft, but from my POV is ready to merge, right?
I think it makes sense and it is safe to merge
My only concern is the subprocess.call(['conan', 'install', 'zlib/1.2.11@conan/stable'], env=env)
line, I would love to remove it, but I need to initialize the settings.yml
, remotes.json
, profile-default
,... all those files that are automagically created if they are not already there. If anyone thinks about an alternative, please, say, it would be needed.
is possible using some wrong reference? you could try:
try:
subprocess.call(['conan', 'install', 'foobar/0.1.0@conan/stable'], env=env)
except:
pass
What about just conan profile new default --detect
? I think it initializes everything additionally to creating the default profile
Suggestion by @uilianries, works. If I just run conan profile. ...
it doesn't initialize the remotes :/
It looks nice, ready to go IMO
The examples are run using scripts like
build.py
,build.bat
orbuild.sh
, these scripts are inside the folder where the example is contained and users may run them to check that example works in their machine. Taken into account this, examples can't modify the user cache (they may install packages but configuration files, remotes,... everything should be the same before and after).Not covered in this PR: metadata of references, we don't want an example to change the
remote
associated with a reference or package.closes #28