Skip to content

Commit

Permalink
hooks.make-venv: Fix shebang for cross
Browse files Browse the repository at this point in the history
  • Loading branch information
adisbladis committed Nov 25, 2024
1 parent c1a70b2 commit a779912
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build/hooks/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ in
makeSetupHook {
name = "pyproject-make-venv-hook";
substitutions = {
pythonInterpreter = python.interpreter;
inherit python;
inherit pythonInterpreter python;
hostInterpreter = python.interpreter;
makeVenvScript = ./make-venv.py;
};
} ./pyproject-make-venv-hook.sh
Expand Down
2 changes: 1 addition & 1 deletion build/hooks/make-venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


# Look for shebangs pointing to Python bin directory, rewrite them to venv directory
dep_shebang = ("#!" + os.path.dirname(sys.executable)).encode()
dep_shebang = ("#!" + os.path.join(sys.base_prefix, "bin")).encode()


class ArgsNS(argparse.Namespace):
Expand Down

0 comments on commit a779912

Please sign in to comment.