mise icon indicating copy to clipboard operation
mise copied to clipboard

Limit Python versions to precompiled binaries

Open rik opened this issue 1 year ago • 4 comments

Precompiled binaries are really nice but because the latest versions are not available right away, it would be nice to have mise use [email protected] install 3.12.1 quickly rather than build 3.12.2 (.2 is not available at the time of writing).

Because not everyone would like this behaviour, it probably should be an opt-in setting.

rik avatar Feb 20 '24 01:02 rik

we could probably turn python_compile into a 3-way switch so an explicit "false" would mean to always use precompiled but "null" would be the current logic

jdx avatar Feb 20 '24 17:02 jdx

As in #1970, maybe this could use these values (instead of using a null) :

  • never: never use python-build, install available precompiled binairies.
  • avoid (default) : if the requested version is available as a precompiled package, install it, else use python-build (same behavior as false currently).
  • always: always use python-build (same behavior as true currently).

Adirelle avatar Apr 27 '24 16:04 Adirelle

By the way, what happen if python-build is not available ?

Adirelle avatar Apr 27 '24 16:04 Adirelle

Mise downloads python-build. I think I prefer the current logic where nothing means use precompiled or not but "false" will always use precompiled. I think that will be more easily understood without referencing the docs.

jdx avatar Apr 27 '24 16:04 jdx