summaryrefslogtreecommitdiff
path: root/graphics/py-graph-dot/files/patch-setup.py
diff options
context:
space:
mode:
authorYi-Jheng Lin <yzlin@FreeBSD.org>2010-05-12 13:39:30 +0000
committerYi-Jheng Lin <yzlin@FreeBSD.org>2010-05-12 13:39:30 +0000
commit7eb81e0db9b476cf083e4ab4e26ab550b9eca671 (patch)
treed9549ccedd4fdac5e7fa855e8a47150447f5c945 /graphics/py-graph-dot/files/patch-setup.py
parentFix LATEST_LINK (diff)
- Update to 1.7.0
Approved by: lwhsu/rafan (mentors)
Diffstat (limited to 'graphics/py-graph-dot/files/patch-setup.py')
-rw-r--r--graphics/py-graph-dot/files/patch-setup.py21
1 files changed, 11 insertions, 10 deletions
diff --git a/graphics/py-graph-dot/files/patch-setup.py b/graphics/py-graph-dot/files/patch-setup.py
index 89d543f758fd..f3ccd4e373d6 100644
--- a/graphics/py-graph-dot/files/patch-setup.py
+++ b/graphics/py-graph-dot/files/patch-setup.py
@@ -1,26 +1,27 @@
+
+$FreeBSD$
+
--- setup.py.orig
+++ setup.py
@@ -4,12 +4,7 @@
import os
- import logging
+
-try:
- from setuptools import setup, find_packages
--except ImportError, ie:
+-except ImportError as ie:
- import ez_setup
- ez_setup.use_setuptools()
- from setuptools import setup, find_packages
+from setuptools import setup, find_packages
# Startup
- appname = "python-graph"
-@@ -40,9 +35,6 @@
- name = appname,
+ appname = "python-graph-dot"
+@@ -20,7 +15,6 @@
version = appversion,
- packages = ['pygraph', 'pygraph.algorithms', 'pygraph.algorithms.filters', 'pygraph.algorithms.heuristics', 'pygraph.classes', 'pygraph.readwrite'],
-- data_files = [(docsdir,docsfiles),
-- (datadir,datafiles)],
-- install_requires = ['pydot'],
+ namespace_packages = ["pygraph"],
+ packages = ["pygraph"] + [ os.path.join("pygraph", a) for a in find_packages("pygraph") ],
+- install_requires = [ 'python-graph-core==%s' % appversion, 'pydot' ],
author = "Pedro Matiello",
author_email = "pmatiello@gmail.com",
- description = "A library for working with graphs in Python",
+ description = "DOT support for python-graph",