DonJayamanne / vscode-python-manager

Python Environment & Package Manager
MIT License
119 stars 20 forks source link

Cross-platform environment setup #83

Closed superrune closed 9 months ago

superrune commented 9 months ago

Hi,

I have both a Windows and a macOS workstation that I switch between, and I need to find an easy way to keep my Python workspace cross-compatible. If I create a virtual environment in one OS, the extension want to overwrite or delete the virtual environment when I jump over to the other OS.

Is there a way to have the virtual environments have different names in different OS'es using this extension? Or is there another way to make a project folder cross-platform compatible with this extension?

Thanks for any help!

DonJayamanne commented 9 months ago

are you committing the python environment into a git repo or the like and making it part of your project?

superrune commented 9 months ago

Hi! I am using Dropbox only, and no repo of any kind.

DonJayamanne commented 9 months ago

using Dropbox only, and no repo of any

unfortunately this isn’t supported and not something I plan on supporting either You might want to file an issue against the python extension repo

I haven’t heard of anyone doing this, then again I guess there’s no reason it can’t work Interesting setup

superrune commented 9 months ago

Thanks for replying. The Python extension repo guys sent me here, actually :)

I think it can be fixed if a user was able to change the name of the virtual environment, but I will see if I can find a workaround instead.

DonJayamanne commented 9 months ago

The Python extension repo guys sent me here, actually :)

THanks, Please could you share that link/issue. I'd like to have a look, as this seems to be more of a Python extension issue than something that needs to be solved by the Python Manager.

superrune commented 9 months ago

Of course, here is the link:

https://github.com/microsoft/vscode-python/discussions/22716#discussioncomment-8077325