Re: [Pyobjc-dev] [Pythonmac-SIG] PyObjC and macOS 10.12 (Sierra)
Brought to you by:
ronaldoussoren
From: Andrew J. <a.h...@gm...> - 2016-09-21 08:52:36
|
On 20/09/2016 20:54, Glyph Lefkowitz wrote: >> On Sep 20, 2016, at 10:29 AM, Andrew Jaffe <a.h...@gm...> wrote: >> >> On 17/09/2016 18:59, Glyph Lefkowitz wrote: >>> >>>> On Sep 17, 2016, at 9:27 AM, Ned Deily <na...@py...> wrote: >>>> >>>> On 2016-09-13 19:33, Glyph Lefkowitz wrote: >>>>>> On Sep 13, 2016, at 3:35 PM, Andrew Jaffe <a.h...@gm...> wrote: >>>>>> >>>>>> Aha! >>>>>> >>>>>> $ ls -lt /Library/Python/2.7/site-packages/ >>>>>> total 0 >>>>>> -rwxr-xr-x 1 root wheel 157 31 Jul 02:36 Extras.pth* >>>>>> -rw-r--r-- 1 root wheel 119 31 Jul 02:36 README >>>>>> $ more /Library/Python/2.7/site-packages/Extras.pth >>>>>> /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python >>>>>> /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC >>>>>> >>>>> Hah! Thanks for sharing. Very satisfying to actually make a *correct* >>>>> prediction about setuptools' behavior :) >>>> >>>> This seems to be Apple's doing. AFAICT, 10.12 is shipping with this >>>> Extras.pth file in /Library/Python/2.7; it's something new. And, >>>> unfortunately, due to https://bugs.python.org/issue4865, the >>>> site-packages directory for the system Python 2.7 is included in >>>> sys.path along with the non-system framework Python site-packages. >>> >>> This seems wrong; someone should file a radar (and probably share >>> on http://www.openradar.me <http://www.openradar.me/> for further >>> discussion). >> >> In the meantime, what's the recommended workaround? > > Looking back over the thread, my first reply was: "Make a virtualenv and > install pyobjc there", but I didn't see a direct response to that. That > would still be my first choice for a workaround. Is there some reason > that doesn't work for you? That would work, and in fact I don't really need PyObjC (sorry, Ronald!) but I've got my whole setup working with the "global" python.org framework build, so I am used to that... and the Sierra status quo does seem ugly (and quite possibly is a bug!). Andrew |