-
Notifications
You must be signed in to change notification settings - Fork 38
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
How to add package of the same version but different variants to the same profile file? #116
Comments
Hi @loonghao I assume that your # package.py
name = "conan"
variants = [
["python-2"],
["python-3"],
]
... correct ? And the profile, would this work ? name = "conan_pack"
version = "0.1.0"
tools = [
"conan"
]
requires = [
"conan",
"~python-2",
"~python-3",
] Edit
|
@davidlatwe Thank you for your reply, the package.py of Conan is like you mentioned and the profile like your mentioned I tested still no work. (due to I think if we don’t auto-resolve the dependency package in requires in the profile when we start the GUI and switch the profile I guess we won’t have these issues. |
Sorry, just have a test and I found that I miss guided. Here's my test package named # package.py
name = "foo"
version = "1"
variants = [
["python-2"],
["python-3"],
]
tools = [
"python --version",
] I add a command Here's my profile : name = "test_dev"
version = "1.0.0"
requires = [
"~foo",
] We won't need to add Python explicitly into And here's the operation GIF : You can go to "Packages" page, find the "Python" and double click the "version" column to change the version. Which it will patch the current resolved context, and give you the Python version you need. But the proper way for this I think is to implement #96, or you may try the link in #96 👉🏼 https://allzpark.com/gui/#multiple-application-versions Hope this helps 🤞🏼 |
@davidlatwe The #96 mentioned maybe a little different from what I want most. name = "my dev profile"
version = "0.1.0"
_data = {
"apps": [
{
"maya_a": {
"requires": ["maya-2018", "maya_plguinb-xxx", "maya_plguina-xxx"],
"command": "maya"
},
"maya_b": {
"requires": ["maya-2019", "maya_plguina-xxx", "maya_plguinb-xxx", "maya_plguinc-xxx"],
"command": "maya"
},
"conan (python 3)": {
"requires": ["conan", "python-3",],
"command": "conan -h"
},
"conan (python 2)": {
"requires": ["conan", "python-2",],
"command": "conan -h"
},
"custom tool": {
"requires": ["python-3", "pyside2", "pyyaml", "xxxx", "xxxx"],
"command": "mytool -v"
},
"nuke-9 test profile": {
"requires": ["nuke-9", "nuke_plugin-xxx"],
"command": "nuke"
},
}
]
} |
Just dropping a quick reply. With the example profile you gave, looks like what you are after is Not sure, need to have a closer look when I back to office. |
I have tested using the rez env package_a-xxx package_b-xxx --output mytool.rxt rez env --input mytool.rxt -- tool -h But I don’t know how to use it in |
Simply output/input When the suite is created, should be able to wrap it as another package and put into Allzpark. 🤔 (Haven't done that before) But I still have a feeling that you actually won't need those as long as you can change application version in Allzpark.
Perhaps you could elaborate more about why this need ? |
Hi @davidlatwe Sorry for the late reply, I created a project rez-tools to do that, we just want to make assembly and configuration easier. Maybe it's because I use it wrong, I always encounter the problem of package environment variable conflict when configuring different software. We hope to be able to add different combinations of commands in the same profile. |
@davidlatwe Thank you, closing the issues. |
Hi all,
I want to know how to add a package of the same version but different variants to the same profile file?
For instance, I want to display the same version of Conan in the GUI, but it comes from two different variants, one is python3 and the other is python2.
As far as I know, the profile cannot directly implement this structure, so I created two new packages for testing.
Then if I do not weakly reference python in the two newly created packages, I will get a conflict error similar to the following
If I change both of them to weak references, they can run normally, but when I click start cmd, the newly started cmd does not resolve to the Conan and python environment.
I would like to ask if there are any good suggestions or solutions for this situation, Thanks!
The text was updated successfully, but these errors were encountered: