From 31aebcf978dde4791887e32d00487bc28d46b8fa Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sun, 20 May 2018 10:42:58 +0000 Subject: python_distutils.pm: Deprecate with removal in compat 12 Signed-off-by: Niels Thykier --- lib/Debian/Debhelper/Buildsystem/python_distutils.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/Debian/Debhelper/Buildsystem/python_distutils.pm') diff --git a/lib/Debian/Debhelper/Buildsystem/python_distutils.pm b/lib/Debian/Debhelper/Buildsystem/python_distutils.pm index 4c2a5f8d..e5fe7edc 100644 --- a/lib/Debian/Debhelper/Buildsystem/python_distutils.pm +++ b/lib/Debian/Debhelper/Buildsystem/python_distutils.pm @@ -10,11 +10,11 @@ package Debian::Debhelper::Buildsystem::python_distutils; use strict; use warnings; use Cwd (); -use Debian::Debhelper::Dh_Lib qw(error); +use Debian::Debhelper::Dh_Lib qw(error deprecated_functionality); use parent qw(Debian::Debhelper::Buildsystem); sub DESCRIPTION { - "Python Distutils (setup.py)" + "Python Distutils (setup.py) [DEPRECATED]" } sub DEFAULT_BUILD_DIRECTORY { @@ -60,6 +60,9 @@ sub pre_building_step { my $this=shift; my $step=shift; + deprecated_functionality('Please use the third-party "pybuild" build system instead of python-distutils', + 12); + return unless grep /$step/, qw(build install clean); if ($this->get_buildpath() ne $this->DEFAULT_BUILD_DIRECTORY()) { -- cgit v1.2.3