How to install py-psycopg2 package for Postgresql 14?

If I try and install the py-psycopg2 package it tries to install the postgresql13-client package which conflicts with the postgresql14-client and postgresql14-server package. I don't see a way to flavor this port for a specific version of Postgresql. Is there a way or does it really only work with postgresql13?
 
Packages are linked against defaults. If you need specific version of something, you can set it in make.conf and compile the port.
DEFAULT_VERSIONS+=pgsql=14 will do a trick

For example I'm still using pgsql12, so I have DEFAULT_VERSIONS+=pgsql=12 in my poudriere settings.
 
What if I want to use pkg? I'm using Ansible to install packages for my host with ansible.builtin.package so ports doesn't seem to be an option right now.
 
Package dependencies are set in stone and cannot be changed. If you want/need to deviate from the defaults you should set up your own repository.
 
Back
Top