+++ /dev/null
-diff -up Python-2.7.2/configure.in.linux2 Python-2.7.2/configure.in
---- Python-2.7.2/configure.in.linux2 2011-09-13 23:18:19.237252000 -0400
-+++ Python-2.7.2/configure.in 2011-09-13 23:18:19.494252001 -0400
-@@ -293,6 +293,7 @@ then
- MACHDEP="$ac_md_system$ac_md_release"
-
- case $MACHDEP in
-+ linux*) MACHDEP="linux2";;
- cygwin*) MACHDEP="cygwin";;
- darwin*) MACHDEP="darwin";;
- atheos*) MACHDEP="atheos";;
-diff -up Python-2.7.2/configure.linux2 Python-2.7.2/configure
---- Python-2.7.2/configure.linux2 2011-06-11 11:46:28.000000000 -0400
-+++ Python-2.7.2/configure 2011-09-13 23:18:19.489252001 -0400
-@@ -3003,6 +3003,7 @@ then
- MACHDEP="$ac_md_system$ac_md_release"
-
- case $MACHDEP in
-+ linux*) MACHDEP="linux2";;
- cygwin*) MACHDEP="cygwin";;
- darwin*) MACHDEP="darwin";;
- atheos*) MACHDEP="atheos";;
-diff -up Python-2.7.2/Misc/NEWS.linux2 Python-2.7.2/Misc/NEWS
diff -up Python-2.7.1/Lib/test/test_site.py.lib64 Python-2.7.1/Lib/test/test_site.py
--- Python-2.7.1/Lib/test/test_site.py.lib64 2010-11-21 08:34:58.000000000 -0500
+++ Python-2.7.1/Lib/test/test_site.py 2010-12-23 15:55:19.782935931 -0500
-@@ -169,17 +169,20 @@ class HelperFunctionsTests(unittest.Test
- wanted = os.path.join('xoxo', 'Lib', 'site-packages')
- self.assertEqual(dirs[0], wanted)
+@@ -241,18 +241,22 @@
+ self.assertEqual(dirs[2], wanted)
elif os.sep == '/':
+ # OS X non-framwework builds, Linux, FreeBSD, etc
- self.assertEqual(len(dirs), 2)
+ self.assertEquals(len(dirs), 3)
+ wanted = os.path.join('xoxo', 'lib64', 'python' + sys.version[:3],
- self.assertEqual(dirs[1], wanted)
+ self.assertEquals(dirs[2], wanted)
else:
+ # other platforms
- self.assertEqual(len(dirs), 2)
- self.assertEqual(dirs[0], 'xoxo')
- wanted = os.path.join('xoxo', 'lib', 'site-packages')
+ self.assertEquals(dirs[0], 'xoxo')
+ wanted = os.path.join('xoxo', 'lib64', 'site-packages')
+ self.assertEquals(dirs[1], wanted)
++
- # let's try the specific Apple location
- if (sys.platform == "darwin" and
+ class PthFile(object):
+ """Helper class for handling testing of .pth files"""
diff -up Python-2.7.1/Makefile.pre.in.lib64 Python-2.7.1/Makefile.pre.in
--- Python-2.7.1/Makefile.pre.in.lib64 2010-12-23 15:51:19.407063264 -0500
+++ Python-2.7.1/Makefile.pre.in 2010-12-23 15:51:19.426063917 -0500
name = python
major_ver = 2.7
-version = %{major_ver}.2
-release = 7
+version = %{major_ver}.3
+release = 1
thisapp = Python-%{version}
groups = Development/Languages
prepare_cmds
# Apply patches for x86_64.
if [ "$(uname -m)" = "x86_64" ]; then
- patch -Np1 -i %{DIR_SOURCE}/python-2.7.1-lib64.patch
+ patch -Np1 -i %{DIR_SOURCE}/python-2.7.3-lib64.patch
patch -Np1 -i %{DIR_SOURCE}/python-2.7-lib64-sysconfig.patch
fi