aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
blob: 76c1b3d8882202543fb016336d96853fd1fea514 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /usr/bin/make -f

# SPDX-License-Identifier: CC0-1.0

# Hydrilla's debian/rules file
#
# Copyright (C) 2021,2022 Wojtek Kosior
#
# Available under the terms of Creative Commons Zero v1.0 Universal.

export DH_VERBOSE = 1
export PYBUILD_NAME = hydrilla
export PYBUILD_TEST_PYTEST = 1

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_install:
	dh_auto_install
	# Namespaces. python3-hydrilla.builder package will provide the
	# __init__.py file.
	for DIR in ./debian/python3-hydrilla/usr/lib/python*; do \
		rm -f $$DIR/dist-packages/hydrilla/__init__.py; \
	done