Skip to content

Relative paths and the 'python' executable #16

@khumba

Description

@khumba

Hey,

Debian no longer provides an executable named python by default[1][2], so relative repo paths don't work out of the box. Is this something you'd want to handle? Some options could be:

  • If you want to keep the code as is, then Debian users can install the python-is-python3 package to create the python -> python3 symlink, but this is a manual step that they have to know about.
  • The code could check for the existence of either python3 or python2 executables (...or just python3 if py2 compatibility isn't a concern).
  • I see there is a realpath --relative-to= option, I'm not sure if it this is equivalent to Python's os.path.relpath() but maybe the dependency on Python isn't needed.

[1] https://wiki.debian.org/Python
[2] https://www.debian.org/doc/packaging-manuals/python-policy/#unversioned-python-commands

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions