- fixed distutils test
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=75
This commit is contained in:
parent
53002793e3
commit
074122cee8
@ -1,8 +1,8 @@
|
||||
Index: Python-2.6.5/Lib/distutils/tests/test_build_ext.py
|
||||
Index: Python-2.7/Lib/distutils/tests/test_build_ext.py
|
||||
===================================================================
|
||||
--- Python-2.6.5.orig/Lib/distutils/tests/test_build_ext.py
|
||||
+++ Python-2.6.5/Lib/distutils/tests/test_build_ext.py
|
||||
@@ -253,20 +253,14 @@ class BuildExtTestCase(support.TempdirMa
|
||||
--- Python-2.7.orig/Lib/distutils/tests/test_build_ext.py
|
||||
+++ Python-2.7/Lib/distutils/tests/test_build_ext.py
|
||||
@@ -261,20 +261,14 @@ class BuildExtTestCase(support.TempdirMa
|
||||
|
||||
# issue #5977 : distutils build_ext.get_outputs
|
||||
# returns wrong result with --inplace
|
||||
@ -27,3 +27,26 @@ Index: Python-2.6.5/Lib/distutils/tests/test_build_ext.py
|
||||
cmd.compiler = None
|
||||
cmd.inplace = 0
|
||||
cmd.run()
|
||||
Index: Python-2.7/Lib/test/regrtest.py
|
||||
===================================================================
|
||||
--- Python-2.7.orig/Lib/test/regrtest.py
|
||||
+++ Python-2.7/Lib/test/regrtest.py
|
||||
@@ -1503,16 +1503,5 @@ if __name__ == '__main__':
|
||||
if not os.path.exists(TEMPDIR):
|
||||
os.mkdir(TEMPDIR)
|
||||
|
||||
- # Define a writable temp dir that will be used as cwd while running
|
||||
- # the tests. The name of the dir includes the pid to allow parallel
|
||||
- # testing (see the -j option).
|
||||
- TESTCWD = 'test_python_{}'.format(os.getpid())
|
||||
-
|
||||
- TESTCWD = os.path.join(TEMPDIR, TESTCWD)
|
||||
-
|
||||
- # Run the tests in a context manager that temporary changes the CWD to a
|
||||
- # temporary and writable directory. If it's not possible to create or
|
||||
- # change the CWD, the original CWD will be used. The original CWD is
|
||||
- # available from test_support.SAVEDCWD.
|
||||
- with test_support.temp_cwd(TESTCWD, quiet=True):
|
||||
- main()
|
||||
+ # do not change directory, because it breaks distutils tests
|
||||
+ main()
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 26 13:45:19 UTC 2010 - jmatejek@novell.com
|
||||
|
||||
- fixed distutils test
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 26 11:37:28 UTC 2010 - jmatejek@novell.com
|
||||
|
||||
|
@ -46,7 +46,8 @@ Patch3: Python-2.7rc2-multilib.patch
|
||||
Patch4: python-2.7rc2-canonicalize2.patch
|
||||
Patch5: python-2.7rc2-configure.patch
|
||||
Patch6: python-2.6-gettext-plurals.patch
|
||||
Patch7: sparc_longdouble.patch
|
||||
Patch7: python-2.6.5-distutils_test_path.patch
|
||||
Patch8: sparc_longdouble.patch
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%define python_version %(echo %{version} | head -c 3)
|
||||
@ -133,6 +134,7 @@ Authors:
|
||||
%patch5
|
||||
%patch6
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
|
||||
# some cleanup
|
||||
find . -name .cvsignore -type f -print0 | xargs -0 rm -f
|
||||
@ -148,9 +150,11 @@ export SUSE_ASNEEDED=0
|
||||
########################################
|
||||
export OPT="$RPM_OPT_FLAGS"
|
||||
########################################
|
||||
# regenerate
|
||||
# regenerate (only on > 11.2 because of autoconf version)
|
||||
########################################
|
||||
%if %{?suse_version: %{suse_version} > 1120} %{!?suse_version:1}
|
||||
autoreconf -f -i . # Modules/_ctypes/libffi
|
||||
%endif
|
||||
# prevent make from trying to rebuild asdl stuff, which requires existing
|
||||
# python installation
|
||||
touch Parser/asdl* Python/Python-ast.c Include/Python-ast.h
|
||||
|
@ -198,9 +198,11 @@ export SUSE_ASNEEDED=0
|
||||
########################################
|
||||
export OPT="$RPM_OPT_FLAGS"
|
||||
########################################
|
||||
# regenerate
|
||||
# regenerate (only on > 11.2 because of autoconf version)
|
||||
########################################
|
||||
%if %{?suse_version: %{suse_version} > 1120} %{!?suse_version:1}
|
||||
autoreconf -f -i . # Modules/_ctypes/libffi
|
||||
%endif
|
||||
# prevent make from trying to rebuild asdl stuff, which requires existing
|
||||
# python installation
|
||||
touch Parser/asdl* Python/Python-ast.c Include/Python-ast.h
|
||||
|
Loading…
Reference in New Issue
Block a user