[MacPorts] #52687: py*-pyrcparser files installed without world-readable permissions, causes import of setuptools to fail

MacPorts noreply at macports.org
Mon Oct 24 00:56:56 CEST 2016


#52687: py*-pyrcparser files installed without world-readable permissions, causes
import of setuptools to fail
-----------------------+-------------------------------------------
 Reporter:  ned-deily  |      Owner:  macports-tickets@…
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.3.4
 Keywords:             |       Port:  py27-pycparser,py35-pycparser
-----------------------+-------------------------------------------
 New failures noted trying to update to `py*-pycparser @2.16`.  Note,
 installing from source to non-standard prefix:

 {{{
 $ sudo port install py35-pycparser
 --->  Computing dependencies for py35-pycparser
 --->  Fetching distfiles for py35-pycparser
 --->  Verifying checksums for py35-pycparser
 --->  Extracting py35-pycparser
 --->  Configuring py35-pycparser
 --->  Building py35-pycparser
 --->  Staging py35-pycparser into destroot
 --->  Installing py35-pycparser @2.16_0
 --->  Activating py35-pycparser @2.16_0
 --->  Cleaning py35-pycparser
 --->  Updating database of binaries
 --->  Scanning binaries for linking errors
 --->  No broken files found.
 $ /macports/bin/python3.5
 Python 3.5.2 (default, Oct 13 2016, 13:45:55)
 [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import setuptools
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
 "/macports/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5
 /site-packages/setuptools/__init__.py", line 10, in <module>
     from setuptools.extern.six.moves import filter, filterfalse, map
 [...]
   File
 "/macports/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5
 /site-packages/pkg_resources/__init__.py", line 1470, in get_metadata
     value = self._get(self._fn(self.egg_info, name))
   File
 "/macports/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5
 /site-packages/pkg_resources/__init__.py", line 1579, in _get
     with open(path, 'rb') as stream:
 PermissionError: [Errno 13] Permission denied:
 '/macports/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5
 /site-packages/pycparser-2.16-py3.5.egg-info/PKG-INFO'
 >>>
 $ ls -l
 '/macports/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5
 /site-packages/pycparser-2.16-py3.5.egg-info/PKG-INFO'
 -rw-r-----  1 root  wheel  602 Oct 23 18:44
 /macports/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5
 /site-packages/pycparser-2.16-py3.5.egg-info/PKG-INFO

 }}}

 Same behavior with `py27-pyrcparser`

--
Ticket URL: <https://trac.macports.org/ticket/52687>
MacPorts <https://www.macports.org/>
Ports system for OS X



More information about the macports-tickets mailing list