diff options
author | Niels Thykier <niels@thykier.net> | 2018-05-20 10:42:58 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2018-05-20 10:42:58 +0000 |
commit | 31aebcf978dde4791887e32d00487bc28d46b8fa (patch) | |
tree | 21219cbcb9e84b7c54955b4af42c63191415e020 /lib | |
parent | 112c62aef929ce8b2d4db4f8ccb9ee89f54b8cde (diff) | |
download | debhelper-31aebcf978dde4791887e32d00487bc28d46b8fa.tar.gz |
python_distutils.pm: Deprecate with removal in compat 12
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Debian/Debhelper/Buildsystem/python_distutils.pm | 7 |
1 files changed, 5 insertions, 2 deletions
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()) { |