You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: make.sh
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,13 @@ echo "$(date +'%0Y-%0m-%0d %0R:%0S'): First we delete all left over data."
19
19
rm "book.pdf"||true
20
20
rm -rf "$currentDir/website"||true
21
21
22
-
echo"$(date +'%0Y-%0m-%0d %0R:%0S'): Initialization: We install all required Python packages from requirements.txt."
22
+
echo"$(date +'%0Y-%0m-%0d %0R:%0S'): First, we need to setup a virtual environment in a temp directory."
23
+
tempDir="$(mktemp -d)"
24
+
echo"$(date +'%0Y-%0m-%0d %0R:%0S'): Got temp dir '$tempDir', now creating environment in it."
25
+
python3 -m venv "$tempDir"
26
+
echo"$(date +'%0Y-%0m-%0d %0R:%0S'): Activating virtual environment in '$tempDir'."
27
+
."$tempDir/bin/activate"
28
+
echo"$(date +'%0Y-%0m-%0d %0R:%0S'): Initialization: We install all required Python packages from requirements.txt to virtual environment in '$tempDir'."
0 commit comments