File: rules

package info (click to toggle)
scikit-build 0.18.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,792 kB
  • sloc: python: 5,258; cpp: 284; makefile: 171; f90: 12; sh: 7
file content (38 lines) | stat: -rwxr-xr-x 1,177 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

#export DH_VERBOSE = 1
export PYBUILD_NAME = skbuild

PY3VERS=$(shell py3versions -vr)

# These tests need work. Ignore them until freeze Debian finish.
export IGNORE_TESTS=-k 'not test_hello_sdist \
                and not test_hello_sdist_with_base \
                and not test_sdist_with_symlinks\
                and not test_manifest_in_sdist \
                and not test_generator_cleanup \
                and not test_fortran \
                and not test_pep518_findpython \
                and not test_pep518 \
                and not test_dual_pep518 \
                and not test_hello_develop \
                and not test_install_command \
                and not test_help_commands \
                and not test_test_command' \
		--ignore=tests/test_distribution.py
%:
	dh $@ --with sphinxdoc --buildsystem=pybuild

execute_after_dh_auto_install:
	$(MAKE) -C $(CURDIR)/docs html

execute_after_dh_clean:
	# Clean generated _version.py
	rm -f skbuild/_version.py

override_dh_auto_test:
ifeq (,$(filter nocheck, $(DEB_BUILD_OPTIONS)))
	set -e ; set -x ; for i in $(PY3VERS) ; do \
		python$$i -m pytest $(IGNORE_TESTS); \
	done
endif