Skip to content

Commit

Permalink
fix: python executable linking
Browse files Browse the repository at this point in the history
  • Loading branch information
FlickerSoul committed Dec 11, 2023
1 parent e160690 commit 0625981
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/gapper/gradescope/resources/run_autograder
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3.12
#!/usr/bin/env python3
from gapper.gradescope.main import run_autograder

if __name__ == "__main__":
Expand Down
3 changes: 3 additions & 0 deletions src/gapper/gradescope/resources/setup.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
set -euo pipefail

# install python {{ py_major }}.{{ py_minor }}
apt-get remove -y python3
apt-get autoremove -y
apt-get update -y
apt-get install -y software-properties-common
add-apt-repository -y ppa:deadsnakes/ppa
apt-get install -y python{{ py_major }}.{{ py_minor }} python{{ py_major }}.{{ py_minor }}-distutils
ln -s -f $(which python3.12) $(which python3)

# install gapper
curl -sS https://bootstrap.pypa.io/get-pip.py | python{{ py_major }}.{{ py_minor }}
Expand Down
3 changes: 3 additions & 0 deletions tests/test_zip_file_handle.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ def test_zipping(tmp_path: Path) -> None:
set -euo pipefail
# install python {major}.{minor}
apt-get remove -y python3
apt-get autoremove -y
apt-get update -y
apt-get install -y software-properties-common
add-apt-repository -y ppa:deadsnakes/ppa
apt-get install -y python{major}.{minor} python{major}.{minor}-distutils
ln -s -f $(which python3.12) $(which python3)
# install gapper
curl -sS https://bootstrap.pypa.io/get-pip.py | python{major}.{minor}
Expand Down

0 comments on commit 0625981

Please sign in to comment.