diff options
author | petef <petef@FreeBSD.org> | 2002-03-19 06:35:34 +0000 |
---|---|---|
committer | petef <petef@FreeBSD.org> | 2002-03-19 06:35:34 +0000 |
commit | e9540688b353cd96cfcc0d16f7ddfb7f5da4f05a (patch) | |
tree | d35e8df83ab203a5199977e296e4acccd297ce12 /graphics/py-graphviz/files | |
parent | ae3041359ba3d5f70096dcff4691a6e0cae09351 (diff) | |
download | FreeBSD-ports-e9540688b353cd96cfcc0d16f7ddfb7f5da4f05a.zip FreeBSD-ports-e9540688b353cd96cfcc0d16f7ddfb7f5da4f05a.tar.gz |
Add py-graphviz 0.1, python interface to GraphViz agraph.
PR: 33159
Submitted by: Hye-Shik Chang <perky@fallin.lv>
Diffstat (limited to 'graphics/py-graphviz/files')
-rw-r--r-- | graphics/py-graphviz/files/setup.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/graphics/py-graphviz/files/setup.py b/graphics/py-graphviz/files/setup.py new file mode 100644 index 0000000..8ffd3ce --- /dev/null +++ b/graphics/py-graphviz/files/setup.py @@ -0,0 +1,27 @@ +# $FreeBSD$ + +from distutils.core import setup, Extension + +VERSION = '"py-agraph 1.0"' +agraph_srcs = [ + 'apply.c', 'attr.c', 'edge.c', 'agerror.c', 'flatten.c', + 'grammar.c', 'graph.c', 'id.c', 'imap.c', 'io.c', 'mem.c', + 'node.c', 'obj.c', 'pend.c', 'rec.c', 'refstr.c', 'scan.c', + 'subg.c', 'utils.c', 'write.c' +] +cdt_srcs = [ + 'dtclose.c', 'dtdisc.c', 'dtflatten.c', 'dthash.c', 'dtmethod.c', + 'dtopen.c', 'dtsize.c', 'dtextract.c', 'dtrestore.c', 'dtlist.c', + 'dtstat.c', 'dttree.c', 'dtview.c', 'dtrenew.c', 'dtwalk.c', 'dtstrhash.c' +] +cdt_srcs = ['../cdt/'+f for f in cdt_srcs] + +setup(name = 'graphviz', + version = '0.1', + description = 'Python Interface to GraphViz', + author = 'Manos Renieris', + packages = ['graphviz'], + ext_modules = [Extension('graphviz.graphviz', ['gv_wrap.c'] + cdt_srcs + agraph_srcs, + include_dirs=['../cdt', '.'], + define_macros=[('ulong','u_long'), ('VERSION', VERSION)])] +) |