File: rules

package info (click to toggle)
xeus-python 0.17.6%2B~0.6.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,744 kB
  • sloc: cpp: 4,949; python: 370; makefile: 19; javascript: 14
file content (26 lines) | stat: -rwxr-xr-x 924 bytes parent folder | download
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
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk
PYMINOR=$(shell python3 -c 'print(__import__("sys").version_info.minor)')

%:
	dh $@ --with python3

override_dh_auto_configure:
	dh_auto_configure -- -DPYTHON_EXECUTABLE=/usr/bin/python3 -DXPYT_DISABLE_ARCH_NATIVE=1 -DXPYT_DISABLE_TUNE_GENERIC=1 -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON -DXPYT_USE_SHARED_XEUS_PYTHON=OFF -DXPYT_BUILD_SHARED=OFF -DPYTHON_VERSION_MAJOR=3 -DPYTHON_VERSION_MINOR=$(PYMINOR)
	dh_auto_configure -D xeus-python-shell --buildsystem pybuild

override_dh_auto_build:
	dh_auto_build
	dh_auto_build -D xeus-python-shell --buildsystem pybuild

override_dh_auto_install:
	dh_auto_install
	dh_auto_install -D xeus-python-shell --buildsystem pybuild

override_dh_clean:
	dh_clean
	rm -f share/jupyter/kernels/xpython/kernel.json
	rm -f share/jupyter/kernels/xpython-raw/kernel.json
	rm -rf .pybuild
	rm -rf xeus-python-shell/xeus_python_shell.egg-info