summaryrefslogtreecommitdiff
path: root/src/portal/scripts
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2024-04-09 11:24:01 -0400
committerAndrew Opalach <andrew@akon.city> 2024-04-09 11:24:01 -0400
commit02f3d3565602146bbbfce85b2719246f24036cb9 (patch)
treec6588ffe297b777e36260effa4fa42b958ca6ba3 /src/portal/scripts
parentbbf3314165182e402ff25acccddc004a87f81ef0 (diff)
downloadcamu-02f3d3565602146bbbfce85b2719246f24036cb9.tar.gz
camu-02f3d3565602146bbbfce85b2719246f24036cb9.tar.bz2
camu-02f3d3565602146bbbfce85b2719246f24036cb9.zip
Massive restructure and many changes
- The server-side list concept is still a wip Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/portal/scripts')
-rwxr-xr-xsrc/portal/scripts/create_vendor.sh28
-rwxr-xr-xsrc/portal/scripts/run_py.sh4
2 files changed, 32 insertions, 0 deletions
diff --git a/src/portal/scripts/create_vendor.sh b/src/portal/scripts/create_vendor.sh
new file mode 100755
index 0000000..f4d551e
--- /dev/null
+++ b/src/portal/scripts/create_vendor.sh
@@ -0,0 +1,28 @@
+#! /usr/bin/env sh
+
+python3 -m venv ./venv
+source ./venv/bin/activate
+
+cd vendor/
+rm -r vendor/
+
+pip3 install -r ../requirements.txt --upgrade --target=./vendor
+
+cd yt-dlp/
+pip3 install . --upgrade --target=../vendor
+cd ../
+
+cd snscrape/
+pip3 install . --upgrade --target=../vendor
+cd ../
+
+cd pixivpy/
+pip3 install . --upgrade --target=../vendor
+cd ../
+
+cd instagrapi/
+pip3 install . --upgrade --target=../vendor
+cd ../
+
+cd ../
+rm -r venv
diff --git a/src/portal/scripts/run_py.sh b/src/portal/scripts/run_py.sh
new file mode 100755
index 0000000..ddbe869
--- /dev/null
+++ b/src/portal/scripts/run_py.sh
@@ -0,0 +1,4 @@
+#! /usr/bin/env sh
+export PYTHONDONTWRITEBYTECODE=1
+export PYTHONPATH=$HOME/c/camu/src/portal/vendor/vendor
+python3 $@