Make trytond add all paths listed in GUIX_TRYTOND_MODULES_PATH to sys.path. *** a/trytond/modules/__init__.py 1970-01-01 01:00:01.000000000 +0100 --- b/trytond/modules/__init__.py 2021-12-02 22:17:28.014612267 +0100 *************** *** 31,36 **** --- 31,48 ---- EGG_MODULES = {} + def __extend_python_path__(): + tryton_python_path = os.environ.get("GUIX_TRYTOND_MODULES_PATH") + if tryton_python_path: + paths = [path[:-16] # remove "/trytond/modules" + for path in tryton_python_path.split(os.pathsep)] + sys.path.extend(paths) + # ensure new paths are in the pkg_resources WorkingSet + import pkg_resources + list(map(pkg_resources.working_set.add_entry, paths)) + + __extend_python_path__() + def update_egg_modules(): global EGG_MODULES l cripts Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/build/chromium-extension.scm
AgeCommit message (Expand)Author
2021-12-23chromium-extension: Avoid another usage of the store-mapped /tmp....* gnu/build/chromium-extension.scm (make-crx): Use a Chromium profile relative to the build directory instead of /tmp. While here, remove obsolete comment. Marius Bakke
2021-12-16chromium-extension: Build .crx files in a deterministic fashion....* gnu/build/chromium-extension.scm (make-crx): Pass #:keep-mtime? #t to COPY-RECURSIVELY. Remove defunct FAKETIME workaround. While at it, pack the extension in the scratch working directory instead of the transient store-mapped /tmp. Marius Bakke
2021-12-16chromium-extension: Avoid usage of gcrypt at evaluation time....* gnu/build/chromium-extension.scm (make-signing-key): Wrap builder in with-extensions, and compute the seed checksum at build time. Marius Bakke
2021-12-16chromium-extension: Reduce imported-modules scope....* gnu/build/chromium-extension.scm (make-crx): Delay with-imported-modules until the builder code. (crx->chromium-json): Remove needless define* while at it. Marius Bakke
2021-12-16chromium-extension: Simplify builder code....* gnu/build/chromium-extension.scm (chromium-json->profile-object): Remove variable. (file-sha256): New variable. (make-chromium-extension): Rename OUTPUT parameter to prevent conflict. Adjust other variable names for clarity. [inputs]: Clear. [arguments]: Inline and simplify the final transformation with a gexp. Marius Bakke