sandello/Diamond — pull request #11 by bclermont (2012-02-21 21:09:01+00:00)
Title: Patch 1

When I try to build Diamond, I get this (the same applied to mock).

python-mock and python-configobj are required to build the Debian package

```
patate@lucid:~/Diamond$ dpkg-buildpackage
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package diamond
dpkg-buildpackage: source version 0.2.1
dpkg-buildpackage: source changed by Pavel Potapenkov
dpkg-buildpackage: host architecture amd64
fakeroot debian/rules clean
dh clean
dh_testdir
dh_auto_clean
make[1]: Entering directory `/home/patate/Diamond'
python setup.py clean
running clean
rm -rf dist build MANIFEST
find . -name '*.pyc' -delete
make[1]: Leaving directory `/home/patate/Diamond'
dh_clean
dpkg-source -b Diamond
dpkg-source: info: using source format `1.0'
dpkg-source: warning: source directory 'Diamond' is not - 'diamond-0.2.1'
dpkg-source: info: building diamond in diamond_0.2.1.tar.gz
dpkg-source: info: building diamond in diamond_0.2.1.dsc
debian/rules build
dh build
dh_testdir
dh_auto_configure
dh_auto_build
make[1]: Entering directory `/home/patate/Diamond'
make run - Run Diamond from this directory
make watch - Watch and continuously run tests
make test - Run tests
make sdist - Create source package
make bdist - Create binary package
make install - Install on local system
make buildrpm - Generate a rpm package
make builddeb - Generate a deb package
make tar - Generate a tar ball
make clean - Get rid of scratch and byte files
make cleanws - Strip trailing whitespaces from files
make[1]: Leaving directory `/home/patate/Diamond'
dh_auto_test
make[1]: Entering directory `/home/patate/Diamond'
python test.py
Traceback (most recent call last):
File "test.py", line 19, in
from diamond import *
File "/home/patate/Diamond/src/diamond/__init__.py", line 7, in
import configobj
ImportError: No module named configobj
make[1]: *** [test] Error 1
make[1]: Leaving directory `/home/patate/Diamond'
dh_auto_test: make -j1 test returned exit code 2
make: *** [build] Error 29
dpkg-buildpackage: error: debian/rules build gave error exit status 2
```