freebsd-ports/math/py-networkx/files/patch-setup.py
Li-Wen Hsu cd5f0925eb Add py-networkx 0.36, tools for complex network.
PR:		ports/124620
Submitted by:	dikshie <dikshie AT sfc.wide.ad.jp>
2008-06-15 21:16:01 +00:00

18 lines
777 B
Python

--- setup.py.orig 2007-12-22 03:44:22.000000000 +0800
+++ setup.py 2008-06-16 05:02:58.000000000 +0800
@@ -33,11 +33,11 @@
"networkx.tests.readwrite",
]
-docdirbase = 'share/doc/networkx-%s' % version
+docdirbase = '%%DOCSDIR%%'
data = [(docdirbase, glob("doc/*.txt")),
- (os.path.join(docdirbase, 'examples'),glob("doc/examples/*.py")),
- (os.path.join(docdirbase, 'examples'),glob("doc/examples/*.dat")),
- (os.path.join(docdirbase, 'examples'),glob("doc/examples/*.edges")),
+ ('%%EXAMPLESDIR%%',glob("doc/examples/*.py")),
+ ('%%EXAMPLESDIR%%',glob("doc/examples/*.dat")),
+ ('%%EXAMPLESDIR%%',glob("doc/examples/*.edges")),
(os.path.join(docdirbase, 'data'),glob("doc/data/*ls")),
]