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.896518
First Submitted: 2010-10-14 18:27
Last Updated: 2016-03-06 06:30

Dependencies (10)

Required by (3777)

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

jantman commented on 2014-09-04 20:42

Ah ok, thanks for the info.

As to root, yes, I'm aware; my entire machine (I mean *entire*, and really my desktop and laptop, which are identical) is managed by Puppet. Unfortunately, the pacman (and yaourt) package provider for Puppet executes everything as root, which is how pretty much all of Puppet works, and usually a reasonable assumption for package installation. Since the provider simply executes "yaourt --noconfirm -S packagename", and is designed to be easily interchangable with yaourt and pacman, this would be a pretty substantial logic change...

Thanks for adding a check for this so it's more obvious for others.

SpotlightKid commented on 2014-09-04 19:57

New package version 2.6.9-5:

- add arm architecture
- disable failing test 'test_float' for arm (no fix known)
- include 'Python 2.6' in pkgdesc for better visibility in AUR search
- Add warning and abort build in 'check' function when run as root, since
this triggers several test failures

If you do not use arm, there is no real need to update.

SpotlightKid commented on 2014-09-04 19:21

You shouldn't build packages as root! If you use yaourt, it will use sudo to install the package when it's built. No need to run yaourt directly as root. You should also run makepkg only as a normal unpriviledged user.

Aside from that, congratulations, it seems you found another test bug! The test 'test_posix.PosixGroupsTester.test_setgroups` uses a method of `unittest.TestCase` which was only introduced in the unittest module in Python 2.7. The reason this bug wasn't triggered when I run the tests is that the test is only run when you have UID 0, i.e. you are root.

The test_httpservers failure is probably also caused by running the tests as root. The test case `test_httpservers.CGIHTTPServerTestCase` creates a sysmlink to the python executable and then writes the path to this excutable in the shebang line of the CGI scripts. When the CGI tries to execute these scripts, the permission error is triggered.

jantman commented on 2014-09-04 17:58

I'm on x86_64, admittedly haven't updated in a while. /tmp is a tmpfs, mounted with "rw" (as the only option).

