summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-07-19 09:37:21 +0200
committerJoey Hess <joey@gnu.kitenet.net>2009-07-19 09:37:21 +0200
commitfeb5e4c3cccb539003e043bec406cb32acf3770d (patch)
tree06ea7383da8b99706e6549e52f7fc632b477d418
parentb45b22e81de116cc497782fdb199eca19ecdd654 (diff)
improve comment
-rw-r--r--Debian/Debhelper/Buildsystem/python_distutils.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/Debian/Debhelper/Buildsystem/python_distutils.pm b/Debian/Debhelper/Buildsystem/python_distutils.pm
index 502bf24..2ee2cc1 100644
--- a/Debian/Debhelper/Buildsystem/python_distutils.pm
+++ b/Debian/Debhelper/Buildsystem/python_distutils.pm
@@ -82,13 +82,15 @@ sub pre_building_step {
sub setup_py {
my $this=shift;
my $act=shift;
- my $python_default = `pyversions -d`;
- $python_default =~ s/^\s+//;
- $python_default =~ s/\s+$//;
# We need to to run setup.py with the default python first
# as distutils/setuptools modifies the shebang lines of scripts.
# This ensures that #!/usr/bin/python is used and not pythonX.Y
+ # Then, run setup.py with each available python, to build
+ # extensions for each.
+ my $python_default = `pyversions -d`;
+ $python_default =~ s/^\s+//;
+ $python_default =~ s/\s+$//;
foreach my $python ("python", grep(!/^$python_default/,
(split ' ', `pyversions -r 2>/dev/null`))) {
if (-x "/usr/bin/".$python) {