[Distutils] [issue70] Patch to remove call to /usr/bin/sw_vers on OSX

Ronald Oussoren setuptools at bugs.python.org
Thu May 21 11:29:41 CEST 2009

New submission from Ronald Oussoren <ronaldoussoren at mac.com>:

The attached patch for setuptools 0.6c9 replaces a shell callout to 
/usr/bin/sw_vers to using platform.mac_ver on OSX.

The primary reason for writing the patch is that gdb tends to cause havoc with 
calls to os.popen (the debugged process gets an signal and debugging gets 

This patch makes it a lot more convenient to run "setup.py test" in a gdb 
session, without this patch I regularly have to re-run the tests several times 
until the callout to sw_vers succeeds.

files: setuptools-no-sw_vers.patch
messages: 289
nosy: ronaldoussoren
priority: feature
status: unread
title: Patch to remove call to /usr/bin/sw_vers on OSX
Added file: http://bugs.python.org/setuptools/file52/setuptools-no-sw_vers.patch

Setuptools tracker <setuptools at bugs.python.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setuptools-no-sw_vers.patch
Type: application/octet-stream
Size: 455 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20090521/24d3ea33/attachment-0001.obj>

More information about the Distutils-SIG mailing list