[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/2] gnu: Add python-lzo.
From: |
Hartmut Goebel |
Subject: |
Re: [PATCH 2/2] gnu: Add python-lzo. |
Date: |
Thu, 2 Feb 2017 21:32:24 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
Am 02.02.2017 um 16:16 schrieb address@hidden:
> + (string-append "include_dirs.append(\""
> + (assoc-ref %build-inputs "lzo")
> "/include/lzo" "\")
You could use single quotes for teh python string to make it more readable:
string-append "include_dirs.append('" + (assoc-ref %build-inputs "lzo")
"/include/lzo" "')
> +"))))))))
Also this line-break is confusing. I suggest either using "\n" or to
change the substitute into something like:
+ (substitute* "setup.py"
+ (("include_dirs.append\(.*\)") ;; match up to the trailing
parent only, not the new-line
+ (string-append "include_dirs.append('"
+ (assoc-ref %build-inputs "lzo") "/include/lzo"
+ "')")))))))) ;; put these last few characters
on the next line
Otherwise LGTM.
--
Regards
Hartmut Goebel
| Hartmut Goebel | address@hidden |
| www.crazy-compilers.com | compilers which you thought are impossible |
0xBF773B65.asc
Description: application/pgp-keys
- LZ4 + LZO python bindings, contact . ng0, 2017/02/02
- [PATCH 1/2] gnu: Add python-lz4., contact . ng0, 2017/02/02
- [PATCH 2/2] gnu: Add python-lzo., contact . ng0, 2017/02/02
- Re: [PATCH 2/2] gnu: Add python-lzo.,
Hartmut Goebel <=
- python-{lzo,lz4} ,v3, contact . ng0, 2017/02/03
- [PATCH 2/2] gnu: Add python-lzo., contact . ng0, 2017/02/03
- [PATCH 1/2] gnu: Add python-lz4., contact . ng0, 2017/02/03
- Re: python-{lzo,lz4} ,v3, Hartmut Goebel, 2017/02/04
Re: [PATCH 2/2] gnu: Add python-lzo., Maxim Cournoyer, 2017/02/05