In a thread here I asked about a problem I'm having with psycopg 3 support. As a workaround, I thought I'd create a file named requirements-vercel.txt, which will I use instead of the default requirements.txt.
The only difference between the two files, is that requirements-vercel requires an older version of psycopg, that's it.
The buildfiles.sh contains reference to the appropriate file:
echo "Step 7: Installing Python dependencies"python3 -m pip install --upgrade pippython3 -m pip install --upgrade setuptoolspython3 -m pip install -r requirements-vercel.txtpython3 -m pip uninstall -y psycopg psycopg2 psycopg2-binarypython3 -m pip install psycopg2-binaryHowever, it seems that something along the way is still installing dependencies from requirements.txt. I don't have any other explanation for what's happening. I also disabled the build cache to be sure.
As a proof: if I change the contents of requirements.txt to be identical to the contents of requirements-vercel.txt, the app works and does not error.