Skip to content
Snippets Groups Projects
Commit 74a697b6 authored by Matthias Klose's avatar Matthias Klose
Browse files

package version python-defaults-2.4.3-3

parent 8bd6d7a8
No related branches found
No related tags found
No related merge requests found
python-defaults (2.4.3-3) experimental; urgency=low
* Point to the draft of the reworked Python policy.
* Fiy 'pyversions -r current' (Raphael Hertzog).
-- Matthias Klose <doko@debian.org> Mon, 12 Jun 2006 13:40:52 +0200
python-defaults (2.4.3-02) experimental; urgency=low
* Really do not build python-doc.
......
......@@ -24,8 +24,8 @@ Description: An interactive high-level object-oriented language (default version
Package: python-minimal
Architecture: all
Priority: standard
Depends: python2.4-minimal (>= 2.4.3), python-central (>= 0.4.7), dpkg (>= 1.13.20)
Conflicts: python (<= 2.4-1)
Depends: python2.4-minimal (>= 2.4.3), python-central (>= 0.4.8), dpkg (>= 1.13.20)
Conflicts: python (<= 2.4-1), python-central (<< 0.4.8)
Replaces: python (<= 2.4-1)
Description: A minimal subset of the Python language (default version)
This package contains the interpreter and some essential modules. It's used
......
......@@ -24,8 +24,8 @@ Description: An interactive high-level object-oriented language (default version
Package: python-minimal
Architecture: all
Priority: standard
Depends: @PVER@-minimal (>= @PREVVER@), python-central (>= 0.4.7), dpkg (>= 1.13.20)
Conflicts: python (<= 2.4-1)
Depends: @PVER@-minimal (>= @PREVVER@), python-central (>= 0.4.8), dpkg (>= 1.13.20)
Conflicts: python (<= 2.4-1), python-central (<< 0.4.8)
Replaces: python (<= 2.4-1)
Description: A minimal subset of the Python language (default version)
This package contains the interpreter and some essential modules. It's used
......
......@@ -23,6 +23,11 @@
<version>version 0.3.7.2</version>
<abstract>
The Python policy is currently in change; a draft
for the new policy can be found
<url id="http://people.debian.org/~piman/python-policy/"
name="here">.
This document describes the packaging of Python within the
Debian GNU/Linux distribution and the policy requirements for
packaged Python programs and modules.
......
......@@ -50,9 +50,9 @@ def supported_versions(version_only=False):
global _supported_versions
if not _supported_versions:
if os.path.exists('/usr/share/python/debian_defaults'):
import ConfigParser
config = ConfigParser.SafeConfigParser()
config.read('/usr/share/python/debian_defaults')
from ConfigParser import SafeConfigParser
config = SafeConfigParser()
config.readfp(file('/usr/share/python/debian_defaults'))
value = config.get('DEFAULT', 'supported-versions')
_supported_versions = [s.strip() for s in value.split(',')]
else:
......@@ -92,11 +92,10 @@ def requested_versions(vstring, version_only=False):
vinfo = parse_versions(vstring)
supported = supported_versions(version_only=True)
if len(vinfo) == 1:
vkey = vinfo[vinfo.keys()[0]]
if 'all' in vinfo:
versions = supported
elif 'current' in vinfo:
versions = [default_version()]
versions = [default_version(version_only=True)]
else:
versions = vinfo['versions'].intersection(supported)
elif 'all' in vinfo and 'current' in vinfo:
......
......@@ -87,6 +87,7 @@ clean: control-file
rm -f $$f2; \
fi; \
done
rm -f debian/*.py[co]
dh_clean
stamp-control:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment