Closed
Conversation
Move Python interpreters (CPython, PyPy) to same folder and share layout.
0689cb5 to
bc806b7
Compare
Member
Author
|
$ nix-shell -E 'with import <nixpkgs> {}; (pkgs.pythonNew.cpython35.withPackages (ps: [ps.django])).env' -I nixpkgs=~/Code/libraries/nixpkgs
these derivations will be built:
/nix/store/sh46h5s4azs3x06hb72by2qs1ccp85y4-python3-3.5.1-env.drv
building path(s) ‘/nix/store/l520qidycrz8m7p1d40f6vmfd1048i66-python3-3.5.1-env’
collision between `/nix/store/7kxhz3g05w60vrg01jv8g1jbax7ffx5c-python3-3.5.1/bin/easy_install-3.5' and `/nix/store/8j34nkm96s19znxvj7bnbs9dhicki0gp-python3.5m-setuptools-19.4/bin/easy_install-3.5'
builder for ‘/nix/store/sh46h5s4azs3x06hb72by2qs1ccp85y4-python3-3.5.1-env.drv’ failed with exit code 25
error: build of ‘/nix/store/sh46h5s4azs3x06hb72by2qs1ccp85y4-python3-3.5.1-env.drv’ failed
/run/current-system/sw/bin/nix-shell: failed to build all dependencies@bennofs do you have any idea how I broke it here? |
Member
Author
|
I will continue with this further but will close it now since it can't be merged anyway in this state. |
7 tasks
FRidh
added a commit
to FRidh/nixpkgs
that referenced
this pull request
Dec 5, 2016
Use a fixed-point combinator for the Python package set to allow easier overriding of its contents. Earlier implementations were proposed in NixOS#16784 and NixOS#17428. This commit is by comparison much smaller and changes only what is needed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation for this change
Curious to see how we could use a fixed-point combinator like is done with Haskell. This should make it a lot easier when we have #16005 in. But, this is going to break a lot of code.
Notes:
pythonNew.cpython35.interpreterorpythonNew.cpython35.pkgs.pythonpythonNew.cpython35.interpreter, and thenpythonNew.cpython35toolzpackage:pythonNew.cpython35.pkgs.toolzpythonNew.cpython35.buildEnvorpythonNew.cpython35.withpackagesThings done
(nix.useChroot on NixOS,
or option
build-use-chrootinnix.confon non-NixOS)
nix-shell -p nox --run "nox-review wip"./result/bin/)This is mostly just an experiment. I think if we're going this direction we might have to find a way to keep the current route working.