Skip to content

Python Manager in Frappe Docker #1806

Description

@adithyaappu

As far as I understood, the bench now uses uv as python version and package manager. It is added as a dependency for bench
https://github.com/frappe/bench/blob/5107f1df45eb5f780a54073d027cab7442a39b46/pyproject.toml#L31C1-L31C17

Docker images in this repo uses pyenv, as seen here,
https://github.com/frappe/frappe_docker/blob/99d9a1dc385d8a0660a67b0cbbfeac3d5229e58c/images/bench/Dockerfile#L101C1-L105C49

I think this is going to create conflicts, as both are trying to manage the python version.

My suggestions,

  1. Images should be migrated to uv, since it is a hard dependency by bench. So remove the pyenv from Dockerfile.
  2. Version and Python environment must be set with uv instead of pyenv.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions