Roumen Petrov <[email protected]> added the comment:
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
=================================
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue9419>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com