Ok, sounds reasonable.

And doing `port install pgcli +postgresql96` without predefined variants works 
indeed.

https://github.com/macports/macports-ports/pull/171
https://github.com/macports/macports-ports/pull/172

Thanks.

--
With best regards, Ivan Larionov.

> On Jan 19, 2017, at 6:31 PM, Ryan Schmidt <[email protected]> wrote:
> 
> 
> 
>> On Jan 19, 2017, at 20:28, Ivan Larionov <[email protected]> wrote:
>> 
>>> On Thu, Jan 19, 2017 at 5:58 PM, Ryan Schmidt <[email protected]> 
>>> wrote:
>>> 
>>>> On Jan 19, 2017, at 17:29, Ivan Larionov <[email protected]> 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.
> 

Reply via email to