-
Notifications
You must be signed in to change notification settings - Fork 44
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
Is the value of the "platforms" field correctly checked and used ? #240
Comments
The docs say non-null meaning any value that is not this_is_null: null,
this_is_null_too: None,
this_is_not_null: {} |
Can you show the paths of the shortcuts created, please? 🙏 |
OK about nullish vs falsey (though |
If I use the following json file
I get these
Is this what you need? |
Yes, that confirms your report, thanks. I'm wondering at what point we accidentally changed the logic. Can you check if setting the platforms explicitly to |
I think this is the problem: menuinst/menuinst/platforms/base.py Lines 218 to 223 in e5c7532
If there is no So, the documentation either needs to be changed or the requirement that there be a |
@jaimergp I had forgotten that json files looked like a Python dictionaries, but were not. And that you have to use So, here is what I get with the following json file
If I use instead
I get
Same kind of message if I use
It seems I am triggering weird Placeholders related errors when I set |
That behavior here is expected (apart from the placeholders). In the first case, you have In the second example, you have all platforms set to |
Checklist
What happened?
I have kept on playing the the turtle minimal example and I'm not sure the
platforms
field is checked correctlyplatforms
is A dictionary with up to three keys. All of them are optional but you must at least define one. The presence of a key with a non-null value enables the shortcut for that platform. If you don’t include any, shortcutsI'm using a Windows computer, and I would expect that something gets installed (on Windows) only if:
win
keywin
is non-nullWhat do you mean by non-null value anyway? Something that is
True
?The turtle minimal example defines
In my opinion empty dictionaries test as False and should be considered as null values so the example is a bit odd
I have also experienced the following:
win
key is (technically)False
platforms
("platforms": {}
), the shortcuts are still installed on my Windows computer (even if there is not even awin
key!)It seems like shortcuts are always installed for Windows (regardless of how
platforms
is defined)Conda Info
Conda Config
Conda list
Additional Context
This may be also related to #234
The text was updated successfully, but these errors were encountered: