[Nix-dev] Problem with python distutils
Mateusz Kowalczyk
fuuzetsu at fuuzetsu.co.uk
Thu Jul 3 04:10:03 CEST 2014
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.
More information about the nix-dev
mailing list