view gub/specs/python-2.4.py @ 6207:895c23f49db3

Python: add conflict dicts. Enables python-2.x builds and installs.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Tue, 28 Aug 2012 11:26:57 +0200
parents 8021db07ffb8
children 08125e83bb42
line wrap: on
line source

from gub import target
from gub import tools
from gub.specs import python

def get_conflict_dict (self):
    return {
        '': ['python-2.6', 'python'],
        'doc': ['python-2.6-doc', 'python-doc'],
        'devel': ['python-2.6-devel', 'python-devel'],
        'runtime': ['python-2.6-runtime', 'python-runtime'],
        }

class Python_2_4 (python.Python):
    get_conflict_dict = get_conflict_dict
class Python_2_4__mingw (python.Python__mingw):
    get_conflict_dict = get_conflict_dict
class Python_2_4__mingw_binary (python.Python__mingw_binary):
    get_conflict_dict = get_conflict_dict
class Python_2_4__freebsd (python.Python__freebsd):
    get_conflict_dict = get_conflict_dict
class Python_2_4__tools (python.Python__tools):
    get_conflict_dict = get_conflict_dict