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 was wondering if there was a good setup for VSCode in a Rez context containing Python 2.7 (and as such, Python 2 libraries).
My issue right now is the following:
I can either open VSCode outside of the Rez context, but then I need to manually specify the path to all libraries to get autocompletion/analysis.
Or I can open VSCode in my Rez context, but then the various tools like black, isort etc... don't work anymore because they try to use the Python 2 libraries of the Rez context, which are incompatible with those Python 3 only tools.
I've also tried overriding the various VSCode settings to use a Python 3 interpreter in a virtualenv with my dev dependencies, while in a Rez context, but that didn't work, the Rez context libraries still win.
So I've been using the first solution for a while now, since I can't switch to Python 3 right now, but I was wondering if they were additional solutions I didn't think about ?
EDIT: as a bonus question, did you manage to make the VSCode testing integration work with pytest in a Rez context ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone,
I was wondering if there was a good setup for VSCode in a Rez context containing Python 2.7 (and as such, Python 2 libraries).
My issue right now is the following:
black
,isort
etc... don't work anymore because they try to use the Python 2 libraries of the Rez context, which are incompatible with those Python 3 only tools.I've also tried overriding the various VSCode settings to use a Python 3 interpreter in a virtualenv with my dev dependencies, while in a Rez context, but that didn't work, the Rez context libraries still win.
So I've been using the first solution for a while now, since I can't switch to Python 3 right now, but I was wondering if they were additional solutions I didn't think about ?
EDIT: as a bonus question, did you manage to make the VSCode testing integration work with
pytest
in a Rez context ?Beta Was this translation helpful? Give feedback.
All reactions