<div dir="ltr">I've created a GitHub issue for this feature request:<div><br></div><div>"pip install/upgrade --save"<br><div><a href="https://github.com/pypa/pip/issues/3884">https://github.com/pypa/pip/issues/3884</a><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 31, 2016 at 2:29 PM, Wes Turner <span dir="ltr"><<a href="mailto:wes.turner@gmail.com" target="_blank">wes.turner@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><p dir="ltr"></p>
<p dir="ltr">On Jul 31, 2016 12:25 PM, "Jeremy Stanley" <<a href="mailto:fungi@yuggoth.org" target="_blank">fungi@yuggoth.org</a>> wrote:<br>
><br>
> On 2016-07-30 20:23:14 -0500 (-0500), Wes Turner wrote:<br>
> > pbr also supports "environment markers"<br>
> > which we would want to preserve when round-tripping (reading in, modifying,<br>
> > and writing out) requirements.txt files;<br>
> > though IDK if environment markers are part of any Python Packaging Spec?<br>
> ><br>
> > from <a href="http://docs.openstack.org/developer/pbr/#environment-markers" target="_blank">http://docs.openstack.org/developer/pbr/#environment-markers</a> :<br>
> ><br>
> > argparse; python_version=='2.6'<br>
><br>
> I'm assuming you didn't follow the "conditional dependencies" link<br>
> from the description in that first paragraph, as it would have taken<br>
> you to the corresponding section of one:<br>
><br>
> <a href="https://www.python.org/dev/peps/pep-0426/#environment-markers" target="_blank">https://www.python.org/dev/peps/pep-0426/#environment-markers</a><br>
><br>
> You should probably also see:<br>
><br>
> <a href="https://www.python.org/dev/peps/pep-0496/" target="_blank">https://www.python.org/dev/peps/pep-0496/</a><br>
> <a href="https://www.python.org/dev/peps/pep-0508/#environment-markers" target="_blank">https://www.python.org/dev/peps/pep-0508/#environment-markers</a><br>
><br>
> Quickly skimming relevant changelogs, environment markers have been<br>
> supported by Setuptools since 0.7, and directly in requirements<br>
> lists since pip 6.0.</p>
</span><p dir="ltr">So we still need InstallRequirement.to_requirement_str() as described above ?</p>
<p dir="ltr">Is there an implementation which does not mangle hashes and/or environment markers when *writing out* requirements.txt;<br>
so that --save could be implemented?</p><div class="HOEnZb"><div class="h5">
<p dir="ltr">> --<br>
> Jeremy Stanley<br>
> _______________________________________________<br>
> Distutils-SIG maillist - <a href="mailto:Distutils-SIG@python.org" target="_blank">Distutils-SIG@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/distutils-sig" target="_blank">https://mail.python.org/mailman/listinfo/distutils-sig</a><br></p>
</div></div></blockquote></div><br></div>