Skip to content

Commit

Permalink
Python 2.7.11 -> 2.7.12
Browse files Browse the repository at this point in the history
  • Loading branch information
FRidh committed Jul 19, 2016
1 parent 1c39145 commit b49bedd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/interpreters/python/2.7/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ with stdenv.lib;

let
majorVersion = "2.7";
version = "${majorVersion}.11";
version = "${majorVersion}.12";

src = fetchurl {
url = "http://www.python.org/ftp/python/${version}/Python-${version}.tar.xz";
sha256 = "0iiz844riiznsyhhyy962710pz228gmhv8qi3yk4w4jhmx2lqawn";
sha256 = "0y7rl603vmwlxm6ilkhc51rx2mfj14ckcz40xxgs0ljnvlhp30yp";
};

patches =
Expand Down
20 changes: 11 additions & 9 deletions pkgs/development/interpreters/python/2.7/no-ldconfig.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
diff -ru -x '*~' Python-2.7.11-orig/Lib/ctypes/util.py Python-2.7.11/Lib/ctypes/util.py
--- Python-2.7.11-orig/Lib/ctypes/util.py 2015-12-05 20:46:56.000000000 +0100
+++ Python-2.7.11/Lib/ctypes/util.py 2016-07-01 14:24:50.714223450 +0200
@@ -212,31 +212,7 @@
diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py
index b2c514d..a6eca81 100644
--- a/Lib/ctypes/util.py
+++ b/Lib/ctypes/util.py
@@ -207,31 +207,7 @@ elif os.name == "posix":
else:

def _findSoname_ldconfig(name):
Expand All @@ -21,7 +22,7 @@ diff -ru -x '*~' Python-2.7.11-orig/Lib/ctypes/util.py Python-2.7.11/Lib/ctypes/
-
- # XXX assuming GLIBC's ldconfig (with option -p)
- expr = r'\s+(lib%s\.[^\s]+)\s+\(%s' % (re.escape(name), abi_type)
- f = os.popen('/sbin/ldconfig -p 2>/dev/null')
- f = os.popen('LC_ALL=C LANG=C /sbin/ldconfig -p 2>/dev/null')
- try:
- data = f.read()
- finally:
Expand All @@ -34,10 +35,11 @@ diff -ru -x '*~' Python-2.7.11-orig/Lib/ctypes/util.py Python-2.7.11/Lib/ctypes/

def find_library(name):
return _findSoname_ldconfig(name) or _get_soname(_findLib_gcc(name))
diff -ru -x '*~' Python-2.7.11-orig/Lib/uuid.py Python-2.7.11/Lib/uuid.py
--- Python-2.7.11-orig/Lib/uuid.py 2015-12-05 20:47:09.000000000 +0100
+++ Python-2.7.11/Lib/uuid.py 2016-07-01 14:33:14.360446897 +0200
@@ -437,57 +437,7 @@
diff --git a/Lib/uuid.py b/Lib/uuid.py
index 7432032..9829d18 100644
--- a/Lib/uuid.py
+++ b/Lib/uuid.py
@@ -437,57 +437,7 @@ def _netbios_getnode():
return ((bytes[0]<<40L) + (bytes[1]<<32L) + (bytes[2]<<24L) +
(bytes[3]<<16L) + (bytes[4]<<8L) + bytes[5])

Expand Down

5 comments on commit b49bedd

@copumpkin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For future reference, even a minor python update causes a full rebuild on darwin

@copumpkin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We really need better tooling that can warn us about that πŸ˜„

@FRidh
Copy link
Member Author

@FRidh FRidh commented on b49bedd Jul 19, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or more mini's! :)

@LnL7
Copy link
Member

@LnL7 LnL7 commented on b49bedd Jul 19, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only one of them seems to work at the moment πŸ™

http://hydra.nixos.org/build/37814462

@copumpkin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rbvermaa @edolstra are the Macs healthy?

Please sign in to comment.