Use XDG standard ~/.local for user software installs

~/.local is also where things like pip install --user
seem to install things, so we should use that instead of ~/local.
pull/313/head
yuvipanda 2018-05-18 18:21:41 -07:00
rodzic a6c001a391
commit 751531b632
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -71,9 +71,6 @@ ENV {{item[0]}} {{item[1]}}
{% endfor -%}
{% endif -%}
# So users can move executables here with postBuild, issue #557
ENV PATH '/home/jovyan/local/bin':${PATH}
{% if path -%}
# Special case PATH
ENV PATH {{ ':'.join(path) }}:${PATH}
@ -200,7 +197,10 @@ class BuildPack:
Just sets the PATH environment variable. Separated out since
it is very commonly set by various buildpacks.
"""
return []
# Allow local user installs into ~/.local, which is where the
# XDG desktop standard suggests these should be
# See https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
return ['$HOME/.local/bin']
def get_labels(self):
"""