File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -335,20 +335,9 @@ commands:
335
335
cd redisbench-admin
336
336
curl -sSL https://install.python-poetry.org | python3 -
337
337
export PATH="/root/.local/bin:$PATH"
338
- poetry install -vvv
339
- RUN_TEMPLATE=$(cat \<<END_RUNFILE
340
- #!/usr/bin/env python
341
- # -*- coding: utf-8 -*-
342
- import re
343
- import sys
344
- from redisbench_admin.cli import main
345
-
346
- if __name__ == "__main__":
347
- sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
348
- sys.exit(main())
349
- END_RUNFILE
350
- )
351
- echo "$RUN_TEMPLATE" > run.py
338
+ poetry install
339
+ source $(poetry env info --path)/bin/activate
340
+ echo "IyEvdXNyL2Jpbi9lbnYgcHl0aG9uCiMgLSotIGNvZGluZzogdXRmLTggLSotCmltcG9ydCByZQppbXBvcnQgc3lzCmZyb20gcmVkaXNiZW5jaF9hZG1pbi5jbGkgaW1wb3J0IG1haW4KCmlmIF9fbmFtZV9fID09ICJfX21haW5fXyI6CiAgICBzeXMuYXJndlswXSA9IHJlLnN1YihyIigtc2NyaXB0XC5weXd8XC5leGUpPyQiLCAiIiwgc3lzLmFyZ3ZbMF0pCiAgICBzeXMuZXhpdChtYWluKCkpCg==" | base64 -d > run.py
352
341
chmod +x run.py
353
342
ln -s run.py /usr/local/bin/benchmark-admin
354
343
cd ..
You can’t perform that action at this time.
0 commit comments