git: fc5effbd7844 - main - devel/py-PeachPy: Fix build with setuptools 61.0.0+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 16 Apr 2022 04:25:37 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fc5effbd7844310602b6fe0926eecf05e2e349f0

commit fc5effbd7844310602b6fe0926eecf05e2e349f0
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-04-16 04:15:48 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-04-16 04:19:55 +0000

    devel/py-PeachPy: Fix build with setuptools 61.0.0+
    
    With hat:       python
---
 devel/py-PeachPy/files/patch-setup.py | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/devel/py-PeachPy/files/patch-setup.py b/devel/py-PeachPy/files/patch-setup.py
new file mode 100644
index 000000000000..487e8aeb11f4
--- /dev/null
+++ b/devel/py-PeachPy/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2018-02-25 10:20:32 UTC
++++ setup.py
+@@ -35,7 +35,7 @@ class GenerateInstructions(Command):
+     def run(self):
+         # package_dir may be None, in that case use the current directory.
+         import os
+-        if self.distribution.package_dir is None:
++        if not self.distribution.package_dir:
+             src_dir = os.getcwd()
+         else:
+             src_dir = os.path.abspath(self.distribution.package_dir[""])