[Nix-dev] Problem with python distutils

Andreas Herrmann andreash87 at gmx.ch
Thu Jul 3 10:01:32 CEST 2014


Dear Mateusz,

Good point, I had just copied that from some other package.
It also works with `configurePhase = "";`.

Best, Andreas


On 3 July 2014 04:10, Mateusz Kowalczyk <fuuzetsu at fuuzetsu.co.uk> wrote:

> On 07/02/2014 01:45 PM, Andreas Herrmann wrote:
> > Hi,
> >
> > I found a work-around. The trick is to not use setuptools.
> > This can be achieved by setting `configurePhase=":";`. The installPhase
> > needs to be fixed as well.
> >
> >   installPhase = ''
> >     mkdir -p "$out/lib/${python.libPrefix}/site-packages"
> >     export
> > PYTHONPATH="$out/lib/${python.libPrefix}/site-packages:$PYTHONPATH"
> >
> >     ${python}/bin/${python.executable} setup.py install \
> >       --install-lib=$out/lib/${python.libPrefix}/site-packages \
> >       --prefix="$out"
> >   '';
> >
> > Then it builds just fine.
> >
> > Is that the best way to deal with this issue, or is there a better way?
> >
> > Best, Andreas
> >
> >
> >
> > _______________________________________________
> > nix-dev mailing list
> > nix-dev at lists.science.uu.nl
> > http://lists.science.uu.nl/mailman/listinfo/nix-dev
> >
>
> Why configurePhase=":" and not "" (just empty string)?
>
> --
> Mateusz K.
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140703/905d7a3e/attachment.html 


More information about the nix-dev mailing list