To run:
- Create a shell file at the root of your project. For example
main.sh
. - Make it executable using
chmod +x main.sh
- Add a
dependencies.txt
file at the same level of themain.sh
file. Write your dependencies in it. A sample is available in this repository. - Add the following line to the beginning of the shell file
source <(curl -fsSL https://raw.githubusercontent.com/shourovfoisal/python-bootstrapper/refs/heads/main/main.sh)
- After the previous line, write your code that executes your python file. For example:
python3 script.py
- A venv will be created with the desired dependencies, and your code will be executed right after it.