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/make.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/make.py')
-rw-r--r-- | attoconf/lib/make.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/attoconf/lib/make.py b/attoconf/lib/make.py index 8bcd3b5..c63cb61 100644 --- a/attoconf/lib/make.py +++ b/attoconf/lib/make.py @@ -65,10 +65,14 @@ class Make(ClassyProject): def slots(cls): return super(Make, cls).slots() + ('make_in', 'make_out') - def __init__(self, srcdir): - super(Make, self).__init__(srcdir) - self.set_make_infile('Makefile.in') - self.set_make_outfile('Makefile') # relative to build dir + # compatibility with attoconf < 0.7 + def __init__(self, srcdir, + make_infile='Makefile.in', + make_outfile='Makefile', + **kwargs): + super(Make, self).__init__(srcdir=srcdir, **kwargs) + self.set_make_infile(make_infile) + self.set_make_outfile(make_outfile) # relative to build dir def set_make_infile(self, ipath): self.make_in = ipath |