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
I've specified the Conan version, operating system version and any tool that can be relevant.
I've explained the steps to reproduce the error or the motivation/use case of the question/suggestion.
conan version: 1.7.4
os: Windows 7
Python 3.6.5
We are using multiple python_requires calls in our recipes. It seems that a second python_requires call overwrites objects of the previous python_requires call.
Given the following two python modules:
If I import both modules via the python_reuqires I would expect the follwing behavior:
But the behavior is the following:
So the second python_requires overwrites the function and the variable from the first python_requires:
This seems a bit confusing to us.
Can you please have a look at this?
Thanks!
The text was updated successfully, but these errors were encountered:
I think we have the same problem here.
We want to define a list of packages in a Python module which we want to import into our recipe via 'python_requires'. The Python module defines a global variable called 'packages'.
It works as long as we only import one module, but as soon as we import a second one with the same variable 'packages' defined, the variable of the first module gets overwritten.
Maybe you can distinguish the modules internally by giving each one internally a different hash?
I think it can be improved by assigning a different name to each loaded module, almost the same behavior implemented for the plugins functionality in these lines.
To help us debug your issue please explain:
conan version: 1.7.4
os: Windows 7
Python 3.6.5
We are using multiple python_requires calls in our recipes. It seems that a second python_requires call overwrites objects of the previous python_requires call.
Given the following two python modules:
If I import both modules via the python_reuqires I would expect the follwing behavior:
But the behavior is the following:
So the second python_requires overwrites the function and the variable from the first python_requires:
This seems a bit confusing to us.
Can you please have a look at this?
Thanks!
The text was updated successfully, but these errors were encountered: