Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
| #! /usr/bin/env python | |
| import redis | |
| import random | |
| import pylibmc | |
| import sys | |
| r = redis.Redis(host = 'localhost', port = 6389) | |
| mc = pylibmc.Client(['localhost:11222']) |
Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
| # Build Notes | |
| If builds of PostgreSQL 9 are failing and you have version 8.x installed, | |
| you may need to remove the previous version first. See: | |
| https://github.com/mxcl/homebrew/issues/issue/2510 | |
| To build plpython against a specific Python, set PYTHON prior to brewing: | |
| PYTHON=/usr/local/bin/python brew install postgresql | |
| See: | |
| http://www.postgresql.org/docs/9.1/static/install-procedure.html |
| # Client-side Comet code. See comet_server.coffee for instructions. | |
| client = new Faye.Client '/faye', timeout: 90 | |
| # Attach a security key to all our subscription messages. | |
| client.addExtension | |
| outgoing: (msg, callback) -> | |
| return callback(msg) unless msg.channel is '/meta/subscribe' | |
| (msg.ext ?= {}).authToken = 'secret' | |
| callback(msg) |