Skip to content

add JULIA_PYTHONCALL_EXE=@venv to load python from .venv folder #668

Closed

Description

@clouds56

Is your feature request related to a problem? Please describe.
I'd like to disable CondaPkg and use python in manually created .venv

Describe the solution you'd like
add meta config JULIA_PYTHONCALL_EXE=@venv that would load .venv/bin/python or .venv/Scripts/python.exe (on windows).
The folder .venv is at the same folder with (Julia)Project.toml just like .CondaPkg

Additional context
Now we have @CondaPkg (default), and @PyCall, I'd like to add @venv to simplify configuration.

Activity

  1. cjdoris commented on Sep 15, 2025

    @cjdoris
    Member

    This is a nice idea!

  2. cjdoris commented on Sep 15, 2025

    @cjdoris
    Member

    Relatedly, we could also change the env var so that if you pass a relative path, it is interpreted as relative to the current project (instead of the current working directory). This might be breaking though.

    For example JULIA_PYTHONCALL_EXE=.venv/bin/python would be equivalent to @venv (on Unix).

  3. cjdoris commented on Sep 15, 2025

    @cjdoris
    Member

    Its a slippery slope but we could also add @uv which is like @venv but also runs uv sync first.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions