• Bug#1067785: pipx : modifies the wrong zsh init files.

    From Erwan David@21:1/5 to All on Tue Mar 26 20:10:01 2024
    Package: pipx
    Version: 1.4.3-1
    Severity: normal

    When you use zsh,
    pipx ensurepath adds

    export PATH="$PATH:/home/edavid/.local/bin"

    to both .zshrc and .zprofile, this could lead to a the directory being twice in the path, or not.

    With zsh the place to put it is ~/.zshenv




    -- System Information:
    Debian Release: trixie/sid
    APT prefers testing
    APT policy: (900, 'testing'), (800, 'stable-security'), (600, 'unstable'), (500, 'stable-updates'), (500, 'proposed-updates'), (400, 'stable')
    Architecture: amd64 (x86_64)

    Kernel: Linux 6.6.15-amd64 (SMP w/8 CPU threads; PREEMPT)
    Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    Versions of packages pipx depends on:
    ii python3 [python3-supported-min] 3.11.6-1
    ii python3-argcomplete 3.1.4-1
    ii python3-packaging 23.2-1
    ii python3-platformdirs 4.2.0-1
    ii python3-tomli 2.0.1-2
    ii python3-userpath 1.9.1-1
    ii python3-venv 3.11.6-1

    pipx recommends no packages.

    pipx suggests no packages.

    -- no debconf information

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stefano Rivera@21:1/5 to All on Sun Mar 31 18:20:01 2024
    Control: reassign -1 python3-userpath
    Control: found -1 python3-userpath/1.9.1-1
    Control: affects -1 pipx
    Control: tag -1 + upstream

    Hi Erwan (2024.03.26_14:55:30_-0400)

    Thanks for the bug report.

    This sounds like an upstream bug in userpath.
    Would you mind filing it there? I'm not a zsh user, so I can't advocate
    for correct zsh configuration as well as you can.

    https://github.com/ofek/userpath/issues

    The relevant line is: https://github.com/ofek/userpath/blob/981085be7669815a186420e1211ed9944ab928ba/userpath/shells.py#L98

    Stefano

    --
    Stefano Rivera
    http://tumbleweed.org.za/
    +1 415 683 3272

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)