Merge lp:~maxb/udd/environment-setup into lp:udd
Status: | Work in progress |
---|---|
Proposed branch: | lp:~maxb/udd/environment-setup |
Merge into: | lp:udd |
Diff against target: |
99 lines (+20/-20) 5 files modified
bin/_path.py (+3/-0) bin/import-package (+14/-0) etc-init.d-mass-import (+2/-8) fixit.sh (+1/-9) importer.crontab (+0/-3) |
To merge this branch: | bzr merge lp:~maxb/udd/environment-setup |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu Distributed Development Developers | Pending | ||
Review via email: mp+101307@code.launchpad.net |
Unmerged revisions
- 577. By Max Bowsher
-
Merge
- 576. By Max Bowsher
-
Merge trunk.
- 575. By Max Bowsher
-
Move the distro-info special case to import-package too.
Fix a couple of missing imports found via pyflakes. - 574. By Max Bowsher
-
As jml / james_w use the udd codebase for some other stuff, move unrelated
environment settings out of the common imported file.Happily, they're only relevant to import-package anyway, and that's purely
UDD-specific, so put them there instead. - 573. By Max Bowsher
-
Factor out duplicated environent setup functionality from the /etc/init.d
script, the crontab, and fixit.sh into code imported by all the scripts.This results in the scripts being directly runnable without prior effort to
configure appropriate environment variables being needed.Also stop exporting BASEDIR, since it's not needed elsewhere, and stop
exporting PATH, which by definition must be already exported to be useful.
Recording some (inconclusive) IRC discussion:
11:57 < mgz> maxb: seems pretty reasonable to me, might just want vila to look it over too
everything *in* again goes in the opposite direction, you should see with them to reach a consensus
12:06 < vila> maxb: the scripts have been rewritten by jml/james_w because they want to reuse udd in a different context so they wanted some dependencies *out* of the scripts (adding pkgimport.conf starts addressing that), putting
12:08 < vila> maxb: have a look at udd/iconfig.py too which already defines pi.install_dir and pi.base_dir based on _root_dir that you're duplicating with udd_scripts_root
12:09 * vila bbl
12:26 < maxb> vila: jml / james_w are welcome to re-use the udd.* modules, but making our bin/ scripts do the right thing when invoked without wrapper shell scripts shouldn't affect them, I would think
12:27 < jml> maxb: I haven't looked at this change in particular (kind of caught up in something else atm)....
12:27 < jml> maxb: but personally, I think the best thing we can do for this code-base is to split the "watch packages on Launchpad" bit away from the "import packages into branches" bit.
12:29 < maxb> Sure, but right now I just want scripts that don't die if I don't have a PYTHONPATH set :-)