Permalink
Browse files

py-idna: fix permissions of PKG-INFO

  • Loading branch information...
jmroot committed Jun 18, 2018
1 parent 82e4271 commit af4940c5369f5ae23852fde08dcb7c1c5d0432ed
Showing with 9 additions and 1 deletion.
  1. +9 −1 python/py-idna/Portfile
View
@@ -5,7 +5,7 @@ PortGroup python 1.0
name py-idna
version 2.7
-revision 0
+revision 1
categories-append devel
platforms darwin
license BSD
@@ -31,5 +31,13 @@ if {${name} ne ${subport}} {
depends_build-append \
port:py${python.version}-setuptools
+ post-extract {
+ # Unreadable PKG-INFO breaks setuptools, and setuptools doesn't
+ # ensure it is installed with read permissions.
+ # https://github.com/pypa/setuptools/issues/1328
+ # https://github.com/pypa/setuptools/issues/617
+ system "chmod -R a+r ${worksrcpath}"
+ }
+
livecheck.type none
}

0 comments on commit af4940c

Please sign in to comment.