package : introduced InstallPhase, added decorators for prerequisites and sanity_checks of phases

This commit is contained in:
alalazo
2016-07-08 12:29:49 +02:00
parent a36f3764af
commit 8ed028e2d6
2 changed files with 133 additions and 85 deletions

View File

@@ -34,6 +34,10 @@ class Szip(Package):
version('2.1', '902f831bcefb69c6b635374424acbead')
@Package.sanity_check('install')
def always_raise(self):
raise RuntimeError('Precondition not respected')
def install(self, spec, prefix):
configure('--prefix=%s' % prefix,
'--enable-production',