Simon Willison’s Weblog

Subscribe

Posts tagged python, osx

Filters: python × osx × Sorted by date

Fun with TextMate and PDB. TextMate bookmarks (against lines in a file) are stored as OS X extended attributes, which can be accessed from Python using the xattr module. Here’s a clever piece of code that uses bookmarks to set breakpoints in the command-line pdb debugger.

# 23rd March 2010, 9:48 am / debugging, osx, pdb, python, textmate, xattr

Installing PIL on Mac OS X Snow Leopard for use in Google App Engine. PIL installation instructions that actually work... the ’export CC=“gcc -arch i386”’ incantation in particular. Make sure you run setup.py install using the Python version that the App Engine dev tools are using (I ran “sudo /usr/bin/python2.6 setup.py install”).

# 15th March 2010, 4:06 pm / osx, pil, python, snowleopard

countdown_to_newyear.py. A quick Python / OS X script I knocked up last night to count in the new year (using the OS X “say” command).

# 1st January 2010, 4:24 pm / code, newyear, osx, projects, python, say, scripts

MySQL, Python and MacOS X 10.6 (Snow Leopard). I gave up on compiling things when I upgraded to Snow Leopard—I’m back to running Ubuntu in a VMWare instance, mounted over Samba so I can still use TextMate.

# 25th September 2009, 10:14 pm / mysql, osx, python, samba, snowleopard, textmate, ubuntu, vmware

How to install lxml python module on mac os 10.5 (leopard). Instructions that work! Finally, I can find out what all the fuss is about.

# 15th December 2008, 12:05 am / leopard, libxml2, lxml, osx, python, xml

PyObjC 2.0 changes (via) All the good stuff that’s in PyObjC 2.0, released as part of Leopard. According to bbum this is the most significant release of PyObjC in 7 years.

# 2nd November 2007, 6:18 am / bbum, bill-bumgarner, osx, pyobjc, python

Python on Leopard. readline is finally bundled, so the interactive interpreter works correctly without hunting around for frustratingly elusive add-ons. easy_install is bundled as well.

# 31st October 2007, 5:53 pm / christopher-lenz, leopard, osx, python, readline, setuptools

Python, Mac OS X, and Readline. This worked for me, though you need to already have gcc and svn installed. It’s crap like this that made me switch to Ubuntu on Parallels for most of my Python development.

# 30th June 2007, 10:24 pm / osx, parallels, python, rant, readline, ubuntu

Mac OS X Leopard: UNIX. Leopard ships with DTrace, and it’s been hooked in to Java, Ruby, Python and Perl.

# 11th June 2007, 11:05 pm / dtrace, java, leopard, osx, perl, python, ruby

DjangoKit. Early preview release of a tool that lets you package a Django application up as a fully contained OS X application. When Leopard ships with PyObjC this kind of thing will be even easier.

# 29th March 2007, 12:50 am / django, djangokit, leopard, osx, pyobjc, python

Incompatible SQLite in OS X and Python. I’ve hit this problem; James has the solution.

# 28th November 2006, 5:40 pm / osx, python, sqlite

Fun with ctypes

This probably only works on Intel-based OS X machines:

[... 86 words]