-
Notifications
You must be signed in to change notification settings - Fork 71
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
generate packages for different option values #457
Comments
Hi @boussaffawalid ! Do you have a log showing your explanation? Also, I would like which env vars you are using. Regards |
@uilianries here is a minimal example to reproduce the issue |
@boussaffawalid Now I see your question. Unfortunately, CONAN_OPTIONS was not designed to do that, the current behavior is correct. What you want is swapping the option values, which is another case. I recommend you customizing your from cpt.packager import ConanMultiPackager
import copy
if __name__ == "__main__":
builder = ConanMultiPackager(options=["foo:qux=True", "foo:bar=True"])
builder.add_common_builds()
for item in copy.copy(builder.items):
new_options = copy.copy(item.options)
new_options["foo:qux"] = False
new_options["foo:bar"] = False
builder.add(settings=item.settings, options=new_options, env_vars=item.env_vars, build_requires=item.build_requires)
builder.run() |
@uilianries thank you, that what we are doing currently. I just thought that CPT should support this out of the box. |
@boussaffawalid Your request is not bad, but inserting option values which are not explicit, are not good IMO. For instance, fPIC is only distributed as True. I think we could add new option like |
@uilianries I agree and think such new option will be very handy |
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Feature request
Right now if I
set CONAN_BUILD_TYPES="Debug,Release"
CPT will create two packages for Debug and Release build types.However CONAN_OPTIONS does not work in the same way. I'm not sure if this is a feature or a bug.
For example, if I
set CONAN_OPTIONS ="foobar:with_bar=True,foobar:with_bar=False"
only one package is created.It would be great if CPT allow creating permutations for options as well,
Environment Details
The text was updated successfully, but these errors were encountered: