This repository has been archived by the owner on May 21, 2020. It is now read-only.
[RFC] Two recipes for regular flex and flex_installer in one repo: use python_requires #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In response to bincrafters/community#625
This pr is very similar to #4 in that it creates multiple recipes in one repo.
This main difference is that this one is using
python_requires
.This allows the common logic to be put in a common base class
flex_base
, which is subclassed byflex_installer
andflex
.Imho, it looks much cleaner.
But alas, it has a major problem (and showstopper):
python_requires
in the flex and flex_installer recipe requires a full conan reference.In this pr, this reference is hardcoded to
flex_base/2.6.4@bincrafters/stable
which is not correct.The username and channel of flex_base should default to be the same as the username and channel of the flex_installer and flex recipe.
I do not know whether this is a limitation of
python_requires
or a limitation of my knowledge.Imho, a ConanFile class should have the ability to override the username and channel of a python_requires.
Please comment if you know how to fix this.
Notes:
flex_base
inbuild.py