[PyObjC-svn] r2255 - trunk/pyobjc/pyobjc-core
[email protected] Sun, 31 May 2009 08:03:24 -0500
| Newsgroups | gmane.comp.python.pyobjc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: ronaldoussoren
Date: Sun May 31 08:03:24 2009
New Revision: 2255
Log:
Ensure that PyObjCTest doesn't get installed.
Modified:
trunk/pyobjc/pyobjc-core/setup.py
Modified: trunk/pyobjc/pyobjc-core/setup.py
==============================================================================
--- trunk/pyobjc/pyobjc-core/setup.py (original)
+++ trunk/pyobjc/pyobjc-core/setup.py Sun May 31 08:03:24 2009
@@ -48,9 +48,17 @@
"""
from setuptools import setup, Extension, find_packages
-from setuptools.command import build_ext
+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):
@@ -309,7 +317,7 @@
namespace_packages = ['PyObjCTools'],
package_dir = { '': 'Lib', 'PyObjCTest': 'PyObjCTest' },
extra_path = "PyObjC",
- cmdclass = {'build_ext': pyobjc_build_ext },
+ cmdclass = {'build_ext': pyobjc_build_ext, 'install_lib': pyobjc_install_lib },
options = {'egg_info': {'egg_base': 'Lib'}},
classifiers = CLASSIFIERS,
license = 'MIT License',
------------------------------------------------------------------------------
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