<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/63fb11fed7a9fda14d6e434946d3ff6b7fec8467">https://github.com/macports/macports-ports/commit/63fb11fed7a9fda14d6e434946d3ff6b7fec8467</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 63fb11fed7a9fda14d6e434946d3ff6b7fec8467
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Tue Nov 2 13:27:20 2021 +1100
<span style='display:block; white-space:pre;color:#404040;'> py-bootstrap-modules: apply build patch
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Don't try to import packaging when it's not needed.
</span>---
python/py-bootstrap-modules/Portfile | 2 +
.../py-bootstrap-modules/files/build_env.py.patch | 45 ++++++++++++++++++++++
2 files changed, 47 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-bootstrap-modules/Portfile b/python/py-bootstrap-modules/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 06fd24b70f4..8bef3b76eb3 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-bootstrap-modules/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-bootstrap-modules/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,6 +4,7 @@ PortSystem 1.0
</span>
name py-bootstrap-modules
version 2021-11-02
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> maintainers jmr
categories python
license MIT
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -65,6 +66,7 @@ checksums build-${build_vers}.tar.gz\
</span> sha256 e2ef7239991699e3355d54f8e968a21bb940a1dbf34a4d226741e64462516fad
patch {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${workpath}/build-${build_vers} "patch -p0 < ${filespath}/build_env.py.patch"
</span> system -W ${workpath}/pep517-${pep517_vers} "patch -p0 < ${filespath}/no-deps-option.diff"
system -W ${workpath}/python-install-${python-install_vers} "patch -p0 < ${filespath}/patch-install-__init__.py.diff"
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-bootstrap-modules/files/build_env.py.patch b/python/py-bootstrap-modules/files/build_env.py.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..55a2e87efd9
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-bootstrap-modules/files/build_env.py.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,45 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 0fffa1271bfd58ab1f1278f27c1f780b5917a773 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Ravi Teja Gannavarapu <45204340+IamRaviTejaG@users.noreply.github.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Sat, 23 Oct 2021 20:22:47 +0530
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] env: only import packaging wherever required
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PR #395
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Co-authored-by: Ravi Teja Gannavarapu <raviteja@clevertap.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/build/env.py | 7 ++++---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tests/test_env.py | 2 +-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 2 files changed, 5 insertions(+), 4 deletions(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git src/build/env.py src/build/env.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 4b0725ad..e6d22b5d 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/build/env.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/build/env.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -15,9 +15,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from types import TracebackType
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from typing import Callable, Iterable, List, Optional, Tuple, Type
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-import packaging.requirements
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-import packaging.version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ import build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -62,6 +59,8 @@ def install(self, requirements: Iterable[str]) -> None:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @functools.lru_cache(maxsize=None)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ def _should_use_virtualenv() -> bool:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ import packaging.requirements
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # virtualenv might be incompatible if it was installed separately
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # from build. This verifies that virtualenv and all of its
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # dependencies are installed as specified by build.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -254,6 +253,8 @@ def _create_isolated_env_venv(path: str) -> Tuple[str, str]:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ """
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ import venv
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ import packaging.version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ venv.EnvBuilder(with_pip=True, symlinks=_fs_supports_symlink()).create(path)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ executable, script_dir, purelib = _find_executable_and_scripts(path)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>