Re: [Pyobjc-dev] Installing pyobjc?
Brought to you by:
ronaldoussoren
From: Michael M. <mic...@gm...> - 2012-08-31 18:44:33
|
Further, using MACOSX_DEPLOYMENT_TARGET=10.5 would appear to require a python that's built using that also, at least for virtualenv (see below for what I'm seeing) Does anyone have tips on installing pyobjc in a virtualenv? Or for that matter, what's the best way to install it for developing a py2app based app that'll use it? I don't require virtualenv - in fact, if I could just get a .egg of pyobjc and its wrappers, that'd work fine for me… % export MACOSX_DEPLOYMENT_TARGET=10.5 % virtualenv PYOBJCTEST Traceback (most recent call last): File "/usr/local/bin//virtualenv", line 5, in <module> from pkg_resources import load_entry_point File "/usr/local/lib/python2.7/site-packages/distribute-0.6.27-py2.7.egg/pkg_resources.py", line 724, in <module> class Environment(object): File "/usr/local/lib/python2.7/site-packages/distribute-0.6.27-py2.7.egg/pkg_resources.py", line 727, in Environment def __init__(self, search_path=None, platform=get_supported_platform(), python=PY_MAJOR): File "/usr/local/lib/python2.7/site-packages/distribute-0.6.27-py2.7.egg/pkg_resources.py", line 106, in get_supported_platform plat = get_build_platform(); m = macosVersionString.match(plat) File "/usr/local/lib/python2.7/site-packages/distribute-0.6.27-py2.7.egg/pkg_resources.py", line 249, in get_build_platform plat = get_platform() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/util.py", line 98, in get_platform cfgvars = get_config_vars() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/sysconfig.py", line 498, in get_config_vars func() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/sysconfig.py", line 407, in _init_posix raise DistutilsPlatformError(my_msg) distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.5" but "10.7" during configure On Fri, Aug 31, 2012 at 11:34 AM, Michael McCracken <mic...@gm...> wrote: > On Wed, Jun 27, 2012 at 3:58 AM, Ronald Oussoren <ron...@ma...> wrote: >> >> On 25 Jun, 2012, at 17:25, Mark Sienkiewicz wrote: >> >>> I'm trying to install pyobjc in a custom python 2.7.3 build. I see that "easy_install pyobjc", installs a bunch of stuff, but then says: >>> >>> Running pyobjc-framework-SystemConfiguration-2.3/setup.py -q bdist_egg --dist-dir /var/folders/1z/7z0y590s66339qm1m1djyx4w0004jf/T/easy_install-nZl6LQ/pyobjc-framework-SystemConfiguration-2.3/egg-dist-tmp-jWDaaK >>> error: Could not find required distribution pyobjc-core >>> >>> This is pyobjc 2.3, which is the default from pypi. The web site at pyobjc.sourceforge.net says the latest is pyobjc 2.2, so this looks a bit odd. >>> >>> I also found that pyobjc 2.2 does not install on Snow Leopard or Lion unless you set the environment variable MACOSX_DEPLOYMENT_TARGET=10.5 ; it is probably worth mentioning this on the web site. >>> >>> So, my conclusion is: >>> >>> - use pyobjc 2.2 >>> - use MACOSX_DEPLOYMENT_TARGET=10.5 >>> >>> Does this seem reasonable, or am I missing something? >> >> Installation of pyobjc is annoyinly hard at the moment. The current version of PyObjC is 2.3, <http://pypi.python.org/pypi/pyobjc>. A number of people have mentioned that installing this using "easy_install pyobjc" won't work. I tend to install manually (first install pyobjc-core, then install pyobjc-framework-Cocoa, then install the other framework wrappers you need) and haven't had time to look into this issue. >> >> The website is very much out of date. This is something I want to fix, but once again haven't had time to work on. > > I'd like to volunteer to help with the site, at least to help update > it when you make your next release. Are you planning on keeping it at > sourceforge? > > Also, do you have any notes on the build process? I was stumped about > how to build from the bitbucket source until I saw this email. The > build-support directory looks like it is meant to be useful but is not > complete yet, is that correct? > > Thanks, > -mike > >> I'm currently working on a new release, hopefully around the same time as OSX 10.8 gets released. My repository is at https://bitbucket.org/ronaldoussoren/pyobjc. >> >> My current goal is to get everything working correctly on the current OSX 10.8 beta (not just pyobjc, but also py2app). After that I'll work on the website, and hopefully I can finish all work before 10.8 is actually released. >> >> Ronald >>> >>> Mark S. >>> >>> >>> ------------------------------------------------------------------------------ >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and >>> threat landscape has changed and how IT managers can respond. Discussions >>> will include endpoint security, mobile security and the latest in malware >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> _______________________________________________ >>> Pyobjc-dev mailing list >>> Pyo...@li... >>> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Pyobjc-dev mailing list >> Pyo...@li... >> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev >> |