]> git.cworth.org Git - turbot/commitdiff
Fix Makefile to not hard-code python3.8
authorCarl Worth <cworth@cworth.org>
Sun, 27 Dec 2020 19:42:07 +0000 (11:42 -0800)
committerCarl Worth <cworth@cworth.org>
Sun, 27 Dec 2020 20:23:28 +0000 (12:23 -0800)
Apparently I'm using python 3.9 now. Fix the Makefile so that the
deploy recipe should work with any version of python.

Makefile

index de0462c485bbcecf62317d5d78f5a0f21ee3717c..c0984d9916fd3636cd8c76f559add992889251a8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -78,7 +78,7 @@ deploy-lambda:
        git clone . .deploy-lambda-source
        make -C .deploy-lambda-source bootstrap
        (cd .deploy-lambda-source; . env/bin/activate; make reqs)
-       (cd .deploy-lambda-source/env/lib/python3.8/site-packages; zip -r ../../../../turbot.zip .)
+       (cd .deploy-lambda-source/env/lib/python*/site-packages; zip -r ../../../../turbot.zip .)
        (cd .deploy-lambda-source/turbot_lambda; zip ../turbot.zip turbot_lambda.py)
        (cd .deploy-lambda-source; zip turbot.zip $$(git ls-files -- turbot))
        (cd .deploy-lambda-source; \