From: Jonathan G. <gu...@ni...> - 2013-06-03 17:17:07
|
On May 3, 2013, at 10:15 AM, Jonathan Guyer <gu...@ni...> wrote: > I am attempting to > > pip install git+git://pysparse.git.sourceforge.net/gitroot/pysparse/pysparse#egg=pysparse > > into a homebrew environment under Mac OS X Mountain Lion. (`pip install pysparse` is no better). > > > I get three errors: I can now successfully pip install from the git repository. I was actually able to get it working a few days after I posted by using: CFLAGS="" pip install git+git://pysparse.git.sourceforge.net/gitroot/pysparse/pysparse#egg=pysparse This issue (at the time) was that some of the headers from suite-sparse were being found instead of the ones included with pysparse. After several reconstructions of my Homebrew installation (for other reasons) I find I no longer need to pass `CFLAGS=""`. I don't know why it used to be necessary and now is not. ---- What does *not* work is pip install pysparse which raises cc: pysparse/sparse/src/spmatrixmodule.c pysparse/sparse/src/spmatrixmodule.c:4:10: fatal error: 'spmatrix.h' file not found #include "spmatrix.h" The tarball at https://pypi.python.org/pypi/pysparse is incomplete (missing pysparse/includes is the one that raises the errors, but there is a bunch of other stuff missing) and the tarball does not seem to correspond to any revision in the git repository, e.g., pysparse/direct/setup.py has a number of uses of os.path.join(cwd,... that do not appear (specifically the inclusion of `cwd` in the join) anywhere in the git history. |