Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4748)

Issue 4951047: Uses langdefs.py to create language list for create-weblinks-itexi.py (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by PhilEHolmes
Modified:
12 years, 7 months ago
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Patch 1 demonstrates how to import a library into a python file where the path is not already in the pathlist. It half-fixes the issue where languages are defined in many places in make website - the other needs changes to website.make, but there is a problem with that since the variable PYTHON is not guaranteed to be defined. Patch 2 should be read in conjuction with the change to the CG pushed as 022d5c7ef759c586e3ca6478cf5f1b5d56d31778. This shows how to set PYTHONPATH as part of the call to make, to allow python to find included libraries. Note the comment about the definition of the PYTHON variable. This is defined in config.make.in which is called with a normal call to make website, but not with the out-of-build-tree version documented in the CG section as above. Setting this as part of the call will be the next step. Patch 5 should be the final version of this. NB. DO NOT USE THIS PATCH AS IS ON YOUR PRODUCTION SYSTEM. I have set is with a reduced set of languages to prove it works. Tested and working on make website. Not yet tested on the standalone website build, but should work the same.

Patch Set 1 #

Total comments: 1

Patch Set 2 : Updated simpler version to make create-weblinks-itexi use langdefs #

Patch Set 3 : Updated following Jan's suggestion #

Patch Set 4 : Further update to delete unneeded line #

Patch Set 5 : Update to complete use of langdefs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -9 lines) Patch
M make/website.make View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M python/langdefs.py View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M scripts/build/create-weblinks-itexi.py View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 15
PhilEHolmes
As requested - please review.
12 years, 8 months ago (2011-08-29 14:56:27 UTC) #1
Graham Percival (old account)
http://codereview.appspot.com/4951047/diff/1/scripts/build/create-weblinks-itexi.py File scripts/build/create-weblinks-itexi.py (right): http://codereview.appspot.com/4951047/diff/1/scripts/build/create-weblinks-itexi.py#newcode31 scripts/build/create-weblinks-itexi.py:31: # Unable to find langdefs This looks more complicated ...
12 years, 8 months ago (2011-08-31 04:58:08 UTC) #2
PhilEHolmes
An update after further research following GP's pointer. Please review.
12 years, 8 months ago (2011-09-01 16:24:55 UTC) #3
Graham Percival (old account)
Looks plausible, but I haven't tested it quite yet. Could we get: 1) update to ...
12 years, 8 months ago (2011-09-01 20:51:18 UTC) #4
janneke
If that works, then why not have --- a/scripts/build/create-weblinks-itexi.py +++ b/scripts/build/create-weblinks-itexi.py @@ -9,11 +9,11 @@ ...
12 years, 7 months ago (2011-09-02 06:25:59 UTC) #5
Graham Percival (old account)
On 2011/09/02 06:25:59, jan.nieuwenhuizen wrote: > If that works, then why not have > > ...
12 years, 7 months ago (2011-09-03 09:28:45 UTC) #6
mail_philholmes.net
----- Original Message ----- From: <percival.music.ca@gmail.com> To: <PhilEHolmes@googlemail.com>; <jan.nieuwenhuizen@gmail.com> Cc: <reply@codereview.appspotmail.com>; <lilypond-devel@gnu.org> Sent: Saturday, September ...
12 years, 7 months ago (2011-09-03 09:36:33 UTC) #7
Graham Percival
On Sat, Sep 03, 2011 at 10:36:28AM +0100, Phil Holmes wrote: > >Phil, why did ...
12 years, 7 months ago (2011-09-03 09:43:48 UTC) #8
Graham Percival
On Sat, Sep 03, 2011 at 10:36:28AM +0100, Phil Holmes wrote: > Please see my ...
12 years, 7 months ago (2011-09-04 12:39:22 UTC) #9
email_philholmes.net
----- Original Message ----- From: "Graham Percival" <graham@percival-music.ca> To: "Phil Holmes" <mail@philholmes.net> Cc: <PhilEHolmes@googlemail.com>; <percival.music.ca@gmail.com>; ...
12 years, 7 months ago (2011-09-04 14:53:53 UTC) #10
PhilEHolmes
Updated patch to use Jan's syntax. Please review.
12 years, 7 months ago (2011-09-04 15:22:20 UTC) #11
Graham Percival (old account)
LTGM, not tested, but I'm willing to put it up and just see if anything ...
12 years, 7 months ago (2011-09-05 18:10:57 UTC) #12
PhilEHolmes
I hope the final version of the patch that removes language definitions from website.make and ...
12 years, 7 months ago (2011-09-14 16:35:31 UTC) #13
Graham Percival (old account)
LGTM, go ahead and push.
12 years, 7 months ago (2011-09-14 19:49:54 UTC) #14
email_philholmes.net
12 years, 7 months ago (2011-09-15 09:54:37 UTC) #15
----- Original Message ----- 
From: <percival.music.ca@gmail.com>
To: <PhilEHolmes@googlemail.com>; <jan.nieuwenhuizen@gmail.com>
Cc: <lilypond-devel@gnu.org>; <reply@codereview.appspotmail.com>
Sent: Wednesday, September 14, 2011 8:49 PM
Subject: Re: Uses langdefs.py to create language list for 
create-weblinks-itexi.py (issue 4951047)


> LGTM, go ahead and push.
>
> http://codereview.appspot.com/4951047/

Pushed as a04d1cb5153717523cdafe23faeb2166571603da

--
Phil Holmes

Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b