[PyObjC-svn] r2338 - trunk/pyobjc/pyobjc-core/PyObjCTest
[email protected] Tue, 13 Oct 2009 06:12:15 -0500
| Newsgroups | gmane.comp.python.pyobjc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: ronaldoussoren
Date: Tue Oct 13 06:12:15 2009
New Revision: 2338
Log:
Ensure dejagnu.py works when python was build
with --with-pydebug
Modified:
trunk/pyobjc/pyobjc-core/PyObjCTest/dejagnu.py
Modified: trunk/pyobjc/pyobjc-core/PyObjCTest/dejagnu.py
==============================================================================
--- trunk/pyobjc/pyobjc-core/PyObjCTest/dejagnu.py (original)
+++ trunk/pyobjc/pyobjc-core/PyObjCTest/dejagnu.py Tue Oct 13 06:12:15 2009
@@ -103,9 +103,14 @@
return "dejagnu.%s.%s"%(dn, fn)
def compileTestCase(self):
- libdir = os.path.join('build', 'temp.%s-%d.%d'%(get_platform(), sys.version_info[0], sys.version_info[1]), 'libffi-src')
+ libdir = os.path.join('build', 'temp.%s-%d.%d'%(get_platform(), sys.version_info[0], sys.version_info[1]))
+ if hasattr(sys, 'gettotalrefcount'):
+ libdir += "-pydebug"
+ libdir = os.path.join(libdir, 'libffi-src')
+
libffiobjects = self.object_files(libdir)
+
if self.filename.endswith('.m'):
extra_link = '-framework Foundation'
else:
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference