diff options
author | Iikka Eklund <iikka.eklund@qt.io> | 2021-09-20 10:36:02 +0300 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-10-17 14:32:18 +0000 |
commit | 566f6dd74dbdceab9d080d43c6ff946b17d64247 (patch) | |
tree | 7deed0f1393dd69ed11210ba920991ae226c41da /conanfile.py | |
parent | 0d56fd5687b3b6bb747adb919c7d658c6ca1dd27 (diff) |
Conan: Use recipe revision mode for 'python_requires'
By default Conan uses 'minor_mode' policy for 'python_requires'
dependencies. This causes updates in 'qt-conan-common' package not to
land into users when invoking e.g. "$conan instal .. --update".
Fix this by enforcing recipe revision mode so any changes to
'qt-conan-common' recipe is received by the clients when updating
packages.
Change-Id: I225965aa76c39552bd4adc93d7e68e0ae0b38d56
Reviewed-by: Toni Saario <toni.saario@qt.io>
(cherry picked from commit acaf38cfe4e2ef19f7318d5476aa7bee7a487e80)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'conanfile.py')
-rw-r--r-- | conanfile.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/conanfile.py b/conanfile.py index f58bf92a5a..4d2af9047a 100644 --- a/conanfile.py +++ b/conanfile.py @@ -446,6 +446,8 @@ class QtBase(ConanFile): def package_id(self): # https://docs.conan.io/en/latest/creating_packages/define_abi_compatibility.html self.info.requires.package_revision_mode() + # Enable 'qt-conan-common' updates on client side with $conan install .. --update + self.info.python_requires.recipe_revision_mode() # Remove those configure(.bat) options which should not affect package_id. # These point to local file system paths and in order to re-use pre-built |