Skip to content

Commit 15688af

Browse files
committed
Install frontends as data files similar to roundup.cgi
Looks like the wsgi.py and ZRoundup files were never installed. Instal them under frontends parallel to the cgi-bin directory used for roundup.cgi. This may end up at: <prefix>/share/roundup/frontends /<install dir>/lib/python3.6/site-packages/usr/share/roundup/frontends /<install dir>/lib/python3.6/site-packages/<install dir>/share/roundup/frontends depending on install method and local python config.
1 parent 28c2392 commit 15688af

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

setup.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,19 @@ def main():
115115
# build list of scripts from their implementation modules
116116
scripts = [mapscript(f) for f in glob('roundup/scripts/[!_]*.py')]
117117

118+
# build list of zope files/directories
119+
Zope = {}
120+
Zope['module'] = [f for f in glob('frontends/ZRoundup/*.py')]
121+
Zope['module'].append('frontends/ZRoundup/refresh.txt');
122+
Zope['icons'] = [f for f in glob('frontends/ZRoundupscripts/*.gif')]
123+
Zope['dtml'] = [f for f in glob('frontends/ZRoundupscripts/*.dtml')]
124+
118125
data_files = [
119126
('share/roundup/cgi-bin', ['frontends/roundup.cgi']),
127+
('share/roundup/frontends', ['frontends/wsgi.py']),
128+
('share/roundup/frontends/Zope', Zope['module']),
129+
('share/roundup/frontends/Zope/icons', Zope['icons']),
130+
('share/roundup/frontends/Zope/dtml', Zope['dtml'])
120131
]
121132
# install man pages on POSIX platforms
122133
if os.name == 'posix':

0 commit comments

Comments
 (0)