diff options
author | Domen Kožar <domen@dev.si> | 2016-01-11 20:40:49 +0100 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2016-01-11 20:42:00 +0100 |
commit | 5c2c881c5769afe83640d7df80ecc7da6f33017c (patch) | |
tree | 3ba3fb2c28015fbef5d30472ae456576d741ac1b /pkgs | |
parent | da698fd9da2b15ef8f0189afc4ce25e5171b244d (diff) | |
download | nixlib-5c2c881c5769afe83640d7df80ecc7da6f33017c.tar nixlib-5c2c881c5769afe83640d7df80ecc7da6f33017c.tar.gz nixlib-5c2c881c5769afe83640d7df80ecc7da6f33017c.tar.bz2 nixlib-5c2c881c5769afe83640d7df80ecc7da6f33017c.tar.lz nixlib-5c2c881c5769afe83640d7df80ecc7da6f33017c.tar.xz nixlib-5c2c881c5769afe83640d7df80ecc7da6f33017c.tar.zst nixlib-5c2c881c5769afe83640d7df80ecc7da6f33017c.zip |
pypy: parallel build improvements, remove some patching
incorporates http://paste.pound-python.org/show/oFyMaSSzvb07lenWYmAK/ from NixCon sprints
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/interpreters/pypy/default.nix | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/pkgs/development/interpreters/pypy/default.nix b/pkgs/development/interpreters/pypy/default.nix index 1edda33a1ae9..8abc1ac489cd 100644 --- a/pkgs/development/interpreters/pypy/default.nix +++ b/pkgs/development/interpreters/pypy/default.nix @@ -31,16 +31,6 @@ let (stdenv.lib.filter (x : x.outPath != stdenv.cc.libc.outPath or "") buildInputs)); preConfigure = '' - substituteInPlace Makefile \ - --replace "-Ojit" "-Ojit --batch" \ - --replace "pypy/goal/targetpypystandalone.py" "pypy/goal/targetpypystandalone.py --withmod-_minimal_curses --withmod-unicodedata --withmod-thread --withmod-bz2 --withmod-_multiprocessing" - - # we are using cpython and not pypy to do translation - substituteInPlace rpython/bin/rpython \ - --replace "/usr/bin/env pypy" "${pythonFull}/bin/python" - substituteInPlace pypy/goal/targetpypystandalone.py \ - --replace "/usr/bin/env pypy" "${pythonFull}/bin/python" - # hint pypy to find nix ncurses substituteInPlace pypy/module/_minimal_curses/fficurses.py \ --replace "/usr/include/ncurses/curses.h" "${ncurses}/include/curses.h" \ @@ -57,6 +47,10 @@ let sed -i "s@libraries=\['sqlite3'\]\$@libraries=['sqlite3'], include_dirs=['${sqlite}/include'], library_dirs=['${sqlite}/lib']@" lib_pypy/_sqlite3_build.py ''; + buildPhase = '' + ${pythonFull.interpreter} rpython/bin/rpython --make-jobs="$NIX_BUILD_CORES" -Ojit --batch pypy/goal/targetpypystandalone.py --withmod-_minimal_curses --withmod-unicodedata --withmod-thread --withmod-bz2 --withmod-_multiprocessing + ''; + setupHook = ./setup-hook.sh; postBuild = '' |