<p dir="ltr"><br>
On 2 May 2014 13:33, "Marcus Smith" <<a href="mailto:qwcode@gmail.com">qwcode@gmail.com</a>> wrote:<br>
><br>
><br>
><br>
> On Fri, May 2, 2014 at 1:15 PM, Donald Stufft <<a href="mailto:donald@stufft.io">donald@stufft.io</a>> wrote:<br>
>><br>
>> I’m pretty sure all the distros have some equivalent to it, often times with similar syntax.<br>
><br>
><br>
> e.g. look here  <a href="https://fedoraproject.org/wiki/Packaging:NamingGuidelines#Package_Versioning">https://fedoraproject.org/wiki/Packaging:NamingGuidelines#Package_Versioning</a><br>
> yes there's a parallel to our post-releases, namely "Post-Releases", but I don't see a concept for local patches of rpms.<br>
><br>
> to be clear to Daniel, I'm not asking how to package a "local version" of a python package.  that's straightforward (I think) because that's all contained in the "version" segment of the rpm.<br>

><br>
> e.g., I recently created an rpm for virtualenv-1.11.4, because centos6 didn't have it yet:  python-virtualenv-1.11.4-1.el6.noarch.rpm<br>
> what's the proper way to "localize" this to not conflict later when 1.11.4 is packaged?</p>
<p dir="ltr">Make the release portion of your custom RPM start with a 0 so it sorts before the actual release. For example: python-virtualenv-1.11.4-0.1.el6.noarch.rpm</p>
<p dir="ltr">(you can add additional identifying stuff as well - for Beaker QA builds, we use "0.git.<hash>.el6" as the release field)</p>
<p dir="ltr">> again, sorry for the off-topic post, but I was *hoping* Nick (or someone) would have the concept handy from the OS packaging world.</p>
<p dir="ltr">Yep, the distro release field is basically where "local version" comes from. It's there so distros (and other redistributors) can eventually start advertising the existence of distro specific patches in their Python metadata without confusing version constraints on dependencies.</p>

<p dir="ltr">From an upstream perspective, it's mostly just extra information for debugging purposes - the version comparison operations deliberately ignore the "local version" field.</p>
<p dir="ltr">Cheers,<br>
Nick.</p>
<p dir="ltr">><br>
><br>
> _______________________________________________<br>
> Distutils-SIG maillist  -  <a href="mailto:Distutils-SIG@python.org">Distutils-SIG@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/distutils-sig">https://mail.python.org/mailman/listinfo/distutils-sig</a><br>
><br>
</p>