<86>Apr 14 01:09:00 userdel[39843]: delete user 'rooter' <86>Apr 14 01:09:00 userdel[39843]: removed group 'rooter' owned by 'rooter' <86>Apr 14 01:09:00 userdel[39843]: removed shadow group 'rooter' owned by 'rooter' <86>Apr 14 01:09:00 groupadd[39896]: group added to /etc/group: name=rooter, GID=549 <86>Apr 14 01:09:00 groupadd[39896]: group added to /etc/gshadow: name=rooter <86>Apr 14 01:09:00 groupadd[39896]: new group: name=rooter, GID=549 <86>Apr 14 01:09:00 useradd[39928]: new user: name=rooter, UID=549, GID=549, home=/root, shell=/bin/bash <86>Apr 14 01:09:00 userdel[40023]: delete user 'builder' <86>Apr 14 01:09:00 userdel[40023]: removed group 'builder' owned by 'builder' <86>Apr 14 01:09:00 userdel[40023]: removed shadow group 'builder' owned by 'builder' <86>Apr 14 01:09:00 groupadd[40033]: group added to /etc/group: name=builder, GID=550 <86>Apr 14 01:09:00 groupadd[40033]: group added to /etc/gshadow: name=builder <86>Apr 14 01:09:00 groupadd[40033]: new group: name=builder, GID=550 <86>Apr 14 01:09:00 useradd[40066]: new user: name=builder, UID=550, GID=550, home=/usr/src, shell=/bin/bash <13>Apr 14 01:09:06 rpmi: libyaml2-0.1.6-alt1 1397147705 installed <13>Apr 14 01:09:06 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871120 installed <13>Apr 14 01:09:06 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Apr 14 01:09:06 rpmi: libtinfo-devel-5.9-alt8 1456756459 installed <13>Apr 14 01:09:06 rpmi: libncurses-devel-5.9-alt8 1456756459 installed <13>Apr 14 01:09:06 rpmi: python-modules-curses-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:09:06 rpmi: libverto-0.2.6-alt1_6 1455633234 installed <13>Apr 14 01:09:06 rpmi: libkeyutils-1.5.10-alt0.M80P.2 p8+216694.100.6.1 1547827915 installed <13>Apr 14 01:09:06 rpmi: libcom_err-1.42.13-alt2 1449075846 installed <13>Apr 14 01:09:06 rpmi: ca-certificates-2016.02.25-alt1 1462368370 installed <13>Apr 14 01:09:06 rpmi: libcrypto10-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 14 01:09:06 rpmi: libssl10-1.0.2n-alt0.M80P.1 1512766129 installed <86>Apr 14 01:09:06 groupadd[55460]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 14 01:09:06 groupadd[55460]: group added to /etc/gshadow: name=_keytab <86>Apr 14 01:09:06 groupadd[55460]: new group: name=_keytab, GID=499 <13>Apr 14 01:09:06 rpmi: libkrb5-1.14.6-alt1.M80P.1 1525355673 installed <86>Apr 14 01:09:06 groupadd[55723]: group added to /etc/group: name=sasl, GID=498 <86>Apr 14 01:09:06 groupadd[55723]: group added to /etc/gshadow: name=sasl <86>Apr 14 01:09:06 groupadd[55723]: new group: name=sasl, GID=498 <13>Apr 14 01:09:06 rpmi: libsasl2-3-2.1.26-alt7 1479477445 installed <13>Apr 14 01:09:06 rpmi: libldap-2.4.45-alt1.M80P.1 1513980376 installed <13>Apr 14 01:09:06 rpmi: libpq5.11-11.2-alt0.M80P.1 p8+221524.600.1.1 1550205370 installed <13>Apr 14 01:09:06 rpmi: python3-base-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 01:09:07 rpmi: python3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 01:09:07 rpmi: python-modules-compiler-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:09:07 rpmi: rpm-build-python3-0.1.10.10-alt1.M80P.1 1530521451 installed <13>Apr 14 01:09:07 rpmi: python3-module-psycopg2-2.7-alt1.dev0.git20150602.1.1 1459598065 installed <13>Apr 14 01:09:07 rpmi: python3-module-yaml-3.11-alt1.hg20141128.1 1459664840 installed <13>Apr 14 01:09:07 rpmi: libpython3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 01:09:07 rpmi: python3-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 14 01:09:07 rpmi: python3-dev-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 01:09:08 rpmi: python3-module-django-1.8.18-alt0.M80P.1 1497919276 installed <13>Apr 14 01:09:08 rpmi: python-modules-email-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:09:08 rpmi: python3-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 14 01:09:08 rpmi: python3-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 14 01:09:08 rpmi: python-modules-unittest-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:09:08 rpmi: python-modules-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:09:08 rpmi: python-modules-ctypes-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:09:08 rpmi: python-modules-xml-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:09:08 rpmi: python-modules-json-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:09:08 rpmi: python-modules-encodings-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:09:08 rpmi: python-modules-multiprocessing-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:09:08 rpmi: python-modules-logging-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:09:08 rpmi: python-tools-2to3-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:09:08 rpmi: python-modules-hotshot-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:09:08 rpmi: python-modules-bsddb-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:09:08 rpmi: python-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:09:08 rpmi: python-strict-2.7.11-alt6.M80P.1 1527682534 installed <13>Apr 14 01:09:08 rpmi: python-module-psycopg2-2.7-alt1.dev0.git20150602.1.1 1459598065 installed <13>Apr 14 01:09:08 rpmi: python-dev-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:09:08 rpmi: python-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 14 01:09:08 rpmi: python-modules-wsgiref-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:09:08 rpmi: python-module-yaml-3.11-alt1.hg20141128.1 1459664840 installed <13>Apr 14 01:09:08 rpmi: python-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 14 01:09:08 rpmi: python-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 14 01:09:09 rpmi: python-module-django-1.8.18-alt0.M80P.1 1497919276 installed Installing python-module-django-xstatic-0.0.2-alt1.git20140324.1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.49318 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-django-xstatic-0.0.2 + echo 'Source #0 (python-module-django-xstatic-0.0.2.tar):' Source #0 (python-module-django-xstatic-0.0.2.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-django-xstatic-0.0.2.tar + cd python-module-django-xstatic-0.0.2 + /bin/chmod -c -Rf u+rwX,go-w . + cp -fR . ../python3 + find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: No changes to ../python3/setup.py RefactoringTool: Refactored ../python3/django_xstatic/storage.py RefactoringTool: Refactored ../python3/django_xstatic/finders.py RefactoringTool: Files that were modified: RefactoringTool: ../python3/setup.py RefactoringTool: ../python3/django_xstatic/storage.py RefactoringTool: ../python3/django_xstatic/finders.py --- ../python3/django_xstatic/storage.py (original) +++ ../python3/django_xstatic/storage.py (refactored) @@ -17,7 +17,7 @@ module, attr = package.rsplit('.', 1) try: mod = import_module(module) - except ImportError, e: + except ImportError as e: raise ImproperlyConfigured('Error importing module %s: "%s"' % (module, e)) try: --- ../python3/django_xstatic/finders.py (original) +++ ../python3/django_xstatic/finders.py (refactored) @@ -5,7 +5,7 @@ from django.contrib.staticfiles.finders import BaseFinder from django.utils.datastructures import SortedDict -from storage import XStaticStorage +from .storage import XStaticStorage class XStaticFinder(BaseFinder): """ @@ -35,7 +35,7 @@ Untested """ matches = [] - for app, storage in self.storages.items(): + for app, storage in list(self.storages.items()): if storage.exists(path): matched_path = storage.path(path) if matched_path: @@ -49,7 +49,7 @@ List all files in xstatic.* packages in INSTALLED_APPS Untested """ - for app, storage in self.storages.items(): + for app, storage in list(self.storages.items()): for path in utils.get_files(storage, ignore_patterns): yield path, storage + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.49318 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-django-xstatic-0.0.2 + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + /usr/bin/python setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/django_xstatic copying django_xstatic/storage.py -> build/lib/django_xstatic copying django_xstatic/finders.py -> build/lib/django_xstatic copying django_xstatic/__init__.py -> build/lib/django_xstatic + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-django-xstatic-0.0.2 + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + python3 setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/django_xstatic copying django_xstatic/storage.py -> build/lib/django_xstatic copying django_xstatic/finders.py -> build/lib/django_xstatic copying django_xstatic/__init__.py -> build/lib/django_xstatic + popd ~/RPM/BUILD/python-module-django-xstatic-0.0.2 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.63059 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-django-xstatic-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-django-xstatic-buildroot + cd python-module-django-xstatic-0.0.2 + /usr/bin/python setup.py install --skip-build --root=/usr/src/tmp/python-module-django-xstatic-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-django-xstatic-buildroot creating /usr/src/tmp/python-module-django-xstatic-buildroot/usr creating /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib creating /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python2.7 creating /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python2.7/site-packages creating /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python2.7/site-packages/django_xstatic copying build/lib/django_xstatic/__init__.py -> /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python2.7/site-packages/django_xstatic copying build/lib/django_xstatic/finders.py -> /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python2.7/site-packages/django_xstatic copying build/lib/django_xstatic/storage.py -> /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python2.7/site-packages/django_xstatic byte-compiling /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python2.7/site-packages/django_xstatic/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python2.7/site-packages/django_xstatic/finders.py to finders.pyc byte-compiling /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python2.7/site-packages/django_xstatic/storage.py to storage.pyc running install_egg_info running egg_info creating django_xstatic.egg-info writing django_xstatic.egg-info/PKG-INFO writing top-level names to django_xstatic.egg-info/top_level.txt writing dependency_links to django_xstatic.egg-info/dependency_links.txt writing manifest file 'django_xstatic.egg-info/SOURCES.txt' reading manifest file 'django_xstatic.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'django_xstatic.egg-info/SOURCES.txt' Copying django_xstatic.egg-info to /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python2.7/site-packages/django_xstatic-0.0.2-py2.7.egg-info running install_scripts + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-django-xstatic-0.0.2 + python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-django-xstatic-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python3 creating /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python3/site-packages/django_xstatic copying build/lib/django_xstatic/__init__.py -> /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python3/site-packages/django_xstatic copying build/lib/django_xstatic/finders.py -> /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python3/site-packages/django_xstatic copying build/lib/django_xstatic/storage.py -> /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python3/site-packages/django_xstatic byte-compiling /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python3/site-packages/django_xstatic/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python3/site-packages/django_xstatic/finders.py to finders.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python3/site-packages/django_xstatic/storage.py to storage.cpython-35.pyc running install_egg_info running egg_info creating django_xstatic.egg-info writing top-level names to django_xstatic.egg-info/top_level.txt writing django_xstatic.egg-info/PKG-INFO writing dependency_links to django_xstatic.egg-info/dependency_links.txt writing manifest file 'django_xstatic.egg-info/SOURCES.txt' reading manifest file 'django_xstatic.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'django_xstatic.egg-info/SOURCES.txt' Copying django_xstatic.egg-info to /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python3/site-packages/django_xstatic-0.0.2-py3.5.egg-info running install_scripts + popd ~/RPM/BUILD/python-module-django-xstatic-0.0.2 + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-django-xstatic-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-django-xstatic-buildroot (binconfig,pkgconfig,libtool,desktop) Compressing files in /usr/src/tmp/python-module-django-xstatic-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-django-xstatic-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-django-xstatic-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python modules in /usr/src/tmp/python-module-django-xstatic-buildroot using /usr/bin/python unlink /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python2.7/site-packages/django_xstatic/__init__.pyc unlink /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python2.7/site-packages/django_xstatic/finders.pyc unlink /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python2.7/site-packages/django_xstatic/storage.pyc compile /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python2.7/site-packages/django_xstatic/__init__.py compile /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python2.7/site-packages/django_xstatic/finders.py compile /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python2.7/site-packages/django_xstatic/storage.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-django-xstatic-buildroot using /usr/bin/python -O compile /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python2.7/site-packages/django_xstatic/__init__.py compile /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python2.7/site-packages/django_xstatic/finders.py compile /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python2.7/site-packages/django_xstatic/storage.py Bytecompiling python3 modules in /usr/src/tmp/python-module-django-xstatic-buildroot using python3 unlink /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python3/site-packages/django_xstatic/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python3/site-packages/django_xstatic/__pycache__/finders.cpython-35.pyc unlink /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python3/site-packages/django_xstatic/__pycache__/storage.cpython-35.pyc compile /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python3/site-packages/django_xstatic/__init__.py compile /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python3/site-packages/django_xstatic/finders.py compile /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python3/site-packages/django_xstatic/storage.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-django-xstatic-buildroot using python3 -O compile /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python3/site-packages/django_xstatic/__init__.py compile /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python3/site-packages/django_xstatic/finders.py compile /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python3/site-packages/django_xstatic/storage.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-django-xstatic-buildroot using python3 -OO compile /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python3/site-packages/django_xstatic/__init__.py compile /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python3/site-packages/django_xstatic/finders.py compile /usr/src/tmp/python-module-django-xstatic-buildroot/usr/lib/python3/site-packages/django_xstatic/storage.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/django_xstatic/__pycache__/storage.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/django_xstatic/__pycache__/storage.cpython-35.pyc' './usr/lib/python3/site-packages/django_xstatic/__pycache__/finders.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/django_xstatic/__pycache__/finders.cpython-35.pyc' './usr/lib/python3/site-packages/django_xstatic/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/django_xstatic/__pycache__/__init__.cpython-35.pyc' './usr/lib/python3/site-packages/django_xstatic/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/django_xstatic/__pycache__/__init__.cpython-35.opt-1.pyc' Hardlinking identical .pyc and .pyo files './usr/lib/python2.7/site-packages/django_xstatic/storage.pyo' => './usr/lib/python2.7/site-packages/django_xstatic/storage.pyc' './usr/lib/python2.7/site-packages/django_xstatic/finders.pyo' => './usr/lib/python2.7/site-packages/django_xstatic/finders.pyc' './usr/lib/python2.7/site-packages/django_xstatic/__init__.pyo' => './usr/lib/python2.7/site-packages/django_xstatic/__init__.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.62511 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-django-xstatic-0.0.2 + python setup.py test running test running egg_info writing django_xstatic.egg-info/PKG-INFO writing top-level names to django_xstatic.egg-info/top_level.txt writing dependency_links to django_xstatic.egg-info/dependency_links.txt reading manifest file 'django_xstatic.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'django_xstatic.egg-info/SOURCES.txt' running build_ext ---------------------------------------------------------------------- Ran 0 tests in 0.000s OK + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-django-xstatic-0.0.2 + python3 setup.py test running test running egg_info writing dependency_links to django_xstatic.egg-info/dependency_links.txt writing top-level names to django_xstatic.egg-info/top_level.txt writing django_xstatic.egg-info/PKG-INFO reading manifest file 'django_xstatic.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'django_xstatic.egg-info/SOURCES.txt' running build_ext Traceback (most recent call last): File "setup.py", line 24, in install_requires=[''], # yeah, not even XStatic, isn't that MAGIC? File "/usr/lib64/python3.5/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib64/python3.5/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/usr/lib64/python3.5/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 151, in run self.with_project_on_sys_path(self.run_tests) File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 127, in with_project_on_sys_path func() File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 172, in run_tests testRunner=self._resolve_as_ep(self.test_runner), File "/usr/lib64/python3.5/unittest/main.py", line 94, in __init__ self.parseArgs(argv) File "/usr/lib64/python3.5/unittest/main.py", line 124, in parseArgs self._do_discovery([]) File "/usr/lib64/python3.5/unittest/main.py", line 229, in _do_discovery self.test = loader.discover(self.start, self.pattern, self.top) File "/usr/lib64/python3.5/unittest/loader.py", line 341, in discover tests = list(self._find_tests(start_dir, pattern)) File "/usr/lib64/python3.5/unittest/loader.py", line 398, in _find_tests full_path, pattern, namespace) File "/usr/lib64/python3.5/unittest/loader.py", line 475, in _find_test_path tests = self.loadTestsFromModule(package, pattern=pattern) File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 36, in loadTestsFromModule tests.append(self.loadTestsFromName(submodule)) File "/usr/lib64/python3.5/unittest/loader.py", line 190, in loadTestsFromName return self.loadTestsFromModule(obj) File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 22, in loadTestsFromModule tests.append(TestLoader.loadTestsFromModule(self, module)) File "/usr/lib64/python3.5/unittest/loader.py", line 122, in loadTestsFromModule if isinstance(obj, type) and issubclass(obj, case.TestCase): File "/usr/lib/python3/site-packages/django/utils/functional.py", line 225, in inner self._setup() File "/usr/lib/python3/site-packages/django/conf/__init__.py", line 42, in _setup % (desc, ENVIRONMENT_VARIABLE)) django.core.exceptions.ImproperlyConfigured: Requested settings, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. error: Bad exit status from /usr/src/tmp/rpm-tmp.62511 (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.62511 (%check) Command exited with non-zero status 1 1.91user 0.31system 0:02.77elapsed 80%CPU (0avgtext+0avgdata 25200maxresident)k 0inputs+0outputs (0major+117916minor)pagefaults 0swaps hsh-rebuild: rebuild of `python-module-django-xstatic-0.0.2-alt1.git20140324.1.src.rpm' failed. Command exited with non-zero status 1 9.60user 2.45system 0:13.36elapsed 90%CPU (0avgtext+0avgdata 122068maxresident)k 0inputs+0outputs (0major+324011minor)pagefaults 0swaps