koxudaxi / rye-pycharm-plugin

A rye integration plugin for JetBrains PyCharm.
Apache License 2.0
19 stars 4 forks source link

Add support for Toolchain Download #7

Open imbev opened 1 year ago

imbev commented 1 year ago

Describe the bug Rye project creation ignores base interpreter setting

To Reproduce Steps to reproduce the behavior:

  1. Install Python 3.10
  2. Open New Project Wizard
  3. Set Environment to Rye
  4. Set Base Interpreter to python3.10
  5. See venv created with Python 3.11

Expected behavior Rye creates venv with Python 3.10

Environments (please complete the following information):

Additional context I suggest consideration on how this plugin should handle Rye's toolchain situation. I think it would be beneficial to have support for choosing a base interpreter, as well as support for choosing a particular version for Rye to pin and download.

Funding

Fund with Polar

koxudaxi commented 1 year ago

@imbev I found a way to list downloadable toolchains. https://github.com/mitsuhiko/rye/pull/52

I will use the list for the feature.

imbev commented 1 year ago

Idea's Download JDK menu might be a good model for an interface for Rye toolchain.

linux-china commented 1 year ago

@imbev I found a way to list downloadable toolchains. mitsuhiko/rye#52

I will use the list for the feature.

This feature is very useful, thanks :)