New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python package build input executables not in PATH in development mode shell #59257
Comments
I downgraded my NixOS and now it works.
So I suppose there is some recent change that broke this? EDIT: Probably that version information is a bit misleading as I downgraded my system by setting the following in
If there's a better way to pin system-wide nixpkgs, I'd be happy to hear. This method didn't provide sha256 validation. |
Python packages now have let
pkgs = import <nixpkgs> {};
in pkgs.python3Packages.buildPythonPackage rec {
pname = "test";
version = "0.0.0";
src = ./.;
nativeBuildInputs = with pkgs; [ python3Packages.jupyterhub wget ];
propagatedBuildInputs = with pkgs.python3Packages; [ jupyterhub ];
doCheck = false;
} |
Correct. This seems to be a not-so-nice side-effect. |
It does make it more complex to use |
I tried to add jupyterlab or jupyterhub to nativeBuildInputs:
But I get the following warnings and the nix shell is totally broken:
Weird thing is that I have two machines with the same nixpkgs version but the other one gives these errors and the other one works just fine.. Any ideas what's wrong or is there some other way to add jupyterlab etc to PATH in nix shell? |
Using |
I thought we usually use one of buildInputs, nativeBuildInputs, propagatedBuildInputs or propagatedNativeBuildInputs?
…On 7 June 2019 16:20:55 WET, Jaakko Luttinen ***@***.***> wrote:
Using `depsBuildBuild` instead of `nativeBuildInputs` fixed that issue
for me.
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#59257 (comment)
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/propagating-runtime-dependencies-to-python-packages/20788/1 |
Issue description
Executables of build inputs aren't available in "development mode" nix shell for a Python package.
Steps to reproduce
I have a directory with the following two files only:
setup.py
:shell.nix
:I then run
nix-shell --pure
in this directory. In the nix shell, I have neitherjupyterhub
executable norwget
executable in PATH.I wrote
shell.nix
according to these instructions:https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/python.section.md#development-mode
The package indeed seems to be installed as
pip install -e
I suppose, but the executables of the build inputs aren't inPATH
in that shell.Technical details
The text was updated successfully, but these errors were encountered: