unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Update Python to 3.4.3?
@ 2015-04-05 13:40 David Thompson
  2015-04-05 17:39 ` Cyril Roelandt
  0 siblings, 1 reply; 7+ messages in thread
From: David Thompson @ 2015-04-05 13:40 UTC (permalink / raw)
  To: guix-devel

Our Python package uses version 3.3.5, but 3.4.3 is the latest stable
release.  Shall we upgrade (in core-updates), or is this choice
deliberate?

-- 
David Thompson
Web Developer - Free Software Foundation - http://fsf.org
GPG Key: 0FF1D807
Support the FSF: https://fsf.org/donate

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Update Python to 3.4.3?
  2015-04-05 13:40 Update Python to 3.4.3? David Thompson
@ 2015-04-05 17:39 ` Cyril Roelandt
  2015-04-05 20:07   ` David Thompson
  0 siblings, 1 reply; 7+ messages in thread
From: Cyril Roelandt @ 2015-04-05 17:39 UTC (permalink / raw)
  To: guix-devel

On 04/05/2015 03:40 PM, David Thompson wrote:
> Our Python package uses version 3.3.5, but 3.4.3 is the latest stable
> release.  Shall we upgrade (in core-updates), or is this choice
> deliberate?
> 

Updating to 3.4.x should not break anything, so please go ahead!

Cyril.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Update Python to 3.4.3?
  2015-04-05 17:39 ` Cyril Roelandt
@ 2015-04-05 20:07   ` David Thompson
  2015-04-09 21:39     ` [PATCH] python: Update to 3.4.3 Cyril Roelandt
  0 siblings, 1 reply; 7+ messages in thread
From: David Thompson @ 2015-04-05 20:07 UTC (permalink / raw)
  To: Cyril Roelandt, guix-devel

Cyril Roelandt <tipecaml@gmail.com> writes:

> On 04/05/2015 03:40 PM, David Thompson wrote:
>> Our Python package uses version 3.3.5, but 3.4.3 is the latest stable
>> release.  Shall we upgrade (in core-updates), or is this choice
>> deliberate?
>> 
>
> Updating to 3.4.x should not break anything, so please go ahead!

None of the three patches in the recipe applied, and removing them lead
to a broken build.  I'll leave this task for someone that is more
familiar with Python than I am.

-- 
David Thompson
Web Developer - Free Software Foundation - http://fsf.org
GPG Key: 0FF1D807
Support the FSF: https://fsf.org/donate

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH] python: Update to 3.4.3
  2015-04-05 20:07   ` David Thompson
@ 2015-04-09 21:39     ` Cyril Roelandt
  2015-04-09 21:50       ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Cyril Roelandt @ 2015-04-09 21:39 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/python.scm (python): update from 3.3.5 to 3.4.3.
* gnu/packages/patches/python-fix-tests.patch: update the required test fixes.
* gnu/packages/patches/python-libffi-mips-n32-fix.patch: remove it...
* gnu-system.am (dist_patch_DATA): ... and do not reference it here.
---
 gnu-system.am                                      |  1 -
 gnu/packages/patches/python-fix-tests.patch        | 53 +++++++++++++++++++++-
 .../patches/python-libffi-mips-n32-fix.patch       | 21 ---------
 gnu/packages/python.scm                            |  5 +-
 4 files changed, 53 insertions(+), 27 deletions(-)
 delete mode 100644 gnu/packages/patches/python-libffi-mips-n32-fix.patch

diff --git a/gnu-system.am b/gnu-system.am
index d39d869..dc3210d 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -405,7 +405,6 @@ dist_patch_DATA =						\
   gnu/packages/patches/pybugz-encode-error.patch		\
   gnu/packages/patches/pybugz-stty.patch			\
   gnu/packages/patches/python-fix-tests.patch			\
-  gnu/packages/patches/python-libffi-mips-n32-fix.patch		\
   gnu/packages/patches/qt4-tests.patch				\
   gnu/packages/patches/ratpoison-shell.patch			\
   gnu/packages/patches/readline-link-ncurses.patch		\
diff --git a/gnu/packages/patches/python-fix-tests.patch b/gnu/packages/patches/python-fix-tests.patch
index 70e4aa0..82c1998 100644
--- a/gnu/packages/patches/python-fix-tests.patch
+++ b/gnu/packages/patches/python-fix-tests.patch
@@ -64,8 +64,8 @@ http://bugs.python.org/issue20868 .
      @unittest.skipUnless(support.is_resource_enabled('network'),
                           'network is not enabled')
      def test_idna(self):
