Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.37 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. rm -rf env
  6. python3 -m venv env
  7.  
  8. env/bin/pip install wheel
  9. env/bin/pip install sqlalchemy
  10.  
  11. cat > test.py <<EOF
  12. from sqlalchemy.cutils import _distill_params
  13. import time
  14.  
  15. while True:
  16.     print('calling function')
  17.     _distill_params((), {})
  18.     time.sleep(1)
  19. EOF
  20.  
  21. sh -c 'sleep 2 && env/bin/pip install -I sqlalchemy' &
  22. env/bin/python test.py
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement