Provide entrypoint for successful pipx installation
Author: GitznikCreated Jan 25, 2024Updated Sep 7, 2026
Labelsenhancement
Runtime Environment
- Operating system and version: macos 13.6.3
- Terminal emulator and version: macos terminal
- Python version: 3.12.1
- Ranger version/commit: 1.9.3
- Locale:
Current Behavior
Hey there,
currently this tool cannot be invoked via pipx, if pipx bases its virtual environments in a path that contains spaces, which is the default on mac, as per the mac documentation. This is the case since pipx 1.3.
The solution is to provide a entry point, see the pipx docs.
As you recommend installing this tool via pipx, it would be great if you could update your package accordingly.
Thanks!
based on https://github.com/pypa/pipx/issues/1212
Expected Behavior
Entrypoint available so the package can be installed correctly, even if the venv is in a path with spaces.
Context
This was reported in pipx under this issue: https://github.com/pypa/pipx/issues/1226
Possible Solutions
Provide an entrypoint definition.
Steps to reproduce
- Set the
PIPX_HOMEenvironment variable to a path with spaces pipx install ranger-fmranger-> fails because the shebang of the ranger executable contains a space
Traceback
Source: ranger/ranger