---- Lib/test/test_multiprocessing.py	2014-04-06 23:12:27.575235000 +0200
-+++ Lib/test/test_multiprocessing.py	2014-04-06 23:13:04.827235000 +0200
+--- Lib/test/_test_multiprocessing.py	2014-04-06 23:12:27.575235000 +0200
++++ Lib/test/_test_multiprocessing.py	2014-04-06 23:13:04.827235000 +0200
 @@ -1016,6 +1016,7 @@
          if pid is not None:
              os.kill(pid, signal.SIGINT)
@@ -112,3 +112,52 @@ http://bugs.python.org/issue20868 .
      def test_issue_8959_a(self):
          from ctypes.util import find_library
          libc_path = find_library("c")
+--- Tools/scripts/run_tests.py.orig	2015-04-06 03:52:17.484000000 +0200
++++ Tools/scripts/run_tests.py	2015-04-06 03:52:25.880000000 +0200
+@@ -47,7 +47,7 @@
+     if threading and not any(is_multiprocess_flag(arg) for arg in regrtest_args):
+         args.extend(['-j', '0'])  # Use all CPU cores
+     if not any(is_resource_use_flag(arg) for arg in regrtest_args):
+-        args.extend(['-u', 'all,-largefile,-audio,-gui'])
++        args.extend(['-u', 'all,-largefile,-audio,-gui,-network'])
+     args.extend(regrtest_args)
+     print(' '.join(args))
+     os.execv(sys.executable, args)
+--- Lib/distutils/tests/test_archive_util.py.orig	2015-04-06 04:08:49.288000000 +0200
++++ Lib/distutils/tests/test_archive_util.py	2015-04-06 04:09:34.396000000 +0200
+@@ -282,6 +282,7 @@
+         finally:
+             del ARCHIVE_FORMATS['xxx']
+
++    @unittest.skipIf(True, "getgrgid(0)[0] raises a KeyError on Guix")
+     def test_make_archive_owner_group(self):
+         # testing make_archive with owner and group, with various combinations
+         # this works even if there's not gid/uid support
+@@ -310,6 +311,7 @@
+
+     @unittest.skipUnless(ZLIB_SUPPORT, "Requires zlib")
+     @unittest.skipUnless(UID_GID_SUPPORT, "Requires grp and pwd support")
++    @unittest.skipIf(True, "getgrgid(0)[0] raises a KeyError on Guix")
+     def test_tarfile_root_owner(self):
+         tmpdir, tmpdir2, base_name =  self._create_files()
+         old_dir = os.getcwd()
+--- Lib/distutils/tests/test_sdist.py.orig	2015-04-06 04:10:05.264000000 +0200
++++ Lib/distutils/tests/test_sdist.py	2015-04-06 04:10:21.448000000 +0200
+@@ -435,6 +435,7 @@
+                      "The tar command is not found")
+     @unittest.skipIf(find_executable('gzip') is None,
+                      "The gzip command is not found")
++    @unittest.skipIf(True, "getgrgid(0)[0] raises a KeyError on Guix")
+     def test_make_distribution_owner_group(self):
+         # now building a sdist
+         dist, cmd = self.get_cmd()
+--- Lib/test/test_resource.py.orig	2015-04-06 21:30:24.708000000 +0200
++++ Lib/test/test_resource.py	2015-04-06 23:07:27.220000000 +0200
+@@ -146,6 +146,7 @@
+
+     @unittest.skipUnless(hasattr(resource, 'prlimit'), 'no prlimit')
+     @support.requires_linux_version(2, 6, 36)
++    @unittest.skipIf(True, "Bug: the PermissionError is not raised")
+     def test_prlimit(self):
+         self.assertRaises(TypeError, resource.prlimit)
+         if os.geteuid() != 0:
diff --git a/gnu/packages/patches/python-libffi-mips-n32-fix.patch b/gnu/packages/patches/python-libffi-mips-n32-fix.patch
deleted file mode 100644
index 3938837..0000000
--- a/gnu/packages/patches/python-libffi-mips-n32-fix.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-Fix handling of uint32_t arguments on the MIPS N32 ABI.
-
-Patch by Mark H Weaver <mhw@netris.org>.
-
---- Modules/_ctypes/libffi/src/mips/ffi.c.orig	2013-03-16 07:19:39.000000000 -0400
-+++ Modules/_ctypes/libffi/src/mips/ffi.c	2013-10-22 01:11:03.111985247 -0400
-@@ -170,7 +170,14 @@
- 		break;
- 		  
- 	      case FFI_TYPE_UINT32:
-+#ifdef FFI_MIPS_N32
-+		/* The N32 ABI requires that 32-bit integers
-+		   be sign-extended to 64-bits, regardless of
-+		   whether they are signed or unsigned. */
-+		*(ffi_arg *)argp = *(SINT32 *)(* p_argv);
-+#else
- 		*(ffi_arg *)argp = *(UINT32 *)(* p_argv);
-+#endif
- 		break;
- 
- 	      /* This can only happen with 64bit slots.  */
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 3786604..a30e42f 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -192,13 +192,12 @@ data types.")
 
 (define-public python
   (package (inherit python-2)
-    (version "3.3.5")
+    (version "3.4.3")
     (source (origin
               (method url-fetch)
               (uri (string-append "https://www.python.org/ftp/python/"
                                   version "/Python-" version ".tar.xz"))
-              (patches (list (search-patch "python-fix-tests.patch")
-                             (search-patch "python-libffi-mips-n32-fix.patch")))
+              (patches (list (search-patch "python-fix-tests.patch")))
               (patch-flags '("-p0"))
               (sha256
                (base32
-- 
1.8.4.rc3

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] python: Update to 3.4.3
  2015-04-09 21:39     ` [PATCH] python: Update to 3.4.3 Cyril Roelandt
@ 2015-04-09 21:50       ` Ludovic Courtès
  2015-04-09 22:23         ` Cyril Roelandt
  2015-04-09 22:28         ` Cyril Roelandt
  0 siblings, 2 replies; 7+ messages in thread
From: Ludovic Courtès @ 2015-04-09 21:50 UTC (permalink / raw)
  To: Cyril Roelandt; +Cc: guix-devel

Cyril Roelandt <tipecaml@gmail.com> skribis:

> * gnu/packages/python.scm (python): update from 3.3.5 to 3.4.3.
> * gnu/packages/patches/python-fix-tests.patch: update the required test fixes.
> * gnu/packages/patches/python-libffi-mips-n32-fix.patch: remove it...
> * gnu-system.am (dist_patch_DATA): ... and do not reference it here.

Please capitalize sentences.

OK for ‘core-updates’, thanks for taking care of it!

Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] python: Update to 3.4.3
  2015-04-09 21:50       ` Ludovic Courtès
@ 2015-04-09 22:23         ` Cyril Roelandt
  2015-04-09 22:28         ` Cyril Roelandt
  1 sibling, 0 replies; 7+ messages in thread
From: Cyril Roelandt @ 2015-04-09 22:23 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

On 04/09/2015 11:50 PM, Ludovic Courtès wrote:
> Cyril Roelandt <tipecaml@gmail.com> skribis:
> 
>> * gnu/packages/python.scm (python): update from 3.3.5 to 3.4.3.
>> * gnu/packages/patches/python-fix-tests.patch: update the required test fixes.
>> * gnu/packages/patches/python-libffi-mips-n32-fix.patch: remove it...
>> * gnu-system.am (dist_patch_DATA): ... and do not reference it here.
> 
> Please capitalize sentences.
> 
> OK for ‘core-updates’, thanks for taking care of it!
> 

Done in 08c045091e8d8da3b4c677540ed577e8f2448b0d, with an update of the
hash as well :)

Cyril.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] python: Update to 3.4.3
  2015-04-09 21:50       ` Ludovic Courtès
  2015-04-09 22:23         ` Cyril Roelandt
@ 2015-04-09 22:28         ` Cyril Roelandt
  1 sibling, 0 replies; 7+ messages in thread
From: Cyril Roelandt @ 2015-04-09 22:28 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

On 04/09/2015 11:50 PM, Ludovic Courtès wrote:
> Cyril Roelandt <tipecaml@gmail.com> skribis:
> 
>> * gnu/packages/python.scm (python): update from 3.3.5 to 3.4.3.
>> * gnu/packages/patches/python-fix-tests.patch: update the required test fixes.
>> * gnu/packages/patches/python-libffi-mips-n32-fix.patch: remove it...
>> * gnu-system.am (dist_patch_DATA): ... and do not reference it here.
> 
> Please capitalize sentences.
> 
> OK for ‘core-updates’, thanks for taking care of it!
> 


Done in 08c045091e8d8da3b4c677540ed577e8f2448b0d .

Cyril.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-04-09 22:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-05 13:40 Update Python to 3.4.3? David Thompson
2015-04-05 17:39 ` Cyril Roelandt
2015-04-05 20:07   ` David Thompson
2015-04-09 21:39     ` [PATCH] python: Update to 3.4.3 Cyril Roelandt
2015-04-09 21:50       ` Ludovic Courtès
2015-04-09 22:23         ` Cyril Roelandt
2015-04-09 22:28         ` Cyril Roelandt

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).