-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Conversation
The python version differs on different versions of Mac. Will be great to specify Python version as per system version. |
Sorry I don't exactly understand what you mean, something like a Formula If I were to add an option for specifying the python version to use with Thanks,
On Sat, Sep 10, 2011 at 4:52 AM, Xiyue Deng <
|
Homebrew has a MacOS module that set system version. As Mac OS X 10.5 ships Python 2.5 as default, 10.6 ships Python 2.6 as default, 10.7 ships Python 2.7 as default, the default Python version can be determined by system version. Something like this should work (untested, I'm new to ruby so please correct me): if MacOS.leopard? Then the caveat line could be written like this: export PYTHONPATH="#{HOMEBREW_PREFIX}/lib/python#{python_version}/site-packages/:$PYTHONPATH" On the other hand, I think it will be beneficial if Homebrew could define the default version for Perl, Python, Tcl, PHP, etc. as they did for gcc. It will further simplify formula that installs modules for those languages. |
I agree that having a brew set python_version would help with this because
On Sat, Sep 10, 2011 at 5:02 PM, Xiyue Deng <
|
Have to be careful as It's a bug, but one that has been in Homebrew so long that there are lots of formula using it as a "feature". |
Also correct `PYTHONPATH` in caveats. Fixes Homebrew#5596. Fixes Homebrew#7121. Fixes Homebrew#7453. Closes Homebrew#6692. Closes Homebrew#7500. Closes Homebrew#7706. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Also correct `PYTHONPATH` in caveats. Fixes Homebrew#5596. Fixes Homebrew#7121. Fixes Homebrew#7453. Closes Homebrew#6692. Closes Homebrew#7500. Closes Homebrew#7706. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Also correct `PYTHONPATH` in caveats. Fixes Homebrew#5596. Fixes Homebrew#7121. Fixes Homebrew#7453. Closes Homebrew#6692. Closes Homebrew#7500. Closes Homebrew#7706. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
I updated the package to support opencv 2.3.1. This is tested on OS X 10.7.1.
I am aware of #6692
I think this has either been fixed upstream by opencv or homebrew or OS X. I don't seem to have the issues they are talking about. I am using the system Python though. Maybe we need to retest on SL and with the homebrew python.
Like I said this is working on OS X 10.7.1 with the system Python.