#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

#
# Copyright 2024 Marcel Telka
#

%patch% 01-tox-dependencies.patch
%patch% 02-test-no-eventlet.patch
%patch% 03-tox-no-pip-install.patch
%patch% 04-test-vendor-packages.patch
%patch% 05-shell-Terminated.patch
%patch% 06-PYTHONPATH.patch
%patch% 07-rmdir-busy-dir.patch
%patch% 08-test-disable-failing.patch
%patch% 09-self_collectors.patch

%include-3%
# Testing needs a writable directory with existing pth file
COMPONENT_PRE_TEST_ACTION += touch $(PROTO_DIR)/$(PYTHON_LIB)/foo.pth
COMPONENT_POST_TEST_ACTION += $(RM) $(PROTO_DIR)/$(PYTHON_LIB)/foo.pth

# Force verbose output via tox posargs
TOX_POSARGS += -v