def __init__(self): if not os.path.exists("cstraehle-git-url.txt"): raise RuntimeError("You need to put the git:// url into a file called 'cstraehle-git-url.txt'") f = open("cstraehle-git-url.txt", 'r') l = f.readlines()[0] CStraehlePackage.src_uri = l.strip() Package.__init__(self)
def unpack(self): Package.unpack(self) if platform.system() == "Darwin": self.system("sed -i '.bkp' -e 's|config.qt_inc_dir|\"%s\"|g' setup.py" % \ (self.prefix+"/include/")) self.system("sed -i '.bkp' -e 's|config.qt_lib_dir|\"%s\"|g' setup.py" % \ (self.prefix+"/lib"))
def unpack(self): Package.unpack(self, copyToWork=False)
def unpack(self): Package.unpack(self)