openbsd-ports/security/prelude/prewikka/patches/patch-setup_py
aanriot 746f97e1a5 - maintenance update to 0.9.12.1 .
- fix the paths in siteconfig.py .

ok jdixon@
2007-08-27 17:52:23 +00:00

33 lines
1.0 KiB
Plaintext

$OpenBSD: patch-setup_py,v 1.3 2007/08/27 17:52:23 aanriot Exp $
--- setup.py.orig Thu Aug 2 09:45:34 2007
+++ setup.py Sat Aug 25 21:30:19 2007
@@ -114,11 +114,6 @@ class my_build_py(build_py):
class MyDistribution(Distribution):
def __init__(self, attrs):
- try:
- os.remove("prewikka/siteconfig.py")
- except:
- pass
-
self.conf_files = [ ]
Distribution.__init__(self, attrs)
@@ -157,7 +152,7 @@ class my_install(install):
def finalize_options(self):
### if no prefix is given, configuration should go to /etc or in {prefix}/etc otherwise
if self.prefix:
- self.conf_prefix = self.prefix + "/etc/prewikka"
+ self.conf_prefix = self.prefix + "/share/prewikka/conf"
else:
self.conf_prefix = "/etc/prewikka"
@@ -183,7 +178,6 @@ class my_install(install):
def run(self):
os.umask(022)
self.install_conf()
- self.init_siteconfig()
install.run(self)
for dir in ("/",