| 1 |
|
| 2 |
|
| 3 |
UPSTREAM_GITscip-debian debian python-pycdlib 1.14.0+ds1-2 python-pycdlib/rules/UPSTREAM_GIT. := http://github.com/clalancette/pycdlib |
| 4 |
include /usr/share/openstack-pkg-tools/pkgos.make |
| 5 |
|
| 6 |
TMP_IS_TMPFSscip-debian debian python-pycdlib 1.14.0+ds1-2 python-pycdlib/rules/TMP_IS_TMPFS. := $(shellscip-debian debian python-pycdlib 1.14.0+ds1-2 python-pycdlib/rules/shell. egrep -q "^tmpfs[[:space:]]+/tmp[[:space:]]" /proc/mounts && echo true || echo false) |
| 7 |
|
| 8 |
%scip-debian debian python-pycdlib 1.14.0+ds1-2 python-pycdlib/rules/`%`().: |
| 9 |
dh $@ --with python3 |
| 10 |
|
| 11 |
override_dh_auto_cleanscip-debian debian python-pycdlib 1.14.0+ds1-2 python-pycdlib/rules/override_dh_auto_clean().: |
| 12 |
rm -rf build .stestr *.egg-info .pytest_cache |
| 13 |
find . -iname '*.pyc' -delete |
| 14 |
for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done |
| 15 |
|
| 16 |
override_dh_auto_buildscip-debian debian python-pycdlib 1.14.0+ds1-2 python-pycdlib/rules/override_dh_auto_build().: |
| 17 |
echo "Do nothing..." |
| 18 |
|
| 19 |
override_dh_auto_installscip-debian debian python-pycdlib 1.14.0+ds1-2 python-pycdlib/rules/override_dh_auto_install().: |
| 20 |
pkgos-dh_auto_installscip-debian debian debhelper . dh_auto_install(). --no-py2 --in-tmp |
| 21 |
|
| 22 |
ifeq (,$(findstringscip-debian debian python-pycdlib 1.14.0+ds1-2 python-pycdlib/rules/findstring. nocheck, $(DEB_BUILD_OPTIONSscip-debian debian python-pycdlib 1.14.0+ds1-2 python-pycdlib/rules/DEB_BUILD_OPTIONS.))) |
| 23 |
ifeq ($(TMP_IS_TMPFSscip-debian debian python-pycdlib 1.14.0+ds1-2 python-pycdlib/rules/TMP_IS_TMPFS.),true) |
| 24 |
set -e ; set -x ; for pyvers in $(PYTHON3S); do \ |
| 25 |
PATH=$$PATH:$(CURDIR)/debian/tmp/usr/bin PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages python$$pyvers -m pytest tests -k 'not test_volumedescdate_new_nonzero and not test_gmtoffset_from_tm'; \ |
| 26 |
done |
| 27 |
endif |
| 28 |
endif |
| 29 |
|
| 30 |
override_dh_python3scip-debian debian python-pycdlib 1.14.0+ds1-2 python-pycdlib/rules/override_dh_python3().: |
| 31 |
dh_python3scip-debian debian debhelper . dh_python3(). --shebang=/usr/bin/python3 |
| 32 |
|
| 33 |
override_dh_auto_testscip-debian debian python-pycdlib 1.14.0+ds1-2 python-pycdlib/rules/override_dh_auto_test().: |
| 34 |
echo "Do nothing..." |