=item B<-V> I<version>
If the .py files your package ships are meant to be used by a specific
-pythonX.Y version, you can set this option with the desired X.Y python
-version.
-Do not use if you ship modules in /usr/lib/site-python.
+pythonX.Y version, you can use this option to specify the desired version,
+such as 2.3. Do not use if you ship modules in /usr/lib/site-python.
=item B<-n>, B<--noscripts>
my $python_nextversion = $python_version + 0.1;
my $python_nextmajor = $python_major + 1;
-my @python_allversions = ('1.5','2.1','2.2','2.3');
+my @python_allversions = ('1.5','2.1','2.2','2.3','2.4');
foreach (@python_allversions) {
s/^/python/;
}
if($dh{V_FLAG_SET}) {
$usepython = $dh{V_FLAG};
$usepython =~ s/^/python/;
+ if (! grep { $_ eq $usepython } @python_allversions) {
+ error("Unknown python version $dh{V_FLAG}");
+ }
}
# Cleaning the paths given on the command line
}
}
if ($package !~ /^python[0-9].[0-9]-/) {
- push @dirs, "usr/lib/python$python_version/site-packages" ;
- push @dirs_so, "usr/lib/python$python_version/site-packages" ;
+ push @dirs, "usr/lib/$usepython/site-packages";
+ push @dirs_so, "usr/lib/$usepython/site-packages";
$look_for_pythonXY = 0;
}