Skip to content

Commit

Permalink
Python builds are now based on distutils, interfaces/python/test.py b…
Browse files Browse the repository at this point in the history
…roken!
  • Loading branch information
Tamas Nepusz committed Nov 3, 2006
1 parent 3010f66 commit 41084a3
Show file tree
Hide file tree
Showing 23 changed files with 370 additions and 30 deletions.
339 changes: 339 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include src/*.h
include igraph/*.h
MANIFEST.in
LICENSE
25 changes: 0 additions & 25 deletions Makefile.am

This file was deleted.

20 changes: 20 additions & 0 deletions package/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# IGraph library.
# Copyright (C) 2006 Gabor Csardi <csardi@rmki.kfki.hu>
# MTA RMKI, Konkoly-Thege Miklos st. 29-33, Budapest 1121, Hungary
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301 USA
from igraph._igraph import *
from igraph._igraph import __version__, __build_date__
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 7 additions & 5 deletions igraphmodule.c → src/igraphmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "edgeseqobject.h"
#include "edgeobject.h"
#include "bfsiter.h"
#include "config.h"

/**
* \defgroup python_interface Python module implementation
Expand Down Expand Up @@ -1028,9 +1029,7 @@ static PyMethodDef igraphmodule_methods[] =

extern PyObject* igraphmodule_InternalError;

PyMODINIT_FUNC
initigraph(void)
{
PyMODINIT_FUNC init_igraph(void) {
PyObject* m; ///< igraph module object

igraphmodule_VertexSeqType.tp_traverse = (traverseproc)igraphmodule_VertexSeq_traverse;
Expand Down Expand Up @@ -1060,7 +1059,7 @@ initigraph(void)

Py_INCREF(igraphmodule_InternalError);

m = Py_InitModule3("igraph", igraphmodule_methods,
m = Py_InitModule3("igraph._igraph", igraphmodule_methods,
"Python interface for the igraph library");

Py_INCREF(&igraphmodule_GraphType);
Expand Down Expand Up @@ -1098,7 +1097,10 @@ initigraph(void)
PyModule_AddIntConstant(m, "ADJ_PLUS", IGRAPH_ADJ_PLUS);
PyModule_AddIntConstant(m, "ADJ_UPPER", IGRAPH_ADJ_UPPER);
PyModule_AddIntConstant(m, "ADJ_LOWER", IGRAPH_ADJ_LOWER);


PyModule_AddStringConstant(m, "__version__", VERSION);
PyModule_AddStringConstant(m, "__build_date__", __DATE__);

/* initialize error, progress and interruption handler */
igraph_set_error_handler(igraphmodule_igraph_error_hook);
igraph_set_progress_handler(igraphmodule_igraph_progress_hook);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 41084a3

Please sign in to comment.