Add documentation with mkdocs

This commit is contained in:
Valentin Niess
2022-02-15 16:46:31 +01:00
parent 6d308d3c30
commit 2f9407dda1
13 changed files with 1970 additions and 7 deletions

View File

@@ -63,7 +63,12 @@ def patch_pip_install():
shebang = shebang.split()
python_x_y = os.path.basename(shebang.pop(0))
if not python_x_y.startswith('python'):
continue
head, altbody = body.split(os.linesep, 1)
if head.startswith("'''exec' /"): # Patch for alt shebang
body = altbody.split(os.linesep, 1)[1]
python_x_y = os.path.basename(head.split()[1])
else:
continue
relpath = os.path.relpath(
sys.prefix + '/../../usr/bin/' + python_x_y,