There are several commands. Each of these commands performs certain actions. I want to combine all these commands into a single script file. After running this script, I want to get a .zip file at the output in the specified directory. What is the best way to create this script to work on Linux and macOS operating systems? Which is better to use .sh, Makefile, or something else?
For example, the pip install cassandra-driver command installs a third-party package in my virtual environment? I can install this third-party package in a specific directory on my operating system using the --target command. Is it possible to immediately wrap this downloadable package in a .zip file? Plus you need to add a file to this .zip file config.py file.
macOS:
mkdir /src/dependencies/cassandra-driver
pip install cassandra-driver --targer /src/dependencies/cassandra-driver
zip -r cassandra-driver.zip /src/dependencies/cassandra-driver /src/config.py