~ubuntu-branches/ubuntu/utopic/debhelper/utopic-proposed

« back to all changes in this revision

Viewing changes to dh_python

  • Committer: Steve Langasek
  • Author(s): Martin Pitt
  • Date: 2011-10-16 06:51:20 UTC
  • mfrom: (1.4.35 sid)
  • Revision ID: steve.langasek@canonical.com-20111016065120-3qbjooj2ai6a783a
Tags: 8.9.8ubuntu1
merge 8.9.8 from Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
=head1 DESCRIPTION
18
18
 
19
 
Note: This program is deprecated. You should use B<dh_pysupport> or
20
 
B<dh_pycentral> instead. This program will do nothing if F<debian/pycompat>
21
 
or a B<Python-Version> F<control> file field exists.
 
19
Note: This program is deprecated. You should use B<dh_python2> instead.
 
20
This program will do nothing if F<debian/pycompat> or a
 
21
B<Python-Version> F<control> file field exists.
22
22
 
23
23
B<dh_python> is a debhelper program that is responsible for generating the
24
24
B<${python:Depends}> substitutions and adding them to substvars files. It
78
78
        exit 0;
79
79
}
80
80
elsif (`grep Python-Version: debian/control`) {
81
 
        warning("Doing nothing since Python-Version is set; dh_pysupport or dh_pycentral should do the work. You can remove dh_python from your rules file.");
 
81
        warning("Doing nothing since Python-Version is set; dh_python2 should do the work. You can remove dh_python from your rules file.");
82
82
        exit 0;
83
83
}
84
84
else {
85
 
        warning("This program is deprecated, you should use dh_pysupport or dh_pycentral instead.");
 
85
        warning("This program is deprecated, you should use dh_python2 instead.");
86
86
}
87
87
 
88
88
my $python = 'python';