[PyObjC-svn] r2256 - trunk/pyobjc/pyobjc-framework-Cocoa
[email protected] Sun, 31 May 2009 08:04:49 -0500
| Newsgroups | gmane.comp.python.pyobjc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: ronaldoussoren
Date: Sun May 31 08:04:49 2009
New Revision: 2256
Log:
Ensure that PyObjCTest doesn't get installed
Modified:
trunk/pyobjc/pyobjc-framework-Cocoa/setup.py
Modified: trunk/pyobjc/pyobjc-framework-Cocoa/setup.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Cocoa/setup.py (original)
+++ trunk/pyobjc/pyobjc-framework-Cocoa/setup.py Sun May 31 08:04:49 2009
@@ -12,7 +12,7 @@
from setuptools import setup, Extension
-from setuptools.command import build_ext
+from setuptools.command import build_ext, install_lib
import os
if int(os.uname()[2].split('.')[0]) <= 8:
@@ -29,6 +29,18 @@
extra_options = lambda name: {}
+from setuptools.command import build_ext, install_lib
+import os
+
+class pyobjc_install_lib (install_lib.install_lib):
+ def get_exclusions(self):
+ result = install_lib.install_lib.get_exclusions(self)
+ for fn in install_lib._install_lib.get_outputs(self):
+ if 'PyObjCTest' in fn:
+ result[fn] = 1
+
+ return result
+
class pyobjc_build_ext (build_ext.build_ext):
def run(self):
build_ext.build_ext.run(self)
@@ -39,6 +51,7 @@
self.extensions = extensions
extra_cmdclass['build_ext'] = pyobjc_build_ext
+extra_cmdclass['install_lib'] = pyobjc_install_lib
setup(
name='pyobjc-framework-Cocoa',
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com