[Nix-dev] "Disallowed host" while building Python packages?
Jeffrey David Johnson
jefdaj at gmail.com
Mon Feb 16 22:13:31 CET 2015
Nevermind, of course that would be how it works because input hashes and all. Thanks! I probably should have gone to bed and come back to it in the morning.
Semi-related: if I generate some packages with python2nix do they go in pkgs/top-level/python-packages.nix or pkgs/top-level/python-packages-generated.nix? They're formatted just like the non-generated ones so I'm thinking "generated" means some other process?
Jeff
On Mon, 16 Feb 2015 09:30:16 +0100
Rok Garbas <rok at garbas.si> wrote:
> Quoting Jeffrey David Johnson (2015-02-16 04:56:35)
> > I've had this happen a couple times now when trying to build Python packages. An error like:
> >
> > Searching for paste
> > Note: Bypassing https://pypi.python.org/simple/paste/ (disallowed host; see http://bit.ly/1dg9ijs for details).
> > Couldn't find index page for 'paste' (maybe misspelled?)
> > Scanning index of all packages (this may take a while)
> > Note: Bypassing https://pypi.python.org/simple/ (disallowed host; see http://bit.ly/1dg9ijs for details).
> > No local packages or download links found for paste
> > error: Could not find suitable distribution for Requirement.parse('paste')
> >
> > According to <http://bit.ly/1dg9ijs> you're supposed to make a setup.cfg file with contents like:
> >
> > [easy_install]
> > allow_hosts = *.python.org
> >
> > Is there a Nix equivalent?
>
> hi jeff,
>
> in nix setuptools is not allowed to download during installation. you need to
> package Paste and add it to buildInputs/propagatedBuildInputs list.
>
> while this sounds like a pain, you only need to do this once and benefits (at
> least for me) outweights the packaging pain.
>
>
>
> --
> Rok Garbas - http://www.garbas.si
More information about the nix-dev
mailing list