[Nix-dev] Problem with python distutils

Andreas Herrmann andreash87 at gmx.ch
Wed Jul 2 13:45:39 CEST 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140702/343f1530/attachment.html 


More information about the nix-dev mailing list