[root@phoenix Python-2.6.9]# export LD_LIBRARY_PATH="$(pwd)"
[root@phoenix Python-2.6.9]# ./python Lib/test/regrtest.py -v test_httpservers
test_httpservers
test_command (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_handler (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_head_keep_alive (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_header_close (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_internal_key_error (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_request_line_trimming (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_return_custom_status (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_return_header_keep_alive (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_send_blank (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_version_bogus (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_version_digits (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_version_invalid (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_version_none (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_version_none_get (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_get (test.test_httpservers.SimpleHTTPServerTestCase) ... FAIL
test_head (test.test_httpservers.SimpleHTTPServerTestCase) ... ok
test_invalid_requests (test.test_httpservers.SimpleHTTPServerTestCase) ... ok
test_authorization (test.test_httpservers.CGIHTTPServerTestCase) ... Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/CGIHTTPServer.py", line 255, in run_cgi
os.execve(scriptfile, args, os.environ)
OSError: [Errno 13] Permission denied
FAIL
test_headers_and_content (test.test_httpservers.CGIHTTPServerTestCase) ... Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/CGIHTTPServer.py", line 255, in run_cgi
os.execve(scriptfile, args, os.environ)
OSError: [Errno 13] Permission denied
FAIL
test_invaliduri (test.test_httpservers.CGIHTTPServerTestCase) ... ok
test_post (test.test_httpservers.CGIHTTPServerTestCase) ... Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/CGIHTTPServer.py", line 255, in run_cgi
os.execve(scriptfile, args, os.environ)
OSError: [Errno 13] Permission denied
FAIL

======================================================================
FAIL: test_get (test.test_httpservers.SimpleHTTPServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_httpservers.py", line 242, in test_get
self.check_status_and_reason(response, 404)
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_httpservers.py", line 218, in check_status_and_reason
self.assertEquals(response.status, status)
AssertionError: 200 != 404

======================================================================
FAIL: test_authorization (test.test_httpservers.CGIHTTPServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_httpservers.py", line 349, in test_authorization
(res.read(), res.getheader('Content-type'), res.status))
AssertionError: ('Hello World\n', 'text/html', 200) != ("Exception happened during processing of request from ('127.0.0.1', 42959)\n----------------------------------------\n", None, 200)

======================================================================
FAIL: test_headers_and_content (test.test_httpservers.CGIHTTPServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_httpservers.py", line 330, in test_headers_and_content
(res.read(), res.getheader('Content-type'), res.status))
AssertionError: ('Hello World\n', 'text/html', 200) != ("Exception happened during processing of request from ('127.0.0.1', 33016)\n----------------------------------------\n", None, 200)

======================================================================
FAIL: test_post (test.test_httpservers.CGIHTTPServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_httpservers.py", line 337, in test_post
self.assertEquals(res.read(), '1, python, 123456\n')
AssertionError: "Exception happened during processing of request from ('127.0.0.1', 48459)\n----------------------------------------\n" != '1, python, 123456\n'

----------------------------------------------------------------------
Ran 21 tests in 1.096s

FAILED (failures=4)
test test_httpservers failed -- multiple errors occurred
1 test failed:
test_httpservers

[root@phoenix Python-2.6.9]# ./python Lib/test/regrtest.py -v test_posix
test_posix
testNoArgFunctions (test.test_posix.PosixTester) ... ok
test_access (test.test_posix.PosixTester) ... ok
test_chdir (test.test_posix.PosixTester) ... ok
test_chflags (test.test_posix.PosixTester) ... ok
test_chown (test.test_posix.PosixTester) ... ok
test_confstr (test.test_posix.PosixTester) ... ok
test_dup (test.test_posix.PosixTester) ... ok
test_dup2 (test.test_posix.PosixTester) ... ok
test_fchown (test.test_posix.PosixTester) ... ok
test_fdopen (test.test_posix.PosixTester) ... ok
test_fstat (test.test_posix.PosixTester) ... ok
test_fstatvfs (test.test_posix.PosixTester) ... ok
test_ftruncate (test.test_posix.PosixTester) ... ok
test_getcwd_long_pathnames (test.test_posix.PosixTester) ... ok
test_getgroups (test.test_posix.PosixTester) ... ok
test_lchflags (test.test_posix.PosixTester) ... ok
test_lchown (test.test_posix.PosixTester) ... ok
test_lsdir (test.test_posix.PosixTester) ... ok
test_osexlock (test.test_posix.PosixTester) ... ok
test_osshlock (test.test_posix.PosixTester) ... ok
test_pipe (test.test_posix.PosixTester) ... ok
test_stat (test.test_posix.PosixTester) ... ok
test_statvfs (test.test_posix.PosixTester) ... ok
test_strerror (test.test_posix.PosixTester) ... ok
test_tempnam (test.test_posix.PosixTester) ... ok
test_tmpfile (test.test_posix.PosixTester) ... ok
test_umask (test.test_posix.PosixTester) ... ok
test_utime (test.test_posix.PosixTester) ... ok
test_setgroups (test.test_posix.PosixGroupsTester) ... ERROR

======================================================================
ERROR: test_setgroups (test.test_posix.PosixGroupsTester)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_posix.py", line 356, in test_setgroups
self.assertListEqual(groups, posix.getgroups())
AttributeError: 'PosixGroupsTester' object has no attribute 'assertListEqual'

----------------------------------------------------------------------
Ran 29 tests in 0.012s

FAILED (errors=1)
test test_posix failed -- Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_posix.py", line 356, in test_setgroups
self.assertListEqual(groups, posix.getgroups())
AttributeError: 'PosixGroupsTester' object has no attribute 'assertListEqual'

1 test failed:
test_posix

jantman commented on 2014-09-04 17:41

I'm on x86_64, admittedly haven't updated in a while. /tmp is a tmpfs, mounted with "rw" (as the only option).

[root@phoenix Python-2.6.9]# export LD_LIBRARY_PATH="$(pwd)"
[root@phoenix Python-2.6.9]# ./python Lib/test/regrtest.py -v test_httpservers
test_httpservers
test_command (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_handler (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_head_keep_alive (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_header_close (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_internal_key_error (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_request_line_trimming (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_return_custom_status (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_return_header_keep_alive (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_send_blank (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_version_bogus (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_version_digits (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_version_invalid (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_version_none (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_version_none_get (test.test_httpservers.BaseHTTPServerTestCase) ... ok
test_get (test.test_httpservers.SimpleHTTPServerTestCase) ... FAIL
test_head (test.test_httpservers.SimpleHTTPServerTestCase) ... ok
test_invalid_requests (test.test_httpservers.SimpleHTTPServerTestCase) ... ok
test_authorization (test.test_httpservers.CGIHTTPServerTestCase) ... Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/CGIHTTPServer.py", line 255, in run_cgi
os.execve(scriptfile, args, os.environ)
OSError: [Errno 13] Permission denied
FAIL
test_headers_and_content (test.test_httpservers.CGIHTTPServerTestCase) ... Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/CGIHTTPServer.py", line 255, in run_cgi
os.execve(scriptfile, args, os.environ)
OSError: [Errno 13] Permission denied
FAIL
test_invaliduri (test.test_httpservers.CGIHTTPServerTestCase) ... ok
test_post (test.test_httpservers.CGIHTTPServerTestCase) ... Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/CGIHTTPServer.py", line 255, in run_cgi
os.execve(scriptfile, args, os.environ)
OSError: [Errno 13] Permission denied
FAIL

======================================================================
FAIL: test_get (test.test_httpservers.SimpleHTTPServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_httpservers.py", line 242, in test_get
self.check_status_and_reason(response, 404)
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_httpservers.py", line 218, in check_status_and_reason
self.assertEquals(response.status, status)
AssertionError: 200 != 404

======================================================================
FAIL: test_authorization (test.test_httpservers.CGIHTTPServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_httpservers.py", line 349, in test_authorization
(res.read(), res.getheader('Content-type'), res.status))
AssertionError: ('Hello World\n', 'text/html', 200) != ("Exception happened during processing of request from ('127.0.0.1', 42959)\n----------------------------------------\n", None, 200)

======================================================================
FAIL: test_headers_and_content (test.test_httpservers.CGIHTTPServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_httpservers.py", line 330, in test_headers_and_content
(res.read(), res.getheader('Content-type'), res.status))
AssertionError: ('Hello World\n', 'text/html', 200) != ("Exception happened during processing of request from ('127.0.0.1', 33016)\n----------------------------------------\n", None, 200)

======================================================================
FAIL: test_post (test.test_httpservers.CGIHTTPServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_httpservers.py", line 337, in test_post
self.assertEquals(res.read(), '1, python, 123456\n')
AssertionError: "Exception happened during processing of request from ('127.0.0.1', 48459)\n----------------------------------------\n" != '1, python, 123456\n'

----------------------------------------------------------------------
Ran 21 tests in 1.096s

FAILED (failures=4)
test test_httpservers failed -- multiple errors occurred
1 test failed:
test_httpservers

SpotlightKid commented on 2014-09-04 12:27

@jantman Which architecture are you on? What filesystem is /tmp and what are the mount options?

Can you run this from the build directory (i.e. /tmp/makepkg/python26/src/Python-2.6.9)?

export LD_LIBRARY_PATH="$(pwd)"
./python Lib/test/regrtest.py -v test_httpservers
./python Lib/test/regrtest.py -v test_posix

jantman commented on 2014-09-04 11:47

This is currently failing for me with two failed tests:

test_httpservers
Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/CGIHTTPServer.py", line 255, in run_cgi
os.execve(scriptfile, args, os.environ)
OSError: [Errno 13] Permission denied
Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/CGIHTTPServer.py", line 255, in run_cgi
os.execve(scriptfile, args, os.environ)
OSError: [Errno 13] Permission denied
Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/CGIHTTPServer.py", line 255, in run_cgi
os.execve(scriptfile, args, os.environ)
OSError: [Errno 13] Permission denied
test test_httpservers failed -- multiple errors occurred; run in verbose mode for details

test test_posix failed -- Traceback (most recent call last):
File "/tmp/makepkg/python26/src/Python-2.6.9/Lib/test/test_posix.py", line 356, in test_setgroups
self.assertListEqual(groups, posix.getgroups())
AttributeError: 'PosixGroupsTester' object has no attribute 'assertListEqual'

I've confirmed that /tmp/makepkg/python26/src/Python-2.6.9/Lib/CGIHTTPServer.py exists and the perms look right.

s_m commented on 2014-06-23 09:38

@SpotlightKid, thanks it is fixed now. To be sure I removed my python26 installation and could reinstall it without any failing test.

SpotlightKid commented on 2014-06-21 09:39

New package release 2.6.9-4:
* add patch for test_distutils for http://bugs.python.org/issue10126
* source package and .AURINFO are now generated with mkaurball (thanks to Kwpolska for the tip)
* fix version number variable substitution in provides

Kwpolska commented on 2014-06-20 16:14

@SpotlightKid, have you used `mkaurball` (from the package `pkgbuild-introspection`) instead of `makepkg --source`?

SpotlightKid commented on 2014-06-20 16:10

I've added a patch for the issue but AUR rejects my updated source package upload with "Invalid name: only lowercase letters are allowed.", though changed nothing else. No idea why, I'll have to investigate.

In the meantime, you can find the updated package here:

http://trac.chrisarndt.de/code/browser/projects/aur/python26

SpotlightKid commented on 2014-06-20 14:23

This is probably http://bugs.python.org/issue10126. Occurs only when there is no pre-existing Python 2.6 installation on the build system. I'll add a patch later.

SpotlightKid commented on 2014-06-20 14:13

Can you build C-extension modules with this version and distutils after you installed it?

s_m commented on 2014-06-20 13:56

Unfortunately the distutils fails for me. With '--nocheck' I was able to build and install the package. This was the error output:
/usr/bin/ld: cannot find -lpython2.6
collect2: fout: ld gaf exit-status 1 terug
test test_distutils failed -- Traceback (most recent call last):
File "/home/stani/tmp/py26aur/python26/src/Python-2.6.9/Lib/distutils/tests/test_build_ext.py", line 261, in test_get_outputs
cmd.run()
File "/home/stani/tmp/py26aur/python26/src/Python-2.6.9/Lib/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/home/stani/tmp/py26aur/python26/src/Python-2.6.9/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self.build_extension(ext)
File "/home/stani/tmp/py26aur/python26/src/Python-2.6.9/Lib/distutils/command/build_ext.py", line 531, in build_extension
target_lang=language)
File "/home/stani/tmp/py26aur/python26/src/Python-2.6.9/Lib/distutils/ccompiler.py", line 769, in link_shared_object
extra_preargs, extra_postargs, build_temp, target_lang)
File "/home/stani/tmp/py26aur/python26/src/Python-2.6.9/Lib/distutils/unixccompiler.py", line 258, in link
raise LinkError, msg
LinkError: command 'gcc' failed with exit status 1

Kwpolska commented on 2014-05-24 11:40

@SpotlightKid oh, I had a leftover old thing around, somehow.

SpotlightKid commented on 2014-05-24 11:13

Can't reproduce this here, sys.path is correcct. Are you sure, you are using the binary that results from building with this PKGBUILD? As you can see, it is built with './configure --prefix=/usr ...'.

Kwpolska commented on 2014-05-24 11:07

@SpotlightKid

$ python2.6
>>> '/usr/lib/python2.6' in sys.path
False
>>>

SpotlightKid commented on 2014-05-24 11:06

What are you talking about? What do mean by "it" and "believe"?

Kwpolska commented on 2014-05-24 09:06

It’s broken. It believes the lib path is /usr/local/lib/python2.6, when it should be /usr/lib/python2.6.

SpotlightKid commented on 2014-05-18 20:19

Removed "out-of-date" flag since I can't repoduce the problem and reporter has not provided further input.

SpotlightKid commented on 2014-05-06 14:00

All tests pass on my system (Manjaro, x86_64) Except the bsdbb ones, because the modules are not included. Can you run

./python Lib/test/regrtest.py -v <test_name>

in the build directory substituting the test names that fail and send me the output (see my profile for email)? See also the "Testing" section in the README.

You can also build the package without running the test by giving the '--nocheck' option to makepkg. The commands in the 'check' function of the PKGBUILD were previously disabled (commented out) but I re-enabled them, because the tests failures were the result of actual bugs triggered by new versions of dependencies. I fixed those, so I'd be interested why additional tests fail on your system.

morxa commented on 2014-05-06 11:51

Flag as out-of-date because the build fails:
326 tests OK.
4 tests failed:
test_distutils test_multiprocessing test_urllib2_localnet
test_xmlrpc
37 tests skipped:
test_aepack test_al test_applesingle test_bsddb test_bsddb185
test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk
test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses
test_dl test_gl test_imageop test_imgfile test_kqueue
test_linuxaudiodev test_macos test_macostools test_normalization
test_ossaudiodev test_pep277 test_py3kwarn test_scriptpackages
test_smtpnet test_socketserver test_startfile test_sunaudiodev
test_timeout test_urllib2net test_urllibnet test_winreg
test_winsound test_zipfile64
2 skips unexpected on linux2:
test_bsddb test_bsddb3

SpotlightKid commented on 2014-04-25 21:21

New package release 2.6.9-3

Changes:

- re-enable 'make test' in check function
- add patch for whichdb module to recognize files creatd by gdbm >= 1.9
- add patch for segfault in test_pyexpat with system expat
- add patch for failure in test_sqlite with sqlite >= 3.8.4
- add prepare function for applying patches

SpotlightKid commented on 2014-04-18 10:15

The error was in the .AURINFO file, which didn't include the pkgrel in the package version. I didn't see any mention that this is necessary in the documentation. :(

SpotlightKid commented on 2014-04-18 09:31

Not sure what you mean. The PKGBUILD has 'pkgrel' set to 1. AFAICS this conforms to the Arch packaging standards.

syne commented on 2014-04-18 09:00

at every update it tells that a new release (2.6.9) is available. in the package details there should be a release number attached to it (2.6.9-1) to avoid this.

SpotlightKid commented on 2014-04-16 20:41

I adopted it. Let me know if anything is amiss.

(I just fixed the pynche and modulator launchers as well.)

remyoudompheng commented on 2014-04-16 19:53

I have disowned the package.

SpotlightKid commented on 2014-04-16 15:56

I made an updated PKGBUILD for Python 2.6.9 here:

http://trac.chrisarndt.de/code/browser/projects/aur/python26

(check out with Subversion from svn://svn.chrisarndt.de/projects/aur/python26)

This also fixes building against tk 8.6 and readline 6.3. For more details see the included changelog.

tasidus commented on 2013-12-10 18:12

2.6.9 security release is out: https://gist.github.com/tlatsas/7895223

maleadt commented on 2013-01-10 14:28

Okay, thanks for fixing!

remyoudompheng commented on 2013-01-10 07:55

I've added a patch that fixes the problem.

remyoudompheng commented on 2013-01-10 07:55

Please don't mark this package as out of date if you only want to report a bug.

maleadt commented on 2013-01-09 12:56

Doesn't seem to build due to dbm, see https://issues.apache.org/ooo/show_bug.cgi?id=118621. I couldn't manage to get dbm working, the first patch mendioned in that bug report doesn't apply, but disabling dbm alltogether (as per patch which is finally applied in the OoO bug thread) makes it work again.

vadmium commented on 2012-10-23 14:30

I second Untitaker’s suggestion: Please mention 2.6 (two point six) somewhere rather than just twenty-six. I was almost about to write my own Python 2.6 package from scratch. Something like this should be good enough I think:

pkgdesc="Python version 2.6"

untitaker commented on 2012-09-16 14:13

I asked to merge python2.6 into this. Please write the description so that a search for "python 2.6" will bring this package up.

Anonymous comment on 2011-06-23 00:46

I worked around the error Synthead posted below by the questionable expedient of changing the make install to make altinstall and removing 2to3, idle, and pydoc from ${pkgdir}/usr/bin/ in build(). I had to jump through some similar hoops to get wxpython installed for the resulting python26, but the program I needed to run (the Traipse build of OpenRPG to be specific) is working, so I thought I would post this in case it somehow helps someone.

Synthead commented on 2011-05-13 07:42

Here's a source package that's more up-to-date and working, kudos to le_fuzzy: http://www.mediafire.com/?vsy9utatr01s9rw

Synthead commented on 2011-05-12 17:03

resolving dependencies...
looking for inter-conflicts...

Targets (1): python26-2.6.5-1

Total Download Size: 0.00 MB
Total Installed Size: 62.54 MB

Proceed with installation? [Y/n]
(1/1) checking package integrity [----------------------------------------] 100%
(1/1) checking for file conflicts [----------------------------------------] 100%
error: failed to commit transaction (conflicting files)
python26: /usr/bin/2to3 exists in filesystem
python26: /usr/bin/idle exists in filesystem
python26: /usr/bin/pydoc exists in filesystem
python26: /usr/bin/python exists in filesystem
python26: /usr/bin/python-config exists in filesystem

felix125 commented on 2011-03-02 21:46

Please update this package.Thanks a lot.
Now,I Flag it Out-of-date

felix125 commented on 2011-03-02 21:44

please update this package, thanks a lot!

Anonymous comment on 2011-02-09 13:47

le_fuzzy, Thanks for the PKGBUILD and patches.
Please update this package.

dhaines commented on 2011-02-06 21:27

What vimes656 said.

vimes656 commented on 2011-01-25 17:41

Please update the PKGBUILD or orphan the package if you can't.

le_fuzzy commented on 2010-11-08 23:24

I've got an updated ebuild for python 2.6.6, along with fixes to prevent conflicts. To launch you need to run python26 instead of python, and the like for idle and the other commands. I won't promise it's perfect, but it works for me.

The updated PKGBUILD for python 2.6.6:
http://pastebin.com/Gv8XRVBM

And updated patches:
python-2.6.6-db-4.8.patch:
http://pastebin.com/SuFi3bqJ
python-2.6.6-internal-expat.patch:
http://pastebin.com/htxCUMdx

snostorm commented on 2010-11-01 14:01

would it be possible to get this as a non conflicting install of python 2.6 so it can be installed beside 3.1 and 2.7
I recieved the below errors that would I believe need attention to get it to be another istance of python that could be made default for a single session.

error: failed to commit transaction (conflicting files)
python26: /usr/bin/2to3 exists in filesystem
python26: /usr/bin/idle exists in filesystem
python26: /usr/bin/pydoc exists in filesystem
python26: /usr/bin/python exists in filesystem
python26: /usr/bin/python-config exists in filesystem

snostorm commented on 2010-11-01 13:38

I un flaged this as out of date as with the conversion to 3.1 and 2.7 there are likely to be applications which may still need 2.6 untill most distros are on 2.7 or 3.1

Anonymous comment on 2010-10-14 18:31

You may need to force install this since the python3.1/python2.7 upgrade does not cleanup the python2.6 stuff