After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 583227 - jhbuildrc include support
jhbuildrc include support
Status: RESOLVED FIXED
Product: jhbuild
Classification: Infrastructure
Component: general
2.27.x
Other Solaris
: Normal normal
: ---
Assigned To: Jhbuild maintainers
Jhbuild QA
Depends on:
Blocks:
 
 
Reported: 2009-05-19 17:03 UTC by James Andrewartha
Modified: 2009-05-20 21:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description James Andrewartha 2009-05-19 17:03:01 UTC
When running multiple prefixes, it'd be useful to be able to include a common jhbuildrc for common settings like dvcs_mirror_dir, tarballdir, makeargs etc.
Comment 1 Frederic Peters 2009-05-19 17:23:51 UTC
jhbuildrc is Python code, so you could create jhbuild_common_settings.py, and from jhbuild_common_settings.py import *.

Would it be enough for you?
Comment 2 David Adam 2009-05-20 02:25:01 UTC
That doesn't work because there's a bunch of default variables that don't get passed along with the import statement (like the module_autogenargs dictionary).

Using execfile('/path/to/include') instead works fine.
Comment 3 Frederic Peters 2009-05-20 21:01:31 UTC
commit 9f97cb52d1241253bac24ff6151350cb49d74b5e
Author: Frédéric Péters <fpeters@0d.be>
Date:   Wed May 20 23:00:20 2009 +0200

    [config] add include() support (GNOME bug 583227)