<div dir="ltr">How do we control postgresql version for py-psycopg2 when installing pgcli then? Is there a way to do something like this?<div><br><div>if variant postgresql96 {</div><div> depends_lib-append py{python.version}-psycopg2 +postgresql96</div><div>}</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 19, 2017 at 6:39 AM, Aljaž Srebrnič <span dir="ltr"><<a href="mailto:g5pw@macports.org" target="_blank">g5pw@macports.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> On 17 gen 2017, at 19:09, Joshua Root <<a href="mailto:jmr@macports.org">jmr@macports.org</a>> wrote:<br>
><br>
> I guess you're aware that this doesn't actually do anything, and the variants only exist to encourage the user to specify one when installing?<br>
<br>
</span>Yep, that was the intention.<br>
<span class=""><br>
> The downsides:<br>
> * The situation where the user doesn't specify a variant is contradictory. pgcli will be installed with +postgresql96 but py-psycopg2 will be installed with +postgresql95. Similarly when the user already has py-psycopg2 installed, the variant they specify when installing pgcli will have no actual effect.<br>
><br>
> * Binary distribution now doesn't happen if the user asks for anything but +postgresql96, even though the installed files are identical.<br>
<br>
</span>Hmm, those are actually very good points. I think we should remove the variants from pgcli altogether. What do you think, Ivan?<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Aljaž Srebrnič a.k.a g5pw<br>
My public key: <a href="https://g5pw.me/key" rel="noreferrer" target="_blank">https://g5pw.me/key</a><br>
Key fingerprint = 2109 8131 60CA 01AF 75EC 01BF E140 E1EE A54E E677<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">With best regards, Ivan Larionov.</div>
</div>