mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
devel/py-PeachPy: Fix build with setuptools 61.0.0+
With hat: python
This commit is contained in:
parent
2f766fbc6b
commit
fc5effbd78
1 changed files with 11 additions and 0 deletions
11
devel/py-PeachPy/files/patch-setup.py
Normal file
11
devel/py-PeachPy/files/patch-setup.py
Normal 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[""])
|
Loading…
Add table
Reference in a new issue