[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Branching based on Python version (was [PATCH 2/6] gnu: add python-s
From: |
Leo Famulari |
Subject: |
Re: Branching based on Python version (was [PATCH 2/6] gnu: add python-sqlparse and python2-sqlparse) |
Date: |
Mon, 25 Apr 2016 15:06:03 -0400 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
On Sun, Apr 24, 2016 at 11:40:29PM +0200, Ludovic Courtès wrote:
> Leo Famulari <address@hidden> skribis:
>
> > On Thu, Apr 21, 2016 at 09:19:49PM +0200, Hartmut Goebel wrote:
> >> * gnu/packages/python.scm (python-sqlparse) (python2-sqlparse):
> >> New variables.
> >
> >> + (arguments
> >> + `(#:phases
> >> + (modify-phases %standard-phases
> >> + (replace 'check
> >> + (lambda* _
> >> + ;; setup.py-integrated 2to3 only affects the build files, but
> >> + ;; py.test is using the source files. So we need to convert
> >> them
> >> + ;; manually.
> >> + (if (zero? (system* "python3"))
> >> + (system* "2to3" "--no-diff" "-wn" "sqlparse" "tests")
> >> + #t)
> >> + (zero? (system* "py.test")))))))
> >
> > I think there must be a better way to do this conditional, but I'm not
> > sure what it is. Does anyone have any ideas?
>
> (guix build python-build-system) includes ‘get-python-version’, which
> could be used for this purpose.
>
> But I think the above is acceptable here (I’d use ‘when’ instead of the
> one-armed ‘if’, but that’s purely cosmetic.)
Okay, sounds good.
Hartmut, can you change it to use 'when' when you submit your revisions
to python-selenium and python-geoip2?
>
> Thanks,
> Ludo’.
- [PATCH 0/6] Updated: Some new python packages, Hartmut Goebel, 2016/04/21
- [PATCH 4/6] gnu: Add python2-ipaddr, a Python-2-only package, Hartmut Goebel, 2016/04/21
- [PATCH 1/6] gnu: Add python-tblib and python2-tblib, Hartmut Goebel, 2016/04/21
- [PATCH 6/7] gnu: add comment pointing to python-requests-mock in openstack, Hartmut Goebel, 2016/04/21
- [PATCH 5/6] gnu: add python-maxminddb and python2-maxminddb, Hartmut Goebel, 2016/04/21
- [PATCH 6/6] gnu: add python-geoip2 and python2-geoip2, Hartmut Goebel, 2016/04/21
- [PATCH 7/7] gnu: add python-geoip2 and python2-geoip2, Hartmut Goebel, 2016/04/21