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:]: /table>
aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/potassco.scm
AgeCommit message (Expand)Author
2023-07-08gnu: emacs-pasp-mode: Use a source file-name....* gnu/packages/potassco.scm (emacs-pasp-mode)[source]: Use a source file-name. Efraim Flashner
2023-07-01gnu: catch2: Update to 3.3.2....* gnu/packages/check.scm (catch2-3.1): Rename to catch2-3.3. [version, source]: Update to 3.3.2. [outputs]: Remove ‘doc’. [build-system]: Use cmake-build-system. [arguments]: Remove special phases. Add CMake options to #:configure-flags. * gnu/packages/potassco.scm (clingo): Adjust accordingly. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> David Elsing
2023-07-01gnu: clingo: Unbundle dependencies....* gnu/packages/potassco.scm: (clingo)[#:phases]: Patch CMakeLists.txt files to use external dependencies. [native-inputs]: Add mpark-variant, tl-optional, tsl-hopscotch-map, tsl-ordered-map and tsl-sparse-map. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> David Elsing
2023-05-09gnu: Add python-clinguin....* gnu/packages/potassco.scm (python-clinguin): New variable. Liliana Marie Prikler
2023-04-29gnu: libpotassco: Unbundle catch....This patch incidentally fixes a build failure caused by the bundled catch. * gnu/packages/potassco.scm (libpotassco)[source]: Unbundle catch. [native-inputs]: Add catch2-1. Liliana Marie Prikler
2023-04-19gnu: python-typing-extensions: Move to (gnu packages python-build)....* gnu/packages/python-xyz.scm (python-typing-extensions): Move to... * gnu/packages/python-build.scm (python-typing-extensions): ... here. Maxim Cournoyer
2023-04-02gnu: Add python-clingraph....* gnu/packages/potassco.scm (python-clingraph): New variable. Liliana Marie Prikler
2023-04-02gnu: Separate potassco packages into their own module....* gnu/packages/potassco.scm: New file. * gnu/packages/maths.scm (libpotassco, clasp, clingo, python-clingo) (python-telingo): Move to potassco module. Adjust imports accordingly. * gnu/packages/emacs-xyz.scm (emacs-pasp-mode): Move to potassco module. * gnu/local.mk (GNU_SYSTEM_MODULES): Add %D%/packages/potassco.scm. Liliana Marie Prikler