summary refs log tree commit diff
path: root/pkgs/development/interpreters/python
diff options
context:
space:
mode:
authorJude Taylor <me@jude.bio>2015-11-03 13:59:39 -0800
committerJude Taylor <me@jude.bio>2015-11-03 14:00:51 -0800
commit58b862b750dbfe00bc3e935f5ac8857b2fd6a591 (patch)
tree469548cb58942ac9d94e3ff3f4d4df597c66c63e /pkgs/development/interpreters/python
parent95388b650095705d45b21ead44529c2a92bdb7c8 (diff)
downloadnixlib-58b862b750dbfe00bc3e935f5ac8857b2fd6a591.tar
nixlib-58b862b750dbfe00bc3e935f5ac8857b2fd6a591.tar.gz
nixlib-58b862b750dbfe00bc3e935f5ac8857b2fd6a591.tar.bz2
nixlib-58b862b750dbfe00bc3e935f5ac8857b2fd6a591.tar.lz
nixlib-58b862b750dbfe00bc3e935f5ac8857b2fd6a591.tar.xz
nixlib-58b862b750dbfe00bc3e935f5ac8857b2fd6a591.tar.zst
nixlib-58b862b750dbfe00bc3e935f5ac8857b2fd6a591.zip
darwin purity: pythonPackages.pandas
Diffstat (limited to 'pkgs/development/interpreters/python')
-rw-r--r--pkgs/development/interpreters/python/2.7/default.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/development/interpreters/python/2.7/default.nix b/pkgs/development/interpreters/python/2.7/default.nix
index 6f951bc28370..e08fde3c8bfc 100644
--- a/pkgs/development/interpreters/python/2.7/default.nix
+++ b/pkgs/development/interpreters/python/2.7/default.nix
@@ -68,6 +68,8 @@ let
       done
     '' + optionalString stdenv.isDarwin ''
       substituteInPlace configure --replace '`/usr/bin/arch`' '"i386"'
+      substituteInPlace Lib/multiprocessing/__init__.py \
+        --replace 'os.popen(comm)' 'os.popen("nproc")'
     '';
 
   configureFlags = [
@@ -95,11 +97,7 @@ let
         ] ++ optionals x11Support [ tcl tk xlibsWrapper libX11 ]
     )
     ++ optional zlibSupport zlib
-
-    # depend on CF and configd only if purity is an issue
-    # the impure bootstrap compiler can't build CoreFoundation currently. it requires
-    # <mach-o/dyld.h> which is in our pure bootstrapTools, but not in the system headers.
-    ++ optionals (stdenv.isDarwin && !stdenv.cc.nativeLibc) [ CF configd ];
+    ++ optionals stdenv.isDarwin [ CF configd ];
 
   # Build the basic Python interpreter without modules that have
   # external dependencies.