From 180dfeaa972c6580212c4630f9ab1ceb83a4e563 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Thu, 28 Jul 2005 23:28:13 +0000 Subject: [PATCH] =?UTF-8?q?2.4'den=20d=C3=BC=C5=9F=C3=BCk=20s=C3=BCr=C3=BC?= =?UTF-8?q?mlerdeki=20import=20sorununu=20=C3=A7=C3=B6z=C3=BCyor.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/graph.py | 2 +- pisi/toplevel.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pisi/graph.py b/pisi/graph.py index 2f9c9af5..573489de 100644 --- a/pisi/graph.py +++ b/pisi/graph.py @@ -3,7 +3,7 @@ # for python 2.3 compatibility import sys ver = sys.version_info -if ver[0] == 2 and ver[1] == 4: +if ver[0] <= 2 and ver[1] < 4: from sets import Set as set class CycleError: diff --git a/pisi/toplevel.py b/pisi/toplevel.py index 1660a516..2c6e3a4c 100644 --- a/pisi/toplevel.py +++ b/pisi/toplevel.py @@ -1,7 +1,11 @@ # top level PISI interfaces # a facade to the entire PISI system -import os, sys +import os +import sys +ver = sys.version_info +if ver[0] <= 2 and ver[1] < 4: + from sets import Set as set from config import config from constants import const @@ -21,6 +25,7 @@ def install(packages): def install_pkg_files(packages): """install a number of pisi package files""" + from package import Package # read the package information into memory first # regardless of which distribution they come from