Accepting request 46504 from devel:languages:python:Factory
Copy from devel:languages:python:Factory/python based on submit request 46504 from user matejcik OBS-URL: https://build.opensuse.org/request/show/46504 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python?expand=0&rev=52
This commit is contained in:
parent
2b70f7ad6c
commit
12b0f39c97
@ -1,23 +0,0 @@
|
||||
# force use of directories passed to configure script
|
||||
|
||||
Index: Makefile.pre.in
|
||||
===================================================================
|
||||
--- Makefile.pre.in.orig
|
||||
+++ Makefile.pre.in
|
||||
@@ -86,12 +86,12 @@ exec_prefix= @exec_prefix@
|
||||
datarootdir= @datarootdir@
|
||||
|
||||
# Expanded directories
|
||||
-BINDIR= $(exec_prefix)/bin
|
||||
-LIBDIR= $(exec_prefix)/lib
|
||||
+BINDIR= @bindir@
|
||||
+LIBDIR= @libdir@
|
||||
MANDIR= @mandir@
|
||||
INCLUDEDIR= @includedir@
|
||||
-CONFINCLUDEDIR= $(exec_prefix)/include
|
||||
-SCRIPTDIR= $(prefix)/lib
|
||||
+CONFINCLUDEDIR= @includedir@
|
||||
+SCRIPTDIR= @libdir@
|
||||
|
||||
# Detailed destination directories
|
||||
BINLIBDEST= $(LIBDIR)/python$(VERSION)
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:62da62eb685621ede2be1275f11b89fa0e0be578db8daa5320d0a7855c0a9ebc
|
||||
size 11095581
|
3
Python-2.7.tar.bz2
Normal file
3
Python-2.7.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:935d3316edfec5eb98c2f6930756b47b00dc27192541e62d6fd0077ffa008af8
|
||||
size 11735195
|
@ -1,7 +1,7 @@
|
||||
Index: Python-2.6.2/Include/pythonrun.h
|
||||
Index: Python-2.7/Include/pythonrun.h
|
||||
===================================================================
|
||||
--- Python-2.6.2.orig/Include/pythonrun.h
|
||||
+++ Python-2.6.2/Include/pythonrun.h
|
||||
--- Python-2.7.orig/Include/pythonrun.h
|
||||
+++ Python-2.7/Include/pythonrun.h
|
||||
@@ -108,6 +108,8 @@ PyAPI_FUNC(char *) Py_GetPath(void);
|
||||
/* In their own files */
|
||||
PyAPI_FUNC(const char *) Py_GetVersion(void);
|
||||
@ -11,10 +11,10 @@ Index: Python-2.6.2/Include/pythonrun.h
|
||||
PyAPI_FUNC(const char *) Py_GetCopyright(void);
|
||||
PyAPI_FUNC(const char *) Py_GetCompiler(void);
|
||||
PyAPI_FUNC(const char *) Py_GetBuildInfo(void);
|
||||
Index: Python-2.6.2/Lib/distutils/command/install.py
|
||||
Index: Python-2.7/Lib/distutils/command/install.py
|
||||
===================================================================
|
||||
--- Python-2.6.2.orig/Lib/distutils/command/install.py
|
||||
+++ Python-2.6.2/Lib/distutils/command/install.py
|
||||
--- Python-2.7.orig/Lib/distutils/command/install.py
|
||||
+++ Python-2.7/Lib/distutils/command/install.py
|
||||
@@ -22,6 +22,8 @@ from site import USER_BASE
|
||||
from site import USER_SITE
|
||||
|
||||
@ -33,11 +33,11 @@ Index: Python-2.6.2/Lib/distutils/command/install.py
|
||||
'headers': '$base/include/python$py_version_short/$dist_name',
|
||||
'scripts': '$base/bin',
|
||||
'data' : '$base',
|
||||
Index: Python-2.6.2/Lib/distutils/sysconfig.py
|
||||
Index: Python-2.7/Lib/distutils/sysconfig.py
|
||||
===================================================================
|
||||
--- Python-2.6.2.orig/Lib/distutils/sysconfig.py
|
||||
+++ Python-2.6.2/Lib/distutils/sysconfig.py
|
||||
@@ -115,8 +115,11 @@ def get_python_lib(plat_specific=0, stan
|
||||
--- Python-2.7.orig/Lib/distutils/sysconfig.py
|
||||
+++ Python-2.7/Lib/distutils/sysconfig.py
|
||||
@@ -114,8 +114,11 @@ def get_python_lib(plat_specific=0, stan
|
||||
prefix = plat_specific and EXEC_PREFIX or PREFIX
|
||||
|
||||
if os.name == "posix":
|
||||
@ -51,11 +51,11 @@ Index: Python-2.6.2/Lib/distutils/sysconfig.py
|
||||
if standard_lib:
|
||||
return libpython
|
||||
else:
|
||||
Index: Python-2.6.2/Lib/pydoc.py
|
||||
Index: Python-2.7/Lib/pydoc.py
|
||||
===================================================================
|
||||
--- Python-2.6.2.orig/Lib/pydoc.py
|
||||
+++ Python-2.6.2/Lib/pydoc.py
|
||||
@@ -350,7 +350,7 @@ class Doc:
|
||||
--- Python-2.7.orig/Lib/pydoc.py
|
||||
+++ Python-2.7/Lib/pydoc.py
|
||||
@@ -349,7 +349,7 @@ class Doc:
|
||||
|
||||
docloc = os.environ.get("PYTHONDOCS",
|
||||
"http://docs.python.org/library")
|
||||
@ -64,40 +64,39 @@ Index: Python-2.6.2/Lib/pydoc.py
|
||||
"python"+sys.version[0:3])
|
||||
if (isinstance(object, type(os)) and
|
||||
(object.__name__ in ('errno', 'exceptions', 'gc', 'imp',
|
||||
Index: Python-2.6.2/Lib/site.py
|
||||
Index: Python-2.7/Lib/site.py
|
||||
===================================================================
|
||||
--- Python-2.6.2.orig/Lib/site.py
|
||||
+++ Python-2.6.2/Lib/site.py
|
||||
@@ -265,13 +265,19 @@ def addsitepackages(known_paths):
|
||||
--- Python-2.7.orig/Lib/site.py
|
||||
+++ Python-2.7/Lib/site.py
|
||||
@@ -286,13 +286,18 @@ def getsitepackages():
|
||||
if sys.platform in ('os2emx', 'riscos'):
|
||||
sitedirs.append(os.path.join(prefix, "Lib", "site-packages"))
|
||||
sitepackages.append(os.path.join(prefix, "Lib", "site-packages"))
|
||||
elif os.sep == '/':
|
||||
- sitedirs.append(os.path.join(prefix, "lib",
|
||||
+ sitedirs.append(os.path.join(prefix, sys.lib,
|
||||
- sitepackages.append(os.path.join(prefix, "lib",
|
||||
+ sitepackages.append(os.path.join(prefix, sys.lib,
|
||||
"python" + sys.version[:3],
|
||||
"site-packages"))
|
||||
- sitedirs.append(os.path.join(prefix, "lib", "site-python"))
|
||||
- sitepackages.append(os.path.join(prefix, "lib", "site-python"))
|
||||
+ sitepackages.append(os.path.join(prefix, sys.lib, "site-python"))
|
||||
+ if sys.lib != "lib":
|
||||
+ sitedirs.append(os.path.join(prefix, "lib",
|
||||
+ "python" + sys.version[:3],
|
||||
+ "site-packages"))
|
||||
+ sitedirs.append(os.path.join(prefix, sys.lib, "site-python"))
|
||||
+ if sys.lib != "lib":
|
||||
+ sitedirs.append(os.path.join(prefix, "lib", "site-python"))
|
||||
+ sitepackages.append(os.path.join(prefix, "lib",
|
||||
+ "python" + sys.version[:3],
|
||||
+ "site-packages"))
|
||||
+ sitepackages.append(os.path.join(prefix, "lib", "site-python"))
|
||||
else:
|
||||
sitedirs.append(prefix)
|
||||
- sitedirs.append(os.path.join(prefix, "lib", "site-packages"))
|
||||
+ sitedirs.append(os.path.join(prefix, sys.lib, "site-packages"))
|
||||
|
||||
sitepackages.append(prefix)
|
||||
- sitepackages.append(os.path.join(prefix, "lib", "site-packages"))
|
||||
+ sitepackages.append(os.path.join(prefix, sys.lib, "site-packages"))
|
||||
if sys.platform == "darwin":
|
||||
# for framework builds *only* we add the standard Apple
|
||||
Index: Python-2.6.2/Lib/test/test_dl.py
|
||||
# locations.
|
||||
Index: Python-2.7/Lib/test/test_dl.py
|
||||
===================================================================
|
||||
--- Python-2.6.2.orig/Lib/test/test_dl.py
|
||||
+++ Python-2.6.2/Lib/test/test_dl.py
|
||||
@@ -4,10 +4,11 @@
|
||||
"""
|
||||
from test.test_support import verbose,TestSkipped, import_module
|
||||
--- Python-2.7.orig/Lib/test/test_dl.py
|
||||
+++ Python-2.7/Lib/test/test_dl.py
|
||||
@@ -5,10 +5,11 @@
|
||||
import unittest
|
||||
from test.test_support import verbose, import_module
|
||||
dl = import_module('dl', deprecated=True)
|
||||
+import sys
|
||||
|
||||
@ -109,10 +108,10 @@ Index: Python-2.6.2/Lib/test/test_dl.py
|
||||
('/usr/bin/cygwin1.dll', 'getpid'),
|
||||
('/usr/lib/libc.dylib', 'getpid'),
|
||||
]
|
||||
Index: Python-2.6.2/Lib/trace.py
|
||||
Index: Python-2.7/Lib/trace.py
|
||||
===================================================================
|
||||
--- Python-2.6.2.orig/Lib/trace.py
|
||||
+++ Python-2.6.2/Lib/trace.py
|
||||
--- Python-2.7.orig/Lib/trace.py
|
||||
+++ Python-2.7/Lib/trace.py
|
||||
@@ -757,10 +757,10 @@ def main(argv=None):
|
||||
# should I also call expanduser? (after all, could use $HOME)
|
||||
|
||||
@ -126,11 +125,11 @@ Index: Python-2.6.2/Lib/trace.py
|
||||
"python" + sys.version[:3]))
|
||||
s = os.path.normpath(s)
|
||||
ignore_dirs.append(s)
|
||||
Index: Python-2.6.2/Makefile.pre.in
|
||||
Index: Python-2.7/Makefile.pre.in
|
||||
===================================================================
|
||||
--- Python-2.6.2.orig/Makefile.pre.in
|
||||
+++ Python-2.6.2/Makefile.pre.in
|
||||
@@ -75,6 +75,8 @@ PY_CFLAGS= $(CFLAGS) $(CPPFLAGS) $(CFLAG
|
||||
--- Python-2.7.orig/Makefile.pre.in
|
||||
+++ Python-2.7/Makefile.pre.in
|
||||
@@ -78,6 +78,8 @@ PY_CFLAGS= $(CFLAGS) $(CPPFLAGS) $(CFLAG
|
||||
|
||||
# Machine-dependent subdirectories
|
||||
MACHDEP= @MACHDEP@
|
||||
@ -139,7 +138,7 @@ Index: Python-2.6.2/Makefile.pre.in
|
||||
|
||||
# Install prefix for architecture-independent files
|
||||
prefix= @prefix@
|
||||
@@ -509,6 +511,7 @@ Modules/getpath.o: $(srcdir)/Modules/get
|
||||
@@ -530,6 +532,7 @@ Modules/getpath.o: $(srcdir)/Modules/get
|
||||
-DEXEC_PREFIX='"$(exec_prefix)"' \
|
||||
-DVERSION='"$(VERSION)"' \
|
||||
-DVPATH='"$(VPATH)"' \
|
||||
@ -147,8 +146,8 @@ Index: Python-2.6.2/Makefile.pre.in
|
||||
-o $@ $(srcdir)/Modules/getpath.c
|
||||
|
||||
Modules/python.o: $(srcdir)/Modules/python.c
|
||||
@@ -540,7 +543,7 @@ $(AST_C): $(AST_ASDL) $(ASDLGEN_FILES)
|
||||
Python/compile.o Python/symtable.o: $(GRAMMAR_H) $(AST_H)
|
||||
@@ -561,7 +564,7 @@ $(AST_C): $(AST_ASDL) $(ASDLGEN_FILES)
|
||||
Python/compile.o Python/symtable.o Python/ast.o: $(GRAMMAR_H) $(AST_H)
|
||||
|
||||
Python/getplatform.o: $(srcdir)/Python/getplatform.c
|
||||
- $(CC) -c $(PY_CFLAGS) -DPLATFORM='"$(MACHDEP)"' -o $@ $(srcdir)/Python/getplatform.c
|
||||
@ -156,10 +155,10 @@ Index: Python-2.6.2/Makefile.pre.in
|
||||
|
||||
Python/importdl.o: $(srcdir)/Python/importdl.c
|
||||
$(CC) -c $(PY_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python/importdl.c
|
||||
Index: Python-2.6.2/Modules/getpath.c
|
||||
Index: Python-2.7/Modules/getpath.c
|
||||
===================================================================
|
||||
--- Python-2.6.2.orig/Modules/getpath.c
|
||||
+++ Python-2.6.2/Modules/getpath.c
|
||||
--- Python-2.7.orig/Modules/getpath.c
|
||||
+++ Python-2.7/Modules/getpath.c
|
||||
@@ -116,9 +116,11 @@
|
||||
#define EXEC_PREFIX PREFIX
|
||||
#endif
|
||||
@ -183,10 +182,10 @@ Index: Python-2.6.2/Modules/getpath.c
|
||||
|
||||
static void
|
||||
reduce(char *dir)
|
||||
Index: Python-2.6.2/Python/getplatform.c
|
||||
Index: Python-2.7/Python/getplatform.c
|
||||
===================================================================
|
||||
--- Python-2.6.2.orig/Python/getplatform.c
|
||||
+++ Python-2.6.2/Python/getplatform.c
|
||||
--- Python-2.7.orig/Python/getplatform.c
|
||||
+++ Python-2.7/Python/getplatform.c
|
||||
@@ -10,3 +10,23 @@ Py_GetPlatform(void)
|
||||
{
|
||||
return PLATFORM;
|
||||
@ -211,26 +210,26 @@ Index: Python-2.6.2/Python/getplatform.c
|
||||
+{
|
||||
+ return LIB;
|
||||
+}
|
||||
Index: Python-2.6.2/Python/sysmodule.c
|
||||
Index: Python-2.7/Python/sysmodule.c
|
||||
===================================================================
|
||||
--- Python-2.6.2.orig/Python/sysmodule.c
|
||||
+++ Python-2.6.2/Python/sysmodule.c
|
||||
@@ -1379,6 +1379,10 @@ _PySys_Init(void)
|
||||
PyString_FromString(Py_GetCopyright()));
|
||||
SET_SYS_FROM_STRING("platform",
|
||||
PyString_FromString(Py_GetPlatform()));
|
||||
--- Python-2.7.orig/Python/sysmodule.c
|
||||
+++ Python-2.7/Python/sysmodule.c
|
||||
@@ -1470,6 +1470,10 @@ _PySys_Init(void)
|
||||
PyString_FromString(Py_GetCopyright()));
|
||||
SET_SYS_FROM_STRING("platform",
|
||||
PyString_FromString(Py_GetPlatform()));
|
||||
+ SET_SYS_FROM_STRING("arch",
|
||||
+ PyString_FromString(Py_GetArch()));
|
||||
+ PyString_FromString(Py_GetArch()));
|
||||
+ SET_SYS_FROM_STRING("lib",
|
||||
+ PyString_FromString(Py_GetLib()));
|
||||
SET_SYS_FROM_STRING("executable",
|
||||
PyString_FromString(Py_GetProgramFullPath()));
|
||||
SET_SYS_FROM_STRING("prefix",
|
||||
Index: Python-2.6.2/configure.in
|
||||
+ PyString_FromString(Py_GetLib()));
|
||||
SET_SYS_FROM_STRING("executable",
|
||||
PyString_FromString(Py_GetProgramFullPath()));
|
||||
SET_SYS_FROM_STRING("prefix",
|
||||
Index: Python-2.7/configure.in
|
||||
===================================================================
|
||||
--- Python-2.6.2.orig/configure.in
|
||||
+++ Python-2.6.2/configure.in
|
||||
@@ -574,6 +574,41 @@ SunOS*)
|
||||
--- Python-2.7.orig/configure.in
|
||||
+++ Python-2.7/configure.in
|
||||
@@ -636,6 +636,41 @@ SunOS*)
|
||||
;;
|
||||
esac
|
||||
|
||||
@ -272,11 +271,11 @@ Index: Python-2.6.2/configure.in
|
||||
|
||||
AC_SUBST(LIBRARY)
|
||||
AC_MSG_CHECKING(LIBRARY)
|
||||
Index: Python-2.6.2/setup.py
|
||||
Index: Python-2.7/setup.py
|
||||
===================================================================
|
||||
--- Python-2.6.2.orig/setup.py
|
||||
+++ Python-2.6.2/setup.py
|
||||
@@ -310,7 +310,7 @@ class PyBuildExt(build_ext):
|
||||
--- Python-2.7.orig/setup.py
|
||||
+++ Python-2.7/setup.py
|
||||
@@ -347,7 +347,7 @@ class PyBuildExt(build_ext):
|
||||
|
||||
def detect_modules(self):
|
||||
# Ensure that /usr/local is always used
|
||||
@ -285,7 +284,7 @@ Index: Python-2.6.2/setup.py
|
||||
add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
|
||||
|
||||
# Add paths specified in the environment variables LDFLAGS and
|
||||
@@ -362,8 +362,7 @@ class PyBuildExt(build_ext):
|
||||
@@ -399,8 +399,7 @@ class PyBuildExt(build_ext):
|
||||
# if a file is found in one of those directories, it can
|
||||
# be assumed that no additional -I,-L directives are needed.
|
||||
lib_dirs = self.compiler.library_dirs + [
|
||||
@ -295,13 +294,13 @@ Index: Python-2.6.2/setup.py
|
||||
]
|
||||
inc_dirs = self.compiler.include_dirs + ['/usr/include']
|
||||
exts = []
|
||||
@@ -585,11 +584,11 @@ class PyBuildExt(build_ext):
|
||||
elif self.compiler.find_library_file(lib_dirs, 'curses'):
|
||||
readline_libs.append('curses')
|
||||
@@ -643,11 +642,11 @@ class PyBuildExt(build_ext):
|
||||
elif curses_library:
|
||||
readline_libs.append(curses_library)
|
||||
elif self.compiler.find_library_file(lib_dirs +
|
||||
- ['/usr/lib/termcap'],
|
||||
+ ['/usr/'+sys.lib+'/termcap'],
|
||||
'termcap'):
|
||||
- ['/usr/lib/termcap'],
|
||||
+ ['/usr/'+sys.lib+'/termcap'],
|
||||
'termcap'):
|
||||
readline_libs.append('termcap')
|
||||
exts.append( Extension('readline', ['readline.c'],
|
||||
- library_dirs=['/usr/lib/termcap'],
|
||||
@ -309,7 +308,7 @@ Index: Python-2.6.2/setup.py
|
||||
extra_link_args=readline_extra_link_args,
|
||||
libraries=readline_libs) )
|
||||
else:
|
||||
@@ -1582,18 +1581,17 @@ class PyBuildExt(build_ext):
|
||||
@@ -1719,18 +1718,17 @@ class PyBuildExt(build_ext):
|
||||
# Check for various platform-specific directories
|
||||
if platform == 'sunos5':
|
||||
include_dirs.append('/usr/openwin/include')
|
||||
@ -332,3 +331,56 @@ Index: Python-2.6.2/setup.py
|
||||
|
||||
# If Cygwin, then verify that X is installed before proceeding
|
||||
if platform == 'cygwin':
|
||||
Index: Python-2.7/Lib/test/test_site.py
|
||||
===================================================================
|
||||
--- Python-2.7.orig/Lib/test/test_site.py
|
||||
+++ Python-2.7/Lib/test/test_site.py
|
||||
@@ -172,9 +172,14 @@ class HelperFunctionsTests(unittest.Test
|
||||
self.assertTrue(len(dirs), 2)
|
||||
wanted = os.path.join('xoxo', 'lib', 'python' + sys.version[:3],
|
||||
'site-packages')
|
||||
- self.assertEquals(dirs[0], wanted)
|
||||
+ self.assertTrue(wanted in dirs)
|
||||
wanted = os.path.join('xoxo', 'lib', 'site-python')
|
||||
- self.assertEquals(dirs[1], wanted)
|
||||
+ self.assertTrue(wanted in dirs)
|
||||
+ wanted = os.path.join('xoxo', sys.lib, 'python' + sys.version[:3],
|
||||
+ 'site-packages')
|
||||
+ self.assertTrue(wanted in dirs)
|
||||
+ wanted = os.path.join('xoxo', sys.lib, 'site-python')
|
||||
+ self.assertTrue(wanted in dirs)
|
||||
else:
|
||||
self.assertTrue(len(dirs), 2)
|
||||
self.assertEquals(dirs[0], 'xoxo')
|
||||
Index: Python-2.7/Lib/sysconfig.py
|
||||
===================================================================
|
||||
--- Python-2.7.orig/Lib/sysconfig.py
|
||||
+++ Python-2.7/Lib/sysconfig.py
|
||||
@@ -7,10 +7,10 @@ from os.path import pardir, realpath
|
||||
|
||||
_INSTALL_SCHEMES = {
|
||||
'posix_prefix': {
|
||||
- 'stdlib': '{base}/lib/python{py_version_short}',
|
||||
- 'platstdlib': '{platbase}/lib/python{py_version_short}',
|
||||
+ 'stdlib': '{base}/'+sys.lib+'/python{py_version_short}',
|
||||
+ 'platstdlib': '{platbase}/'+sys.lib+'/python{py_version_short}',
|
||||
'purelib': '{base}/lib/python{py_version_short}/site-packages',
|
||||
- 'platlib': '{platbase}/lib/python{py_version_short}/site-packages',
|
||||
+ 'platlib': '{platbase}/'+sys.lib+'/python{py_version_short}/site-packages',
|
||||
'include': '{base}/include/python{py_version_short}',
|
||||
'platinclude': '{platbase}/include/python{py_version_short}',
|
||||
'scripts': '{base}/bin',
|
||||
@@ -65,10 +65,10 @@ _INSTALL_SCHEMES = {
|
||||
'data' : '{userbase}',
|
||||
},
|
||||
'posix_user': {
|
||||
- 'stdlib': '{userbase}/lib/python{py_version_short}',
|
||||
- 'platstdlib': '{userbase}/lib/python{py_version_short}',
|
||||
+ 'stdlib': '{userbase}/'+sys.lib+'/python{py_version_short}',
|
||||
+ 'platstdlib': '{userbase}/'+sys.lib+'/python{py_version_short}',
|
||||
'purelib': '{userbase}/lib/python{py_version_short}/site-packages',
|
||||
- 'platlib': '{userbase}/lib/python{py_version_short}/site-packages',
|
||||
+ 'platlib': '{userbase}/'+sys.lib+'/python{py_version_short}/site-packages',
|
||||
'include': '{userbase}/include/python{py_version_short}',
|
||||
'scripts': '{userbase}/bin',
|
||||
'data' : '{userbase}',
|
@ -1,16 +0,0 @@
|
||||
--- Lib/ssl.py
|
||||
+++ Lib/ssl.py
|
||||
@@ -112,12 +112,7 @@
|
||||
keyfile, certfile,
|
||||
cert_reqs, ssl_version, ca_certs)
|
||||
if do_handshake_on_connect:
|
||||
- timeout = self.gettimeout()
|
||||
- try:
|
||||
- self.settimeout(None)
|
||||
- self.do_handshake()
|
||||
- finally:
|
||||
- self.settimeout(timeout)
|
||||
+ self.do_handshake()
|
||||
self.keyfile = keyfile
|
||||
self.certfile = certfile
|
||||
self.cert_reqs = cert_reqs
|
@ -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,85 +0,0 @@
|
||||
Index: Python/sysmodule.c
|
||||
===================================================================
|
||||
--- Python/sysmodule.c.orig
|
||||
+++ Python/sysmodule.c
|
||||
@@ -1550,7 +1550,20 @@ PySys_SetArgv(int argc, char **argv)
|
||||
char *p = NULL;
|
||||
Py_ssize_t n = 0;
|
||||
PyObject *a;
|
||||
-#ifdef HAVE_READLINK
|
||||
+#ifdef HAVE_CANONICALIZE_FILE_NAME
|
||||
+ int errnum;
|
||||
+
|
||||
+ if (argc > 0 && argv0 != NULL && strcmp(argv0, "-c") != 0) {
|
||||
+ argv0 = canonicalize_file_name(argv0);
|
||||
+ if (argv0 == NULL) argv0 = strdup(argv[0]);
|
||||
+ }
|
||||
+#elif defined(HAVE_REALPATH)
|
||||
+ if (argc > 0 && argv0 != NULL && strcmp(argv0, "-c") != 0) {
|
||||
+ if (realpath(argv0, fullpath)) {
|
||||
+ argv0 = fullpath;
|
||||
+ }
|
||||
+ }
|
||||
+#elif defined(HAVE_READLINK)
|
||||
char link[MAXPATHLEN+1];
|
||||
char argv0copy[2*MAXPATHLEN+1];
|
||||
int nr = 0;
|
||||
@@ -1577,7 +1590,8 @@ PySys_SetArgv(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
}
|
||||
-#endif /* HAVE_READLINK */
|
||||
+#endif /* resolve method selection */
|
||||
+
|
||||
#if SEP == '\\' /* Special case for MS filename syntax */
|
||||
if (argc > 0 && argv0 != NULL && strcmp(argv0, "-c") != 0) {
|
||||
char *q;
|
||||
@@ -1606,11 +1620,6 @@ PySys_SetArgv(int argc, char **argv)
|
||||
}
|
||||
#else /* All other filename syntaxes */
|
||||
if (argc > 0 && argv0 != NULL && strcmp(argv0, "-c") != 0) {
|
||||
-#if defined(HAVE_REALPATH)
|
||||
- if (realpath(argv0, fullpath)) {
|
||||
- argv0 = fullpath;
|
||||
- }
|
||||
-#endif
|
||||
p = strrchr(argv0, SEP);
|
||||
}
|
||||
if (p != NULL) {
|
||||
@@ -1628,6 +1637,9 @@ PySys_SetArgv(int argc, char **argv)
|
||||
a = PyString_FromStringAndSize(argv0, n);
|
||||
if (a == NULL)
|
||||
Py_FatalError("no mem for sys.path insertion");
|
||||
+#ifdef HAVE_CANONICALIZE_FILE_NAME
|
||||
+ if (argc > 0 && argv0 != NULL && strcmp(argv0, "-c") != 0) free(argv0);
|
||||
+#endif /* HAVE_CANONICALIZE_FILE_NAME */
|
||||
if (PyList_Insert(path, 0, a) < 0)
|
||||
Py_FatalError("sys.path.insert(0) failed");
|
||||
Py_DECREF(a);
|
||||
Index: configure.in
|
||||
===================================================================
|
||||
--- configure.in.orig
|
||||
+++ configure.in
|
||||
@@ -2495,7 +2495,7 @@ AC_CHECK_FUNCS(alarm setitimer getitimer
|
||||
getpriority getpwent getspnam getspent getsid getwd \
|
||||
kill killpg lchmod lchown lstat mkfifo mknod mktime \
|
||||
mremap nice pathconf pause plock poll pthread_init \
|
||||
- putenv readlink realpath \
|
||||
+ putenv readlink realpath canonicalize_file_name \
|
||||
select setegid seteuid setgid \
|
||||
setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
|
||||
sigaction siginterrupt sigrelse strftime \
|
||||
Index: pyconfig.h.in
|
||||
===================================================================
|
||||
--- pyconfig.h.in.orig
|
||||
+++ pyconfig.h.in
|
||||
@@ -79,6 +79,9 @@
|
||||
/* Define to 1 if you have the `chflags' function. */
|
||||
#undef HAVE_CHFLAGS
|
||||
|
||||
+/* Define to 1 if you have the `canonicalize_file_name' function. */
|
||||
+#undef HAVE_CANONICALIZE_FILE_NAME
|
||||
+
|
||||
/* Define to 1 if you have the `chown' function. */
|
||||
#undef HAVE_CHOWN
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- Modules/_ssl.c
|
||||
+++ Modules/_ssl.c
|
||||
@@ -311,6 +311,8 @@
|
||||
goto fail;
|
||||
}
|
||||
|
||||
+ SSL_CTX_set_options(self->ctx, SSL_OP_ALL); /* ssl compatibility */
|
||||
+
|
||||
if (certreq != PY_SSL_CERT_NONE) {
|
||||
if (cacerts_file == NULL) {
|
||||
errstr = ERRSTR("No root certificates specified for "
|
13
python-2.7-acrequire.patch
Normal file
13
python-2.7-acrequire.patch
Normal file
@ -0,0 +1,13 @@
|
||||
Index: Python-2.7/configure.in
|
||||
===================================================================
|
||||
--- Python-2.7.orig/configure.in
|
||||
+++ Python-2.7/configure.in
|
||||
@@ -12,7 +12,7 @@ m4_define([version_required],
|
||||
[],
|
||||
[m4_fatal([Autoconf version $1 is required for Python], 63)])
|
||||
])
|
||||
-version_required(2.65)
|
||||
+dnl version_required(2.65)
|
||||
|
||||
AC_REVISION($Revision: 81582 $)
|
||||
AC_INIT(python, PYTHON_VERSION, http://bugs.python.org/)
|
13
python-2.7-dirs.patch
Normal file
13
python-2.7-dirs.patch
Normal file
@ -0,0 +1,13 @@
|
||||
Index: Python-2.7/Makefile.pre.in
|
||||
===================================================================
|
||||
--- Python-2.7.orig/Makefile.pre.in
|
||||
+++ Python-2.7/Makefile.pre.in
|
||||
@@ -94,7 +94,7 @@ LIBDIR= @libdir@
|
||||
MANDIR= @mandir@
|
||||
INCLUDEDIR= @includedir@
|
||||
CONFINCLUDEDIR= $(exec_prefix)/include
|
||||
-SCRIPTDIR= $(prefix)/lib
|
||||
+SCRIPTDIR= @libdir@
|
||||
|
||||
# Detailed destination directories
|
||||
BINLIBDEST= $(LIBDIR)/python$(VERSION)
|
3
python-2.7-docs-html.tar.bz2
Normal file
3
python-2.7-docs-html.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d57e66e853cb67f7a017f1454b890f5019dbb3d550e57d5e5b1b8b91996b8c23
|
||||
size 4183320
|
3
python-2.7-docs-pdf-a4.tar.bz2
Normal file
3
python-2.7-docs-pdf-a4.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:612b18862ab5dcc602b19e03ab4da1360c515729f7969c673ba85cee20630756
|
||||
size 9332572
|
3
python-2.7-docs-pdf-letter.tar.bz2
Normal file
3
python-2.7-docs-pdf-letter.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c3e797283b7af7628161edc64a437b52e252069b43df8a698c89d14159da2d06
|
||||
size 9383244
|
85
python-2.7rc2-canonicalize2.patch
Normal file
85
python-2.7rc2-canonicalize2.patch
Normal file
@ -0,0 +1,85 @@
|
||||
Index: Python/sysmodule.c
|
||||
===================================================================
|
||||
--- Python/sysmodule.c.orig
|
||||
+++ Python/sysmodule.c
|
||||
@@ -1671,7 +1671,20 @@ PySys_SetArgvEx(int argc, char **argv, i
|
||||
char *p = NULL;
|
||||
Py_ssize_t n = 0;
|
||||
PyObject *a;
|
||||
-#ifdef HAVE_READLINK
|
||||
+#ifdef HAVE_CANONICALIZE_FILE_NAME
|
||||
+ int errnum;
|
||||
+
|
||||
+ if (argc > 0 && argv0 != NULL && strcmp(argv0, "-c") != 0) {
|
||||
+ argv0 = canonicalize_file_name(argv0);
|
||||
+ if (argv0 == NULL) argv0 = strdup(argv[0]);
|
||||
+ }
|
||||
+#elif defined(HAVE_REALPATH)
|
||||
+ if (argc > 0 && argv0 != NULL && strcmp(argv0, "-c") != 0) {
|
||||
+ if (realpath(argv0, fullpath)) {
|
||||
+ argv0 = fullpath;
|
||||
+ }
|
||||
+ }
|
||||
+#elif defined(HAVE_READLINK)
|
||||
char link[MAXPATHLEN+1];
|
||||
char argv0copy[2*MAXPATHLEN+1];
|
||||
int nr = 0;
|
||||
@@ -1698,7 +1711,8 @@ PySys_SetArgvEx(int argc, char **argv, i
|
||||
}
|
||||
}
|
||||
}
|
||||
-#endif /* HAVE_READLINK */
|
||||
+#endif /* resolve method selection */
|
||||
+
|
||||
#if SEP == '\\' /* Special case for MS filename syntax */
|
||||
if (argc > 0 && argv0 != NULL && strcmp(argv0, "-c") != 0) {
|
||||
char *q;
|
||||
@@ -1727,11 +1741,6 @@ PySys_SetArgvEx(int argc, char **argv, i
|
||||
}
|
||||
#else /* All other filename syntaxes */
|
||||
if (argc > 0 && argv0 != NULL && strcmp(argv0, "-c") != 0) {
|
||||
-#if defined(HAVE_REALPATH)
|
||||
- if (realpath(argv0, fullpath)) {
|
||||
- argv0 = fullpath;
|
||||
- }
|
||||
-#endif
|
||||
p = strrchr(argv0, SEP);
|
||||
}
|
||||
if (p != NULL) {
|
||||
@@ -1749,6 +1758,9 @@ PySys_SetArgvEx(int argc, char **argv, i
|
||||
a = PyString_FromStringAndSize(argv0, n);
|
||||
if (a == NULL)
|
||||
Py_FatalError("no mem for sys.path insertion");
|
||||
+#ifdef HAVE_CANONICALIZE_FILE_NAME
|
||||
+ if (argc > 0 && argv0 != NULL && strcmp(argv0, "-c") != 0) free(argv0);
|
||||
+#endif /* HAVE_CANONICALIZE_FILE_NAME */
|
||||
if (PyList_Insert(path, 0, a) < 0)
|
||||
Py_FatalError("sys.path.insert(0) failed");
|
||||
Py_DECREF(a);
|
||||
Index: configure.in
|
||||
===================================================================
|
||||
--- configure.in.orig
|
||||
+++ configure.in
|
||||
@@ -2728,7 +2728,7 @@ AC_CHECK_FUNCS(alarm setitimer getitimer
|
||||
getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
|
||||
initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime \
|
||||
mremap nice pathconf pause plock poll pthread_init \
|
||||
- putenv readlink realpath \
|
||||
+ putenv readlink realpath canonicalize_file_name \
|
||||
select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
|
||||
setgid \
|
||||
setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
|
||||
Index: pyconfig.h.in
|
||||
===================================================================
|
||||
--- pyconfig.h.in.orig
|
||||
+++ pyconfig.h.in
|
||||
@@ -97,6 +97,9 @@
|
||||
/* Define to 1 if you have the `chflags' function. */
|
||||
#undef HAVE_CHFLAGS
|
||||
|
||||
+/* Define to 1 if you have the `canonicalize_file_name' function. */
|
||||
+#undef HAVE_CANONICALIZE_FILE_NAME
|
||||
+
|
||||
/* Define to 1 if you have the `chown' function. */
|
||||
#undef HAVE_CHOWN
|
||||
|
@ -2,27 +2,7 @@ Index: configure.in
|
||||
===================================================================
|
||||
--- configure.in.orig
|
||||
+++ configure.in
|
||||
@@ -511,9 +511,6 @@ then
|
||||
fi
|
||||
|
||||
|
||||
-# checks for UNIX variants that set C preprocessor variables
|
||||
-AC_AIX
|
||||
-
|
||||
# Check for unsupported systems
|
||||
case $ac_sys_system/$ac_sys_release in
|
||||
atheos*|Linux*/1*)
|
||||
@@ -574,6 +571,9 @@ SunOS*)
|
||||
;;
|
||||
esac
|
||||
|
||||
+# checks for UNIX variants that set C preprocessor variables
|
||||
+AC_AIX
|
||||
+
|
||||
AC_SUBST(ARCH)
|
||||
AC_MSG_CHECKING(ARCH)
|
||||
ARCH=`uname -m`
|
||||
@@ -3413,9 +3413,18 @@ then
|
||||
@@ -3892,9 +3892,18 @@ then
|
||||
fi
|
||||
|
||||
# check for readline 4.0
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 26 15:13:49 UTC 2010 - suse-tux@gmx.de
|
||||
|
||||
- fix for urllib2 (http://bugs.python.org/issue9639)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 26 13:45:19 UTC 2010 - jmatejek@novell.com
|
||||
|
||||
- fixed distutils test
|
||||
- dropped autoconf version requirement (it builds just fine with other versions)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 26 11:37:28 UTC 2010 - jmatejek@novell.com
|
||||
|
||||
- update to version 2.7
|
||||
* improved handling of numeric types
|
||||
* deprecation warnings are now silent by default
|
||||
* new argparse module for command line arguments
|
||||
* many new features, see http://docs.python.org/dev/whatsnew/2.7.html
|
||||
for complete list
|
||||
*** 2.7 is supposed to be the last version from the 2.x series,
|
||||
so its (upstream) maintenance period will probably be longer than usual.
|
||||
However, upstream development now focuses on 3.x series.
|
||||
|
||||
- cleaned up spec and patches
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 2 13:58:38 UTC 2010 - jengelh@medozas.de
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package python-base (Version 2.6.5)
|
||||
# spec file for package python-base (Version 2.7)
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
@ -18,10 +18,7 @@
|
||||
|
||||
|
||||
Name: python-base
|
||||
BuildRequires: zlib-devel
|
||||
%if %suse_version >= 1030
|
||||
BuildRequires: fdupes
|
||||
%endif
|
||||
BuildRequires: fdupes pkg-config zlib-devel
|
||||
Url: http://www.python.org/
|
||||
License: MIT License (or similar)
|
||||
Group: Development/Languages/Python
|
||||
@ -32,24 +29,28 @@ Obsoletes: python-64bit
|
||||
%endif
|
||||
#
|
||||
Summary: Python Interpreter base package
|
||||
Version: 2.6.5
|
||||
Release: 3
|
||||
Version: 2.7
|
||||
Release: 1
|
||||
%define tarversion %{version}
|
||||
%define tarname Python-%{tarversion}
|
||||
Source0: %{tarname}.tar.bz2
|
||||
Source1: macros.python
|
||||
Source2: baselibs.conf
|
||||
Source6: README.SUSE
|
||||
Source13: distutils.cfg
|
||||
Source14: _local.pth
|
||||
Patch01: Python-2.3.3-dirs.patch
|
||||
Patch10: python-distutils-rpm-8.patch
|
||||
Patch21: Python-2.6.2-multilib.patch
|
||||
Patch25: python-2.6b1-canonicalize2.patch
|
||||
Patch35: python-2.5.2-configure.patch
|
||||
Patch38: python-2.6-gettext-plurals.patch
|
||||
Patch39: python-2.6.5-distutils_test_path.patch
|
||||
Patch40: sparc_longdouble.patch
|
||||
Source3: README.SUSE
|
||||
Source4: distutils.cfg
|
||||
Source5: _local.pth
|
||||
|
||||
Patch1: python-2.7-dirs.patch
|
||||
Patch2: python-distutils-rpm-8.patch
|
||||
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: python-2.6.5-distutils_test_path.patch
|
||||
Patch8: sparc_longdouble.patch
|
||||
Patch9: python-2.7-acrequire.patch
|
||||
Patch10: urllib2-AbstractBasicAuthHandler_reset_attr.diff
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%define python_version %(echo %{version} | head -c 3)
|
||||
Provides: %{name} = %{python_version}
|
||||
@ -103,14 +104,14 @@ Python2.x, it is part of the core Python distribution.
|
||||
|
||||
|
||||
|
||||
%package -n libpython2_6-1_0
|
||||
%package -n libpython2_7-1_0
|
||||
License: MIT License (or similar)
|
||||
Summary: Python Interpreter shared library
|
||||
Group: Development/Languages/Python
|
||||
AutoReqProv: on
|
||||
#%description -n libpython%{lib_version}
|
||||
|
||||
%description -n libpython2_6-1_0
|
||||
%description -n libpython2_7-1_0
|
||||
Python is an interpreted, object-oriented programming language, and is
|
||||
often compared to Tcl, Perl, Scheme, or Java. You can find an overview
|
||||
of Python in the documentation and tutorials included in the python-doc
|
||||
@ -128,14 +129,16 @@ Authors:
|
||||
%prep
|
||||
%setup -q -n %{tarname}
|
||||
# patching
|
||||
%patch01
|
||||
%patch10 -p1
|
||||
%patch21 -p1
|
||||
%patch25
|
||||
%patch35
|
||||
%patch38
|
||||
%patch39 -p1
|
||||
%patch40 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch4
|
||||
%patch5
|
||||
%patch6
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
%patch9 -p1
|
||||
%patch10
|
||||
|
||||
# some cleanup
|
||||
find . -name .cvsignore -type f -print0 | xargs -0 rm -f
|
||||
@ -182,9 +185,9 @@ LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH \
|
||||
# at some point, and the machine does not build anything more until a
|
||||
# timeout several hours later.
|
||||
%ifnarch hppa %arm
|
||||
# test_file fails in autobuild env - "stdin.seek(-1)" wrongly succeeds. probably an issue with autobuild's stdin
|
||||
# test_file(2k) fails in autobuild env - "stdin.seek(-1)" wrongly succeeds. probably an issue with autobuild's stdin
|
||||
# test_urllib2 relies on being able to resolve local address, which is notoriously impossible in autobuild
|
||||
EXCLUDE="-x test_urllib2 -x test_file"
|
||||
EXCLUDE="-x test_urllib2 -x test_file -x test_file2k"
|
||||
# test_nis and test_threading are AWFULLY slow.
|
||||
EXCLUDE="$EXCLUDE -x test_nis -x test_threading"
|
||||
%ifarch ia64
|
||||
@ -213,8 +216,8 @@ make \
|
||||
install
|
||||
# install site-specific tweaks
|
||||
ln -s python%{python_version} ${RPM_BUILD_ROOT}%{_bindir}/python2
|
||||
install -m 644 %{S:13} ${RPM_BUILD_ROOT}%{_libdir}/python%{python_version}/distutils
|
||||
install -m 644 %{S:14} ${RPM_BUILD_ROOT}%{_libdir}/python%{python_version}/site-packages
|
||||
install -m 644 %{S:4} ${RPM_BUILD_ROOT}%{_libdir}/python%{python_version}/distutils
|
||||
install -m 644 %{S:5} ${RPM_BUILD_ROOT}%{_libdir}/python%{python_version}/site-packages
|
||||
install -d -m 755 ${RPM_BUILD_ROOT}/etc/rpm
|
||||
install -m 644 %{S:1} ${RPM_BUILD_ROOT}/etc/rpm
|
||||
# make sure /usr/lib/python/site-packages exists even on lib64 machines
|
||||
@ -238,18 +241,17 @@ rm $RPM_BUILD_ROOT%{_bindir}/idle
|
||||
rm -r $CLEANUP_DIR/{curses,bsddb,idlelib,lib-tk,sqlite3}
|
||||
rm $CLEANUP_DIR/ssl.py*
|
||||
# does not work without _ssl.so anyway
|
||||
%if %suse_version >= 1030
|
||||
# replace duplicate .pyo/.pyc with hardlinks
|
||||
%fdupes $RPM_BUILD_ROOT/%{_libdir}/python%{python_version}
|
||||
%endif
|
||||
########################################
|
||||
# documentation
|
||||
########################################
|
||||
export PDOCS=${RPM_BUILD_ROOT}%{_docdir}/%{name}
|
||||
install -d -m 755 $PDOCS
|
||||
install -c -m 644 %{SOURCE6} $PDOCS/
|
||||
install -c -m 644 %{S:3} $PDOCS/
|
||||
install -c -m 644 LICENSE $PDOCS/
|
||||
install -c -m 644 README $PDOCS/
|
||||
ln -s python%{python_version}.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/python.1.gz
|
||||
########################################
|
||||
# devel
|
||||
########################################
|
||||
@ -260,11 +262,11 @@ cp Makefile Makefile.pre.in Makefile.pre $RPM_BUILD_ROOT%{_libdir}/python%{pytho
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
#%post -n libpython%{lib_version}
|
||||
|
||||
%post -n libpython2_6-1_0
|
||||
%post -n libpython2_7-1_0
|
||||
%{run_ldconfig}
|
||||
#%postun -n libpython%{lib_version}
|
||||
|
||||
%postun -n libpython2_6-1_0
|
||||
%postun -n libpython2_7-1_0
|
||||
%{run_ldconfig}
|
||||
|
||||
%files -n python-devel
|
||||
@ -274,9 +276,12 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%exclude %{_libdir}/python%{python_version}/config/Makefile
|
||||
%defattr(644, root, root, 755)
|
||||
%{_libdir}/libpython*.so
|
||||
%{_libdir}/pkgconfig/python-%{python_version}.pc
|
||||
%{_libdir}/pkgconfig/python.pc
|
||||
%{_includedir}/python*
|
||||
%exclude %{_includedir}/python%{python_version}/pyconfig.h
|
||||
%{_libdir}/python%{python_version}/test
|
||||
%{_libdir}/python%{python_version}/unittest
|
||||
%defattr(755, root, root)
|
||||
%{_bindir}/python-config
|
||||
%{_bindir}/python%{python_version}-config
|
||||
@ -287,7 +292,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_libdir}/python%{python_version}/lib-dynload/pyexpat.so
|
||||
#%files -n libpython%{lib_version}
|
||||
|
||||
%files -n libpython2_6-1_0
|
||||
%files -n libpython2_7-1_0
|
||||
%defattr(644, root, root)
|
||||
%{_libdir}/libpython*.so.*
|
||||
|
||||
@ -299,6 +304,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%doc %{_docdir}/%{name}/LICENSE
|
||||
%doc %{_docdir}/%{name}/README.SUSE
|
||||
%doc %{_mandir}/man1/python.1*
|
||||
%doc %{_mandir}/man1/python%{python_version}.1*
|
||||
%dir %{_includedir}/python%{python_version}
|
||||
%{_includedir}/python%{python_version}/pyconfig.h
|
||||
%{_libdir}/python
|
||||
@ -315,27 +321,30 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_libdir}/python%{python_version}/email
|
||||
%{_libdir}/python%{python_version}/encodings
|
||||
%{_libdir}/python%{python_version}/hotshot
|
||||
%{_libdir}/python%{python_version}/importlib
|
||||
%{_libdir}/python%{python_version}/json
|
||||
%{_libdir}/python%{python_version}/lib2to3
|
||||
%{_libdir}/python%{python_version}/logging
|
||||
%{_libdir}/python%{python_version}/multiprocessing
|
||||
%{_libdir}/python%{python_version}/plat-*
|
||||
%{_libdir}/python%{python_version}/pydoc_data
|
||||
%{_libdir}/python%{python_version}/wsgiref
|
||||
%dir %{_libdir}/python%{python_version}/site-packages
|
||||
%{_libdir}/python%{python_version}/site-packages/README
|
||||
%{_libdir}/python%{python_version}/site-packages/_local.pth
|
||||
%dir %{_libdir}/python%{python_version}/lib-dynload
|
||||
%{_libdir}/python%{python_version}/lib-dynload/_bisect.so
|
||||
%{_libdir}/python%{python_version}/lib-dynload/_bytesio.so
|
||||
#%{_libdir}/python%{python_version}/lib-dynload/_bytesio.so
|
||||
%{_libdir}/python%{python_version}/lib-dynload/_csv.so
|
||||
%{_libdir}/python%{python_version}/lib-dynload/_collections.so
|
||||
%{_libdir}/python%{python_version}/lib-dynload/_ctypes.so
|
||||
%{_libdir}/python%{python_version}/lib-dynload/_ctypes_test.so
|
||||
%{_libdir}/python%{python_version}/lib-dynload/_elementtree.so
|
||||
%{_libdir}/python%{python_version}/lib-dynload/_fileio.so
|
||||
#%{_libdir}/python%{python_version}/lib-dynload/_fileio.so
|
||||
%{_libdir}/python%{python_version}/lib-dynload/_functools.so
|
||||
%{_libdir}/python%{python_version}/lib-dynload/_heapq.so
|
||||
%{_libdir}/python%{python_version}/lib-dynload/_hotshot.so
|
||||
%{_libdir}/python%{python_version}/lib-dynload/_io.so
|
||||
%{_libdir}/python%{python_version}/lib-dynload/_json.so
|
||||
%{_libdir}/python%{python_version}/lib-dynload/_locale.so
|
||||
%{_libdir}/python%{python_version}/lib-dynload/_lsprof.so
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 26 11:43:28 UTC 2010 - jmatejek@novell.com
|
||||
|
||||
- updated to 2.7
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 11 19:19:07 CET 2010 - matejcik@suse.cz
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package python-doc (Version 2.6)
|
||||
# spec file for package python-doc (Version 2.7)
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
@ -23,17 +23,17 @@ License: Python License ..
|
||||
Group: Development/Languages/Python
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Summary: Additional Package Documentation for Python.
|
||||
Version: 2.6
|
||||
Release: 24
|
||||
%define pyver 2.6.5
|
||||
Version: 2.7
|
||||
Release: 1
|
||||
%define pyver 2.7
|
||||
BuildArch: noarch
|
||||
%define tarname Python-%{pyver}
|
||||
%define pyname python
|
||||
Enhances: %{pyname}=%{pyver}
|
||||
Source0: %{tarname}.tar.bz2
|
||||
Source1: python-docs-html-%{version}.tar.bz2
|
||||
Source2: python-docs-pdf-a4-%{version}.tar.bz2
|
||||
Source3: python-docs-pdf-letter-%{version}.tar.bz2
|
||||
Source1: python-%{version}-docs-html.tar.bz2
|
||||
Source2: python-%{version}-docs-pdf-a4.tar.bz2
|
||||
Source3: python-%{version}-docs-pdf-letter.tar.bz2
|
||||
Provides: pyth_doc pyth_ps
|
||||
Obsoletes: pyth_doc pyth_ps
|
||||
|
||||
@ -74,7 +74,7 @@ export PDOCS=${RPM_BUILD_ROOT}%{_docdir}/%{pyname}
|
||||
install -d -m 755 $PDOCS/Misc
|
||||
install -d -m 755 $PDOCS/paper-a4 $PDOCS/paper-letter $PDOCS/html
|
||||
tar xfj %{S:1} -C $PDOCS/
|
||||
mv $PDOCS/python-docs-html $PDOCS/html
|
||||
mv $PDOCS/python-%{version}-docs-html $PDOCS/html
|
||||
tar xfj %{S:2} -C $PDOCS
|
||||
mv $PDOCS/docs-pdf $PDOCS/paper-a4
|
||||
tar xfj %{S:3} -C $PDOCS
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e9c39e51fc19c6ec367f41cd47c0831bc1e4f4c6d615dccfd37337cd7843ae0a
|
||||
size 3445776
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:efddc99e33933c6ca898551db9252592fd0a3f18904f53a5b0c0d41d4de393a4
|
||||
size 8804548
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a3bc9b18b2a77fdd73c2779632324e6c83e5c56472dfd80ba60714073b963887
|
||||
size 8847332
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 26 11:42:44 UTC 2010 - jmatejek@novell.com
|
||||
|
||||
- update to 2.7
|
||||
* see changes in python-base.changes
|
||||
- cleaned up the spec and patches
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 2 13:57:02 UTC 2010 - jengelh@medozas.de
|
||||
|
||||
|
77
python.spec
77
python.spec
@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package python (Version 2.6.5)
|
||||
# spec file for package python (Version 2.7)
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
@ -18,10 +18,7 @@
|
||||
|
||||
|
||||
Name: python
|
||||
BuildRequires: db-devel gdbm-devel gmp-devel libbz2-devel libopenssl-devel ncurses-devel readline-devel sqlite-devel tk-devel xorg-x11-devel
|
||||
%if %suse_version >= 1030
|
||||
BuildRequires: fdupes
|
||||
%endif
|
||||
BuildRequires: db-devel fdupes gdbm-devel gmp-devel libbz2-devel libopenssl-devel ncurses-devel readline-devel sqlite-devel tk-devel xorg-x11-devel
|
||||
#Requires: openssl >= 0.9.8e
|
||||
Url: http://www.python.org/
|
||||
License: MIT License (or similar)
|
||||
@ -34,28 +31,28 @@ Obsoletes: python-64bit
|
||||
#
|
||||
Obsoletes: python-nothreads python21 python-elementtree python-sqlite
|
||||
Summary: Python Interpreter
|
||||
Version: 2.6.5
|
||||
Release: 3
|
||||
Version: 2.7
|
||||
Release: 1
|
||||
Requires: python-base = %{version}
|
||||
%define tarversion %{version}
|
||||
%define tarname Python-%{tarversion}
|
||||
Source0: %{tarname}.tar.bz2
|
||||
Source6: README.SUSE
|
||||
Source8: pythonstart
|
||||
Source9: python.sh
|
||||
Source10: python.csh
|
||||
Source1: README.SUSE
|
||||
Source2: pythonstart
|
||||
Source3: python.sh
|
||||
Source4: python.csh
|
||||
#Source11: testfiles.tar.bz2
|
||||
# issues with copyrighted Unicode testing files
|
||||
Patch01: Python-2.3.3-dirs.patch
|
||||
Patch21: Python-2.6.2-multilib.patch
|
||||
Patch23: python-2.6b3-ssl-compat.patch
|
||||
Patch25: python-2.6b1-canonicalize2.patch
|
||||
Patch30: python-2.5.1-sqlite.patch
|
||||
Patch35: python-2.5.2-configure.patch
|
||||
Patch38: python-2.6b3-curses-panel.patch
|
||||
Patch39: python-2.6.2-ssl_handshake_timeout.patch
|
||||
Patch40: sparc_longdouble.patch
|
||||
Patch1: python-2.7-dirs.patch
|
||||
Patch2: Python-2.7rc2-multilib.patch
|
||||
Patch3: python-2.7rc2-canonicalize2.patch
|
||||
Patch4: python-2.5.1-sqlite.patch
|
||||
Patch5: python-2.7rc2-configure.patch
|
||||
Patch6: python-2.6b3-curses-panel.patch
|
||||
Patch7: sparc_longdouble.patch
|
||||
Patch8: python-2.7-acrequire.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%define python_version %(echo %{version} | head -c 3)
|
||||
%define idle_name idle
|
||||
Provides: %{name} = %{python_version}
|
||||
@ -177,19 +174,14 @@ Authors:
|
||||
#%%setup -q -n %{tarname} -a11
|
||||
%setup -q -n %{tarname}
|
||||
# patching
|
||||
%patch01
|
||||
%patch21 -p1
|
||||
%patch23
|
||||
%patch25
|
||||
%patch30
|
||||
#%if 0%{?suse_version}
|
||||
#%endif
|
||||
%patch35
|
||||
%if %suse_version > 1100
|
||||
%patch38
|
||||
%endif
|
||||
%patch39
|
||||
%patch40 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3
|
||||
%patch4
|
||||
%patch5
|
||||
%patch6
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
# some cleanup
|
||||
find . -name .cvsignore -type f -print0 | xargs -0 rm -f
|
||||
find . -name CVS -type d -print0 | xargs -0 rm -rf
|
||||
@ -236,7 +228,7 @@ make %{?_smp_mflags} DESTDIR=$RPM_BUILD_ROOT
|
||||
if test $(ulimit -v) = unlimited || test $(ulimit -v) -gt 10000000; then
|
||||
ulimit -v 10000000 || :
|
||||
fi
|
||||
LIST="test_urllib test_ssl test_hashlib test_hmac test_urllib2_localnet test_unicodedata test_tarfile test_sqlite test_tcl test_anydbm test_dumbdbm test_gdbm test_whichdb"
|
||||
LIST="test_urllib test_ssl test_hashlib test_hmac test_urllib2_localnet test_unicodedata test_tarfile test_sqlite test_tcl test_anydbm test_dumbdbm test_gdbm test_whichdb test_tk test_ttk_textonly test_bsddb test_readline "
|
||||
make test TESTOPTS="$LIST"
|
||||
%endif
|
||||
|
||||
@ -266,12 +258,13 @@ rm $RPM_BUILD_ROOT%{_bindir}/python{,%{python_version}}
|
||||
rm $RPM_BUILD_ROOT%{_bindir}/smtpd.py
|
||||
rm $RPM_BUILD_ROOT%{_bindir}/pydoc
|
||||
rm $RPM_BUILD_ROOT%{_bindir}/2to3
|
||||
rm $RPM_BUILD_ROOT%{_mandir}/man1/python.1*
|
||||
rm $RPM_BUILD_ROOT%{_mandir}/man1/python*
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/libpython*.so.*
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/python
|
||||
find $RPM_BUILD_ROOT%{_libdir}/python%{python_version} -maxdepth 1 ! \( -name "ssl.py" \) -exec rm {} ";"
|
||||
rm $RPM_BUILD_ROOT%{_bindir}/python%{python_version}-config
|
||||
rm $RPM_BUILD_ROOT%{_bindir}/python-config
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/pkgconfig/*
|
||||
rm -r $RPM_BUILD_ROOT%{_includedir}/python
|
||||
rm -r $RPM_BUILD_ROOT%{_includedir}/python%{python_version}
|
||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/compiler
|
||||
@ -281,27 +274,29 @@ rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/distutils
|
||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/email
|
||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/encodings
|
||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/hotshot
|
||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/importlib
|
||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/json
|
||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib2to3
|
||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/logging
|
||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/multiprocessing
|
||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/plat-*
|
||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/pydoc_data
|
||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/test
|
||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/unittest
|
||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/wsgiref
|
||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/xml
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/libpython%{python_version}.so
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages/README
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_bisect.so
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_bytesio.so
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_csv.so
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_collections.so
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_ctypes.so
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_ctypes_test.so
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_elementtree.so
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_fileio.so
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_functools.so
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_heapq.so
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_hotshot.so
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_io.so
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_json.so
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_locale.so
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_lsprof.so
|
||||
@ -345,16 +340,14 @@ rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_multibytecodec
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/audioop.so
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/dl.so
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/Python-%{tarversion}-py%{python_version}.egg-info
|
||||
%if %suse_version >= 1030
|
||||
# replace duplicate .pyo/.pyc with hardlinks
|
||||
%fdupes $RPM_BUILD_ROOT/%{_libdir}/python%{python_version}
|
||||
%endif
|
||||
########################################
|
||||
# documentation
|
||||
########################################
|
||||
export PDOCS=${RPM_BUILD_ROOT}%{_docdir}/%{name}
|
||||
install -d -m 755 $PDOCS
|
||||
install -c -m 644 %{SOURCE6} $PDOCS/
|
||||
install -c -m 644 %{S:1} $PDOCS/
|
||||
install -c -m 644 LICENSE $PDOCS/
|
||||
install -c -m 644 README $PDOCS/
|
||||
########################################
|
||||
@ -380,9 +373,9 @@ install -d -m755 ${RPM_BUILD_ROOT}/etc/%{idle_name}
|
||||
########################################
|
||||
# startup script
|
||||
########################################
|
||||
install -m 644 %{S:8} $RPM_BUILD_ROOT/etc
|
||||
install -m 644 %{S:2} $RPM_BUILD_ROOT/etc
|
||||
install -d -m 755 $RPM_BUILD_ROOT/etc/profile.d
|
||||
install -m 644 %{S:9} %{S:10} $RPM_BUILD_ROOT/etc/profile.d
|
||||
install -m 644 %{S:3} %{S:4} $RPM_BUILD_ROOT/etc/profile.d
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
27
urllib2-AbstractBasicAuthHandler_reset_attr.diff
Normal file
27
urllib2-AbstractBasicAuthHandler_reset_attr.diff
Normal file
@ -0,0 +1,27 @@
|
||||
Index: Lib/urllib2.py
|
||||
===================================================================
|
||||
--- Lib/urllib2.py (Revision 84196)
|
||||
+++ Lib/urllib2.py (Arbeitskopie)
|
||||
@@ -821,6 +821,9 @@
|
||||
self.add_password = self.passwd.add_password
|
||||
self.retried = 0
|
||||
|
||||
+ def reset_retry_count(self):
|
||||
+ self.retried = 0
|
||||
+
|
||||
def http_error_auth_reqed(self, authreq, host, req, headers):
|
||||
# host may be an authority (without userinfo) or a URL with an
|
||||
# authority
|
||||
@@ -860,8 +863,10 @@
|
||||
|
||||
def http_error_401(self, req, fp, code, msg, headers):
|
||||
url = req.get_full_url()
|
||||
- return self.http_error_auth_reqed('www-authenticate',
|
||||
- url, req, headers)
|
||||
+ response = self.http_error_auth_reqed('www-authenticate',
|
||||
+ url, req, headers)
|
||||
+ self.reset_retry_count()
|
||||
+ return response
|
||||
|
||||
|
||||
class ProxyBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler):
|
Loading…
Reference in New Issue
Block a user