You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diff --git a/conanfile.py b/conanfile.py
index 745af9c..0355c59 100644
--- a/conanfile.py+++ b/conanfile.py@@ -20,6 +20,7 @@ class fooRecipe(ConanFile):
# Sources are located in the same place as this recipe, copy them to the recipe
exports_sources = "CMakeLists.txt", "src/*", "include/*"
+ python_requires = "cmake-python-deps/[>=0.3.0]@mtolympus/stable"
def config_options(self):
if self.settings.os == "Windows":
Also, I have a feeling that this might related to nested python_requires. I don't get the same issue when trying to install pyvenv/[>=0.2.2]@mtolympus/stable, which is a python_requires within cmake-python-deps. Actually, this issue is also resolved if I:
Ensure that pyvenv is already available in the local cache, i.e.
diff --git a/conanfile.py b/conanfile.py
index 745af9c..0355c59 100644
--- a/conanfile.py+++ b/conanfile.py@@ -20,6 +20,7 @@ class fooRecipe(ConanFile):
# Sources are located in the same place as this recipe, copy them to the recipe
exports_sources = "CMakeLists.txt", "src/*", "include/*"
+ python_requires = "cmake-python-deps/[>=0.3.0]@mtolympus/stable", "pyvenv/[>=0.2.2]@mtolympus/stable"
def config_options(self):
if self.settings.os == "Windows":
So it looks like the issue here is that the resolver isn't able to traverse the python_requires dependency tree where a dependency exists solely on a remote
samuel-emrys
changed the title
[bug] Failure to resolve python-requires when it only exists on a remote and not the local cache
[bug] Failure to resolve python-requires required by a python-requires when it only exists on a remote and not the local cache
Apr 10, 2023
Hi @samuel-emrys thanks for the detailed report and follow-up, it's really appreciated. I've identified a potential issue that might fix this (Does for a simplified test case locally for me) :)
Environment details
I've also replicated this within a standard conanio docker environment.
Steps to reproduce
Replicate the failure
conanfile.py
:mtolympus
remote:$ conan install .
At which point it fails with the error below.
Circumvent the failure
Now what does work, is if i try to install this as a package
And then the python-requires is able to be resolved in the local cache so a subsequent
conan install
works:$ conan install .
Logs
The text was updated successfully, but these errors were encountered: