Ahh okay I understand now. Yes you’ll have to separately define pip based packages in requirments.txt and apt packages in setup.sh. The respective packaging command is run on each entry in each file. Therefore you need to make sure the package exists in either apt or pip.
I did try to install the python package “spidev” via pip first using the requirements.txt file.
Problem is that installation of spidev requires an arm-gcc compiler.
I will now try to also installing build-essentials…
I found an alternative python package (python3-spi) for which no C libraries need to be build on installation, just in case someone faces the same problem.
Not sure how to close this, if you can, please do. Thank you.