[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Inherit inputs when unnecessary in these python2 packages?
From: |
Leo Famulari |
Subject: |
Re: Inherit inputs when unnecessary in these python2 packages? |
Date: |
Sat, 13 Feb 2016 22:19:41 -0500 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
On Sat, Feb 13, 2016 at 06:10:17PM -0800, Christopher Allan Webber wrote:
> I'm doing a lot of packaging for Python packages right now. A lot of
> the code looks like this:
[...]
> > (define-public python2-execnet
> > (package
> > (inherit (package-with-python2
> > (strip-python2-variant python-execnet)))
> > (inputs
> > `(("python2-setuptools" ,python2-setuptools)))))
>
> As you can see, there is no inputs on python-execnet, so it's not
> necessary to include the inputs. However, if (inputs) were added in the
> future, this could lead to a developer mistakenly forgetting to change
> the python2 variant.
>
> What's the better approach?
Take a look at python2-wheel, as in 8ad4ae204f.