Author rpetrov
Recipients barry, eric.araujo, phaering, rpetrov
Date 2011-01-12.00:04:10
SpamBayes Score 6.993e-07
Marked as misclassified No
Message-id <1294790652.96.0.036892300877.issue9419@psf.upfronthosting.co.za>
In-reply-to
Content
Yes Peter, build outside source tree fail for,  fail for me and pass for python developers :). So no idea how to convince them to fix this issue.

Next is from my sources for python 2.7

Index: Lib/distutils/tests/test_build_ext.py
===================================================================
--- Lib/distutils/tests/test_build_ext.py       (revision 87946)
+++ Lib/distutils/tests/test_build_ext.py       (working copy)
@@ -91,6 +91,9 @@
             sys.stdout = StringIO()
         try:
             cmd.ensure_finalized()
+            #Broken after issue 7712(r78136) : add a temp_cwd context manager to test_support ...
+            #Without current working dir: "...cannot find -lpython27"
+            cmd.library_dirs.insert(0, test_support.SAVEDCWD)
             cmd.run()
         finally:
             sys.stdout = old_stdout
@@ -284,6 +287,12 @@
         # returns wrong result with --inplace
         other_tmp_dir = os.path.realpath(self.mkdtemp())
         old_wd = os.getcwd()
+        print >> sys.stderr, "...TRACE test_build_ext.py:test_get_outputs old_wd=%s" %(old_wd)
+        #Without current working dir: "...cannot find -lpython27"
+        #NOTE: After issue #7712(r78136) test cannot use old_wd !
+        #cmd.library_dirs.insert(0, old_wd)
+        cmd.library_dirs.insert(0, test_support.SAVEDCWD)
+        #?#cmd.library_dirs.insert(0, old_wd)
         os.chdir(other_tmp_dir)
         try:
             cmd.inplace = 1
=================================
History
Date User Action Args
2011-01-12 00:04:13rpetrovsetrecipients: + rpetrov, barry, eric.araujo, phaering
2011-01-12 00:04:12rpetrovsetmessageid: <1294790652.96.0.036892300877.issue9419@psf.upfronthosting.co.za>
2011-01-12 00:04:11rpetrovlinkissue9419 messages
2011-01-12 00:04:10rpetrovcreate