On Fri, May 22, 2015 at 02:26:38PM +0200, Suvayu Ali wrote:
> > *** Error compiling
'/home/maitra/rpmbuild/BUILDROOT/pdf-stapler-0.3.0-1.fc22.x86_64/usr/lib/python3.4/site-packages/staplelib/stapler.py'...
You are building with python 3. Maybe the default python on F22 has
changed from python 2 to 3. If that is the case, you should explicitly
require python 2. The alternative would be to write a patch introducing
future (see below).
There's actually just been a policy change on this:
In Fedora we have multiple python runtimes, one for each supported
major release. At this point that's one for python2.x and one for
python3.x. If a piece of software supports python3, it must be
packaged for python3. If it supports python2 as well, it may be
packaged for python2. If it supports only python2 then it must not be
packaged for python3.
There _is_ an (unreleased?) python 3 port at
<
https://github.com/hellerbarde/stapler/tree/python3port>, which could
be used, but it's probably best to just consider this the last case,
"only supports python2", and use "BuildRequires: python2-devel"
--
Matthew Miller
<mattdm(a)fedoraproject.org>
Fedora Project Leader