make setup.py work with `conda` installed libs
This MR ensures that kwant
is immediately pip installable (without build.conf
) with either apt-get
installed packages or conda
installed libraries.
It works both on a Mac and Linux.
This also means that the conda-forge/kwant-feedstock
recipe can be simplified, as we won't need a build.conf
file anymore.
Test with
docker run -it jupyter/scipy-notebook bash
conda install --yes -c conda-forge mumps gcc numpy scipy cython # deps of kwant
conda install --yes git pytest # for installing
pip install git+https://gitlab.kwant-project.org/kwant/tinyarray.git@master
git clone https://gitlab.kwant-project.org/basnijholt/kwant.git
cd kwant; git checkout patch-4
python setup.py build
pip install .