Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative paths and the 'python' executable #16

Open
khumba opened this issue Sep 9, 2023 · 1 comment
Open

Relative paths and the 'python' executable #16

khumba opened this issue Sep 9, 2023 · 1 comment

Comments

@khumba
Copy link
Contributor

khumba commented Sep 9, 2023

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

@khumba
Copy link
Contributor Author

khumba commented Sep 9, 2023

(Also --relative-to= seems to be a GNU thing, it doesn't look like it's present on Mac.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant