Package Details: python2 2.7.18-10

Git Clone URL: https://aur.archlinux.org/python2.git (read-only, click to copy)
Package Base: python2
Description: A high-level scripting language
Upstream URL: https://www.python.org/
Licenses: PSF-2.0
Conflicts: python
Submitter: jelly
Maintainer: micwoj92
Last Packager: micwoj92
Votes: 71
Popularity: 5.62
First Submitted: 2022-09-23 10:01 (UTC)
Last Updated: 2024-03-02 06:19 (UTC)

Pinned Comments

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 .. 18 Next › Last »

khvalera commented on 2023-05-10 12:36 (UTC)

to assemble you need to run: gpg --recv-key 0x04C367C218ADD4FF

drws commented on 2023-02-23 10:01 (UTC) (edited on 2023-07-26 17:46 (UTC) by drws)

Build is failing with:

======================================================================
FAIL: test_sendall_interrupted (test.test_socket.GeneralModuleTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../build/python2/src/Python-2.7.18/Lib/test/test_socket.py", line 745, in test_sendall_interrupted
    self.check_sendall_interrupted(False)
  File ".../build/python2/src/Python-2.7.18/Lib/test/test_socket.py", line 732, in check_sendall_interrupted
    c.sendall(b"x" * test_support.SOCK_MAX_SIZE)
AssertionError: ZeroDivisionError not raised

======================================================================
FAIL: test_sendall_interrupted_with_timeout (test.test_socket.GeneralModuleTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../build/python2/src/Python-2.7.18/Lib/test/test_socket.py", line 748, in test_sendall_interrupted_with_timeout
    self.check_sendall_interrupted(True)
  File ".../build/python2/src/Python-2.7.18/Lib/test/test_socket.py", line 732, in check_sendall_interrupted
    c.sendall(b"x" * test_support.SOCK_MAX_SIZE)
AssertionError: ZeroDivisionError not raised

FabioLolix commented on 2023-02-06 17:00 (UTC)

Clean chroot builded python2 package at https://sourceforge.net/projects/fabiololix-os-archive/files/Packages/


I did have to load the pgp key for this new system though.

@Cody_Learner yes because keys in AUR pkgbuilds are unrelated to system keys

@eniac @sp1cyf0x It builded fine for me on 2023-01-21 and today 2023-02-06

--nocheck option for makepkg exist for skipping tests

Cody_Learner commented on 2023-01-29 00:58 (UTC) (edited on 2023-02-23 02:05 (UTC) by Cody_Learner)

I built this for a new install today using the notes I posted below.
I did have to load the pgp key for this new system though.
What error/fail messages are you guys getting?


gpg --keyserver keyserver.ubuntu.com --recv-key 04C367C218ADD4FF

==> Creating package "python2"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: python2 2.7.18-8 (Sun Jan 29 00:50:02 2023)

Edit 2023-02-15: Add another build option.
My devtools wrapper script, bcc, has been tested to build python2 successfully in a clean chroot.
Additional info: https://github.com/Cody-Learner/bcc

eniac commented on 2023-01-27 07:00 (UTC)

I'm still at 2.7.18-7 as I can't build the latest version (tests failing) even when using the chroot solution below. Is there a way to skip those tests?

<deleted-account> commented on 2023-01-17 09:19 (UTC)

From the [ArchWiki]https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot, you can use extra-x86_64-build in the same directory where the PKGBUILD is.

Note that when I tried building this package in a clean chroot, it did not help pass the tests so it may differ between systems.

Cody_Learner commented on 2023-01-16 23:42 (UTC) (edited on 2023-01-17 00:49 (UTC) by Cody_Learner)


I had no luck building this one in an nspawn container using my aur helper script.
Install the devtools package if you decide to try this.
I made no changes to anything, and built it as git cloned.

Here's how I built it:

$ mkdir ~/chroot/python2
$ CHROOT=~/chroot/python2
$ mkarchroot $CHROOT/root base-devel
$ cd ~/chroot/python2/root/home/
$ sudo git clone https://aur.archlinux.org/python2.git
$ sudo chown $USER:$USER ~/chroot/python2/root/home/python2/
$ cd ~/chroot/python2/root/home/python2/
$ makechrootpkg -c -r $CHROOT
Go have a beer. It takes some time to build.
If you see something like this when you return, you're in luck:

==> Creating package "python2"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: python2 2.7.18-8 (Mon Jan 16 15:13:02 2023)

You'll find the built package in:

~/chroot/python2/root/home/python2/

qtmax commented on 2023-01-13 20:14 (UTC)

I also have tests failing:

test_doctest_main_issue4197 (test.test_zipimport_support.ZipSupportTests) ... Expected line File "/tmp/tmprRwRk3/script.py", line 2, in __main__.Test
Got stdout:
**********************************************************************
File "/tmp/tmprRwRk3/script.py", line 2, in __main__.Test
Failed example:
    'line 2'
Expected nothing
Got:
    'line 2'
**********************************************************************
1 items had failures:
   1 of   1 in __main__.Test
***Test Failed*** 1 failures.

Expected line File "/tmp/tmprRwRk3/test_zip.zip/__main__.py", line 2, in __main__.Test
Got stdout:
**********************************************************************
File "/tmp/tmprRwRk3/test_zip.zip/__main__.py", line 2, in __main__.Test
Failed example:
    'line 2'
Expected nothing
Got:
    'line 2'
**********************************************************************
1 items had failures:
   1 of   1 in __main__.Test
***Test Failed*** 1 failures.

...

== Tests result: FAILURE ==

367 tests OK.

3 tests failed:
    test_codecs test_locale test_time

25 tests skipped:
    test_aepack test_al test_applesingle test_bsddb test_bsddb185
    test_bsddb3 test_cd test_cl test_dl test_gl test_imageop
    test_imgfile test_kqueue test_linuxaudiodev test_macos
    test_macostools test_msilib test_ossaudiodev test_py3kwarn
    test_scriptpackages test_startfile test_sunaudiodev test_winreg
    test_winsound test_zipfile64
2 skips unexpected on linux2:
    test_bsddb test_bsddb3

Total duration: 6 min 58 sec
Tests result: FAILURE

In addition to test_time, test_codecs and test_locale also fail. The build attempt was in a clean Archlinux installation in a machinectl (systemd-nspawn) container.