mandeep / sublime-text-conda

Work with conda environments in Sublime Text 3
BSD 3-Clause "New" or "Revised" License
26 stars 10 forks source link

Get list of python versions from online repo when creating environment #26

Closed titus-ong closed 4 years ago

titus-ong commented 4 years ago

Previously, there were only the options of Python 2.7, 3.5, 3.6 and 3.7 when creating a new conda environment. This update removes that fixed list and gets an updated list from the online conda repo so the latest Python versions are available.

This should detect the platform properly (Windows, Linux or OSX) and download the 32-bit Python binary by default. I've included an architecture option in the settings so users can download the 64-bit version if required. I also included a dependencies.json for the requests module to retrieve the repo URL.

Please let me know if there's anything I can change/improve on.

mandeep commented 4 years ago

@titus-ong thanks this looks great! I'll try it out and let you know how it goes. One thing I think that needs to be changed is that architecture should default to 64 instead of 32.

titus-ong commented 4 years ago

@mandeep cool, I've changed it to be 64 by default. May I know why though? I must admit I am not familiar with these things but I thought Python is 32bit by default when downloaded (at least for Windows), so I thought it made more sense for 32 to be the default.

mandeep commented 4 years ago

The architecture field is for the architecture of the system. Most systems are 64bit. I think Anaconda provides 32bit builds for Linux and Windows, but I will need to double check.

mandeep commented 4 years ago

@titus-ong I was able to test this out and it appears everything works amazingly. Thanks so much for your contribution!