File: rules

package info (click to toggle)
python-moderngl-window 2.4.6-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 69,220 kB
  • sloc: python: 11,387; makefile: 21
file content (17 lines) | stat: -rwxr-xr-x 683 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

XVFB_OPTS = --auto-servernum --server-num=20 -s "-screen 0 1024x768x24 +extension GLX -noreset"

export PYBUILD_NAME = moderngl_window
export PYBUILD_TEST_CUSTOM = 1
export PYBUILD_TEST_ARGS = xvfb-run $(XVFB_OPTS) {interpreter} -m pytest -k "not test_docs and not test_stl"
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
export PYBUILD_AFTER_INSTALL = $(CURDIR)/debian/rules make-docs PYTHONPATH=$(CURDIR)/debian/python3-moderngl-window{install_dir}
endif

%:
	dh $@ --buildsystem=pybuild

BUILD_DATE = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "@$(SOURCE_DATE_EPOCH)")
make-docs:
	sphinx-build -M html $(CURDIR)/docs $(CURDIR)/docs/_build -D today="$(BUILD_DATE)"