diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-09-25 21:42:16 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-09-25 22:32:34 -0700 |
commit | 4d202efe504c98fa8eab8d122f40214270f63ad2 (patch) | |
tree | 86cb89e4c5d690bb70f27268c8da337347bf3a83 /attoconf/lib/install.py | |
parent | 0aa206266ee2d8d9db7d00f35d766bdf17306e9a (diff) | |
download | attobuild-4d202efe504c98fa8eab8d122f40214270f63ad2.tar.gz attobuild-4d202efe504c98fa8eab8d122f40214270f63ad2.tar.bz2 attobuild-4d202efe504c98fa8eab8d122f40214270f63ad2.tar.xz attobuild-4d202efe504c98fa8eab8d122f40214270f63ad2.zip |
Use keyword splats in ctors
Diffstat (limited to 'attoconf/lib/install.py')
-rw-r--r-- | attoconf/lib/install.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/attoconf/lib/install.py b/attoconf/lib/install.py index b32ebe0..85e0de5 100644 --- a/attoconf/lib/install.py +++ b/attoconf/lib/install.py @@ -186,9 +186,17 @@ class Install(ClassyProject): return super(Install, cls).slots() + ( 'package', 'package_name') - def set_package(self, package, name): + # Compatibility with configure written for attoconf < 0.7 + # In attoconf 1.0, the positional srcdir argument will go away, + # the None default and the .set_package function will be removed. + # (Note: when bisecting, always force checkout attoconf!) + def __init__(self, srcdir, package=None, package_name=None, **kwargs): + super(Install, self).__init__(srcdir=srcdir, **kwargs) + self.set_package(package, package_name) + + def set_package(self, package, package_name): self.package = package - self.package_name = name + self.package_name = package_name def general(self): super(Install, self).general() |