On 05/11/2016 11:54 AM, Petr Viktorin wrote:
On 05/11/2016 05:16 PM, John Dennis wrote:
The workaround I came up with is to delay the execution of %py3_build by
at least 1 second by inserting a sleep in-between the %py2_build and
%py3_build macros in the spec file, like this:

%py2_build
sleep 1
%py3_build

Actually I think sleeping 2 seconds might be safer given the 1 second
resolution on the timestamps.

A better workaround would be 'rm /usr/bin/xyz' instead of the sleep.

I understand where you're coming from Petr but let me offer a reason for why a short sleep might be preferable.

In the interest of robustness it's best to avoid requiring someone to enumerate exceptions. File lists change as do other aspects of the build. It's very easy to miss enumerating every necessary exception on every update to the spec file. If a simple short sleep is sufficient to avoid manual enumeration then the minor inefficiency of the sleep seems a price well paid.

--
John
_______________________________________________
python-devel mailing list
python-devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/python-devel@lists.fedoraproject.org

Reply via email to