Hi, 

I agree with Maksim the compilation step of "graph-tool » quite tedious (especially for Windows and OSX users). Maybe Binstar (https://binstar.org/) could provide an alternative solution to the shipping problem, sending both python code with its binaries dependencies (pre-compiled binaries such as Boost, CGAL, etc). I have tried to build « graph-tool » for Mac OS, that seems to work fine except for « cairo  » library, which I didn’t succeed to build with the conda tool. However, Binstar offert a convenient way to install  code python with complex dependencies  such as graph-tool.

Best,  
Vincent
 
Le 18 févr. 2015 à 23:59, Tiago de Paula Peixoto <tiago@skewed.de> a écrit :

On 18.02.2015 16:42, maksimt wrote:
Is there any chance you could create a tutorial of how you made the python
interface to C++ code?

Yes, this is planned. I just need to find the time to write it down.

Also as far as I can tell this is the best graph library out there,
but it's relatively hard to install. As a result people like me are
using inferior libraries for algorithms and visualization. Do you
think you could work on making your library easier to install, or at
least providing more instructions? I work with both Windows and Mac OS
X, and I wasn't able to install your library on either.

graph-tool is harder to install than other libraries such as networkx
mainly because it is implemented in C++ and has C++ dependencies, such
as Boost.

Pure python code is easy to install everywhere. C++ libraries are easy
to install on systems which have built-in package management, such as
most GNU/Linux distros, but are complicated on windows and Mac OS. Mac
OS has third-party package management like macports and homebrew, which
makes things easier; however installing either system already requires
some effort. As is stated in the website, macports is the recommended
way to install the library on Mac OS, since it is the easiest.

On Mac OS and windows I simply see no way of making the installation
just as easy as typing "pip install graph-tool" because there is no way
to avoid installing Boost, CGAL, etc. The only alternative I see is to
provide pre-compiled binaries, but this is difficult since I don't even
have Mac OS or Windows installed anywhere.

Best,
Tiago

--
Tiago de Paula Peixoto <tiago@skewed.de>

_______________________________________________
graph-tool mailing list
graph-tool@skewed.de
http://lists.skewed.de/mailman/listinfo/graph-tool