<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/5871e2eeb5863d169de702e8dfdd7666e984be67">https://github.com/macports/macports-ports/commit/5871e2eeb5863d169de702e8dfdd7666e984be67</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 5871e2eeb5863d169de702e8dfdd7666e984be67
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Thu Oct 28 18:13:04 2021 +1100
<span style='display:block; white-space:pre;color:#404040;'> py-python-install: fix scripts_cache_dir exception
</span>---
python/py-python-install/Portfile | 2 +-
python/py-python-install/files/patch-install-__init__.py.diff | 11 ++++++-----
2 files changed, 7 insertions(+), 6 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-python-install/Portfile b/python/py-python-install/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 785944b5ce7..af826303dc3 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-python-install/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-python-install/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,7 +5,7 @@ PortGroup python 1.0
</span>
name py-python-install
version 0.0.3
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 4
</span> platforms darwin
supported_archs noarch
maintainers {jmr @jmroot} openmaintainer
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-python-install/files/patch-install-__init__.py.diff b/python/py-python-install/files/patch-install-__init__.py.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index 7896e33eff9..6dda4fdb612 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-python-install/files/patch-install-__init__.py.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-python-install/files/patch-install-__init__.py.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -9,9 +9,9 @@
</span> from distutils.dir_util import copy_tree
for node in os.listdir(src):
if node in ignore:
<span style='display:block; white-space:pre;background:#ffe0e0;'>---- install/__init__.py.orig
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ install/__init__.py
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -131,6 +131,17 @@ def _replace_shebang(dir, interpreter): # type: (str, str) -> None
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- install/__init__.py.orig 2021-10-28 17:53:51.000000000 +1100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ install/__init__.py 2021-10-28 17:54:43.000000000 +1100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -133,6 +133,17 @@
</span> f.close()
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -29,11 +29,12 @@
</span> def _check_requirement(requirement_string): # type: (str) -> bool
import packaging.requirements
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -238,9 +249,11 @@ def build(wheel, cache_dir, optimize=[0, 1, 2], verify_dependencies=False): # t
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -240,9 +251,12 @@
</span>
if os.path.isfile(entrypoints_file):
_generate_entrypoint_scripts(entrypoints_file, scripts_cache_dir)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+ _make_executable(scripts_cache_dir)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if os.path.isdir(scripts_cache_dir):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ _make_executable(scripts_cache_dir)
</span>
if os.path.isdir(scripts_dir):
_replace_shebang(scripts_dir, sys.executable)
</pre><pre style='margin:0'>
</pre>