Package Details: python26 2.6.9-7

Git Clone URL: https://aur.archlinux.org/python26.git (read-only)
Package Base: python26
Description: Legacy version Python 2.6 of the high-level scripting language
Upstream URL: http://www.python.org/
Licenses: PSF
Provides: python2=2.6.9
Submitter: None
Maintainer: SpotlightKid
Last Packager: SpotlightKid
Votes: 55
Popularity: 0.569995
First Submitted: 2010-10-14 18:27
Last Updated: 2016-03-06 06:30

Dependencies (10)

Required by (1000)

Sources (14)

  • http://www.python.org/ftp/python/2.6.9/Python-2.6.9.tar.xz
  • modulator-launcher
  • pynche-launcher
  • python-2.6-db-4.8.patch
  • python-2.6-dbm.patch
  • python-2.6-distutils.patch
  • python-2.6-internal-expat.patch
  • python-2.6-mhlib-nlinks.patch
  • python-2.6-pyexpat-segfault.patch
  • python-2.6-readline-6.3.patch
  • python-2.6-sqlite-test.patch
  • python-2.6-ssl-nosslv3.patch
  • python-2.6-tkinter-86.patch
  • python-2.6-whichdb-gdbm-1.9.patch

Latest Comments

SpotlightKid commented on 2016-05-07 12:17

@yan12125: Thanks for the report. I'm on Manjaro and GCC 6.1 hasn't landed there yet. When it does, I'll look into it, but unless there are upstream patches (unlikely), there's nothing much I can do about it other than disabling those tests.

yan12125 commented on 2016-05-07 06:55

Lots of tests failed with GCC 6.1:

13 tests failed:
test_array test_builtin test_bytes test_decimal test_fractions
test_getargs2 test_index test_long test_math test_random test_re
test_tokenize test_types

SpotlightKid commented on 2016-03-06 06:32

I added the patch and a proper define to CPPFLAGS. Now the ssl module compiles and can be imported again. Haven't tested it further, though. Please note that I would STRONGLY recommend NOT using the built-in ssl module in Python 2.6, because it it very unsecure, but something like pyOpenSSL.

yan12125 commented on 2016-03-05 20:52

The following patch works for Python 3.2.6. Maybe it works for 2.6, too.

--- a/Modules/_ssl.c 2016-03-06 04:25:54.076238343 +0800
+++ b/Modules/_ssl.c 2016-03-06 04:27:39.789568626 +0800
@@ -1512,8 +1512,10 @@
PySSL_BEGIN_ALLOW_THREADS
if (proto_version == PY_SSL_VERSION_TLS1)
ctx = SSL_CTX_new(TLSv1_method());
+#ifndef OPENSSL_NO_SSL3
else if (proto_version == PY_SSL_VERSION_SSL3)
ctx = SSL_CTX_new(SSLv3_method());
+#endif
#ifndef OPENSSL_NO_SSL2
else if (proto_version == PY_SSL_VERSION_SSL2)
ctx = SSL_CTX_new(SSLv2_method());

yan12125 commented on 2016-03-05 20:21

Thanks for the effort on this package! I have encountered a new problem: building _ssl extension failed since testing/openssl 1.0.2g-3. The verbose log is at https://gist.github.com/yan12125/2ae39697615ed9d698b4. As a result I can't use SSL related features like HTTPS:
$ python2.6 -c 'import ssl'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.6/ssl.py", line 60, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: No module named _ssl

SpotlightKid commented on 2016-02-12 10:54

Sorry, I can't reproduce this error. Seems like a transient network error to me. Maybe your 'localhost' address isn't configured properly?

You can disable the tests with 'makepkg --nocheck'.

ron89 commented on 2016-02-12 09:13

Unable to compile, test_smtplib test failed.

test test_smtplib failed -- Traceback (most recent call last):
File "/tmp/yaourt-tmp-chong/aur-python26/src/Python-2.6.9/Lib/test/test_smtplib.py", line 192, in testVRFY
smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
File "/tmp/yaourt-tmp-chong/aur-python26/src/Python-2.6.9/Lib/smtplib.py", line 244, in __init__
(code, msg) = self.connect(host, port)
File "/tmp/yaourt-tmp-chong/aur-python26/src/Python-2.6.9/Lib/smtplib.py", line 301, in connect
(code, msg) = self.getreply()
File "/tmp/yaourt-tmp-chong/aur-python26/src/Python-2.6.9/Lib/smtplib.py", line 342, in getreply
line = self.file.readline(_MAXLINE + 1)
File "/tmp/yaourt-tmp-chong/aur-python26/src/Python-2.6.9/Lib/socket.py", line 473, in readline
data = self._sock.recv(self._rbufsize)
timeout: timed out

SpotlightKid commented on 2015-02-01 20:58

@Aramgutang: I integrated the patch. Sorry that it took so long. Let me know if there are any problems.

SpotlightKid commented on 2014-12-01 13:42

I'll look into it this week, but I probably can't test it properly, since I have no btrfs installation.

Aramgutang commented on 2014-12-01 00:58

The package fails to build on systems with a btrfs filesystem (the "test_mhlib" test fails during compilation), due to this bug:
http://bugs.python.org/issue7759

I've tried applying the "mhlib_nlinks.txt" patch from the ticket above, and it seems to resolve the problem. Would suggest including it in this package.

All comments