Package Details: python26 2.6.9-9

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.160979
First Submitted: 2010-10-14 18:27
Last Updated: 2016-07-23 11:39

Dependencies (11)

Required by (3903)

Sources (15)

  • 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-expat-2.2.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-07-23 11:41

@yan12125,@max-k: I integrated the patch. Thanks!

max-k commented on 2016-07-19 09:11

Hi,

Here is a full patch implementing yan12125's fix :

https://gist.github.com/max-k/db59dd0a990b3bc2abf13f3ec97e8e01

Thank you to update your package.

yan12125 commented on 2016-07-07 14:44

Here's a new bug for Python due to updated expat: http://bugs.python.org/issue27369. It causes tests failed. This patch works for me: https://gist.github.com/yan12125/5e3c50aa2298965af7107a96ebc5e540

SpotlightKid commented on 2016-05-26 16:07

@yan12125: I can confirm the failing tests.

I had to solve this by compiling the package with GCC 5.3 (from the 'gcc5' AUR package), setting the CC, CXX and CPP environment variables to 'gcc-5', 'g++-5' and 'cpp-5' respectively.

Unfortunately this means that you have to build and install the 'gcc5' package to build this package, which can take a LOOOOONG time.

Make sure that you build the package with a clean source directory, i.e. if you use 'makepkg', remove an existing 'src' directory first.

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'.

All comments