karesansui / pysilhouette

Pysilhouette is a 100% pure Python daemon which executes background job commands queued in database.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mock build system fails on pysilhouette-0.8.1

andyshinn opened this issue · comments

Hi,

I am trying to build pysilhouette-0.8.1 RPM using the mock build system. The Karesansui RPMs built cleanly. But the pysilhouette-0.8.1 seems to have a missing BuildRequires for python-setuptools:

+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd pysilhouette-0.8.1
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.s9i98M
+ umask 022
+ cd /builddir/build/BUILD
+ cd pysilhouette-0.8.1
+ LANG=C
+ export LANG
+ unset DISPLAY
+ python setup.py build
Traceback (most recent call last):
  File "setup.py", line 31, in <module>
    from setuptools import setup, find_packages
ImportError: No module named setuptools
RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.s9i98M (%build)
    Bad exit status from /var/tmp/rpm-tmp.s9i98M (%build)
Child return code was: 1

The mock build system uses BuildRequires to determine which packages to install in the chrooted environment for building RPMs. After manually installed python-setuptools first, it built cleanly:

mock --install python-setuptools
mock --no-clean --rebuild /home/ashinn/rpmbuild/SRPMS/pysilhouette-0.8.1-1.src.rpm
INFO: mock.py version 1.1.21 starting...
State Changed: init plugins
INFO: selinux disabled
State Changed: start
INFO: Start(/home/ashinn/rpmbuild/SRPMS/pysilhouette-0.8.1-1.src.rpm)  Config(epel-6-x86_64)
State Changed: init
State Changed: lock buildroot
Mock Version: 1.1.21
INFO: Mock Version: 1.1.21
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled yum cache
State Changed: cleaning yum metadata
INFO: enabled ccache
State Changed: running yum
State Changed: unlock buildroot
INFO: Installed packages:
State Changed: setup
State Changed: build
INFO: Done(/home/ashinn/rpmbuild/SRPMS/pysilhouette-0.8.1-1.src.rpm) Config(default) 0 minutes 6 seconds
INFO: Results and/or logs in: /var/lib/mock/epel-6-x86_64/result
State Changed: end

Thank you for your advice.
I'll fix it.