[macports-ports] 01/06: pgcli: updates.

Ryan Schmidt ryandesign at macports.org
Fri Jan 20 02:31:35 UTC 2017



> On Jan 19, 2017, at 20:28, Ivan Larionov <xeron.oskom at gmail.com> wrote:
> 
>> On Thu, Jan 19, 2017 at 5:58 PM, Ryan Schmidt <ryandesign at macports.org> wrote:
>> 
>> > On Jan 19, 2017, at 17:29, Ivan Larionov <xeron.oskom at gmail.com> wrote:
>> >
>> > How do we control postgresql version for py-psycopg2 when installing pgcli then? Is there a way to do something like this?
>> >
>> > if variant postgresql96 {
>> >   depends_lib-append py{python.version}-psycopg2 +postgresql96
>> > }
>> 
>> You cannot declare a dependency on a variant. MacPorts does not contain that functionality.
>> 
>> In what way does pgcli care what variant of pyXX-psycopg2 is installed?

> 
> pgcli doesn't care, but, for example, user of postgresql96 don't want to install postgresql95 when installing pgcli just because default variant of py-psycopg2 is postgresql95.

Then that user should either put "+postgresql96" into their variants.conf or should run "sudo port install pgcli +postgresql96" (the variant will propagate to any uninstalled dependencies)

Also, the default variant of py-psycopg2 should be changed to +postgresql96 since that is the latest stable version.



More information about the macports-dev mailing list