This is needed to make Mercurial read the HGEXTENSIONPATH to detect third-party extensions. It is called HGEXTENSIONPATH and not HG_EXTENSION_PATH to keep it consistent with other environment variables for Mercurial, e.g. HGENCODINGAMBIGUOUS, HGEDITOR ... Hopefully I or someone else will get this into Mercurial proper. diff --git a/mercurial/extensions.py b/mercurial/extensions.py --- a/mercurial/extensions.py +++ b/mercurial/extensions.py @@ -13,6 +13,7 @@ import imp import inspect import os +import sys from .i18n import ( _, @@ -108,6 +109,11 @@ def _importh(name): """import and return the module""" + # Read HGEXTENSIONSPATH environment variable when import extensions. + extension_path = os.getenv("HGEXTENSIONSPATH") + if extension_path is not None: + for path in extension_path: + sys.path.append(path) mod = __import__(pycompat.sysstr(name)) components = name.split(b'.') for comp in components[1:]: able>
aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/axoloti.scm
AgeCommit message (Expand)Author
2023-01-08gnu: Move Java XML packages to new module....* gnu/packages/xml.scm (java-simple-xml, java-jaxp, java-apache-xml-commons-resolver, java-jaxen, java-xom, java-xsdlib, java-xpp3, java-xmlpull2, java-xmlpull-api-v1, java-dom4j, java-kxml2, java-stax, java-jettison, java-jdom2, java-xstream, java-mxparser): Move these variables from here... * gnu/packages/java-xml.scm: ...to this new file. * gnu/local.mk (GNU_SYSTEM_MODULES): Register new file. * gnu/packages/axoloti.scm, gnu/packages/batik.scm, gnu/packages/bioinformatics.scm, gnu/packages/groovy.scm, gnu/packages/java.scm, gnu/packages/maven.scm: Adjust module imports. Ricardo Wurmus
2022-11-11gnu: axoloti: Remove unused module import....* gnu/packages/axoloti.scm (axoloti-runtime, axoloti-patcher, axoloti-patcher-next)[arguments]: Don't import (guix build syscalls). Marius Bakke