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

With hat:	python
This commit is contained in:
Po-Chuan Hsieh 2022-04-16 12:15:48 +08:00
parent 2f766fbc6b
commit fc5effbd78
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B

View file

@ -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[""])