1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
export PYBUILD_NAME=sagenb-export
%:
dh $@ --with python2,python3 --buildsystem=pybuild
# If you need to rebuild the Sphinx documentation
# Add spinxdoc to the dh --with line
#override_dh_auto_build:
# dh_auto_build
# PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/ build/html # HTML generator
# PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bman docs/ build/man # Manpage generator
TOX_ENVLIST = py27,py35
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
# Temporary workaround for #847172; the following two lines with LC_CTYPE
# should be removed after these are fixed:
# - https://github.com/jupyter/nbformat/issues/76
# - https://github.com/vbraun/ExportSageNB/issues/6
# Contrary to its documentation tox does pass down LANG which is why we see
# #847172 in the first place; however we want to affect as little as possible
# so we only set LC_CTYPE - LANG would affect the other LC_* values too.
LC_CTYPE=C.UTF-8 \
TOX_TESTENV_PASSENV=LC_CTYPE \
VIRTUALENV_DOWNLOAD=no \
http_proxy=http://127.0.9.1:9 \
https_proxy=https://127.0.9.1:9 \
tox -r --sitepackages -e $(TOX_ENVLIST) -- -s
endif
override_dh_auto_clean:
rm -rf .tox
dh_auto_clean
override_dh_install:
dh_install
mv debian/python-sagenb-export/usr/bin/sagenb-export \
debian/python-sagenb-export/usr/bin/sagenb-export-python2
mv debian/python3-sagenb-export/usr/bin/sagenb-export \
debian/python3-sagenb-export/usr/bin/sagenb-export-python3
|