Installing graph-tool using pip

Hi,

I don't see a way to install graph-tool using pip. Port on Mac OS X is
not updated as frequently as pip. I'd recommend adding a way to
install graph-tool using pip. Right now, I see the following error.

/tmp$ pip install graph-tool
Downloading/unpacking graph-tool
  Downloading graph-tool-2.2.15.tar.bz2 (520Kb): 520Kb downloaded
  Running setup.py egg_info for package graph-tool
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
    IOError: [Errno 2] No such file or directory:
'/private/tmp/build/graph-tool/setup.py'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in <module>

IOError: [Errno 2] No such file or directory:
'/private/tmp/build/graph-tool/setup.py'

Neither pip nor easy_install are supported. Huge portions of graph-tool
are implemented in C++ and thus require compilation. Although it is
possible to use python's setuptools to compile packages in C/C++ as well
(numpy and scipy do this), I find that autotools provides a much more
comfortable and reliable approach, which is more likely to work in
different environments. I feel that porting things to setuptools would
be quite a pain.

Cheers,
Tiago

For Mac, is it possible to make a dmg for installation? (I don't have
any experience on making a dmg package). But this could help potential
users who want avoid compiling the package themselves (the requirement
on gcc 4.4 can be a deal breaker).

It should be possible to make binaries with macports:

    http://guide.macports.org/chunked/using.binaries.html

I'll investigate this possibility for future releases.

As for gcc 4.4, I don't see what is the big deal, since it corresponds
to the default apple compiler, AFAIK.

Cheers,
Tiago

It depends. For my machine, it is not true.

Which MacOS version do you have?

In any case, apple's GCC 4.4 is available in macports.

Cheers,
Tiago

As for gcc 4.4, I don't see what is the big deal, since it corresponds
to the default apple compiler, AFAIK.

It depends. For my machine, it is not true.

Which MacOS version do you have?

10.6.8

In any case, apple's GCC 4.4 is available in macports.

The GCC from macports is different from the native GCC (I remember
something like --arch is not available from the one in macports). It
is just a hassle to use macports GCC.

For Mac, is it possible to make a dmg for installation? (I don't have
any experience on making a dmg package). But this could help potential
users who want avoid compiling the package themselves (the requirement
on gcc 4.4 can be a deal breaker).

It should be possible to make binaries with macports:

3.4. Port Binaries

Hi Tiago,

Have you got a chance to create a dmg package? Thanks!