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

2024-03-31 Thread Stefano Rivera
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



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

2024-03-26 Thread Erwan David
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-packaging23.2-1
ii  python3-platformdirs 4.2.0-1
ii  python3-tomli2.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