Mercurial > p > roundup > code
comparison setup.py @ 133:4377732e04bb
Make sure that the htmlbase is up-to-date when we build a source dist.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sun, 29 Jul 2001 09:43:46 +0000 |
| parents | 614bbffe063c |
| children | 79bc5f0a0dde |
comparison
equal
deleted
inserted
replaced
| 132:b7c99b997080 | 133:4377732e04bb |
|---|---|
| 1 #! /usr/bin/env python | 1 #! /usr/bin/env python |
| 2 # $Id: setup.py,v 1.7 2001-07-29 08:37:58 richard Exp $ | 2 # $Id: setup.py,v 1.8 2001-07-29 09:43:46 richard Exp $ |
| 3 | 3 |
| 4 from distutils.core import setup, Extension | 4 from distutils.core import setup, Extension |
| 5 from distutils.util import get_platform | 5 from distutils.util import get_platform |
| 6 | 6 |
| 7 from glob import glob | 7 from glob import glob |
| 8 import os | 8 import os |
| 9 from roundup.templatebuilder import makeHtmlBase | |
| 9 | 10 |
| 10 templates = 'classic', 'extended' | 11 templates = 'classic', 'extended' |
| 11 packagelist = [ 'roundup', 'roundup.backends', 'roundup.templates' ] | 12 packagelist = [ 'roundup', 'roundup.backends', 'roundup.templates' ] |
| 12 installdatafiles = [] | 13 installdatafiles = [] |
| 13 | 14 |
| 14 for t in templates: | 15 for t in templates: |
| 16 makeHtmlBase(os.path.join('roundup', 'templates', t)) | |
| 15 packagelist.append('roundup.templates.%s'%t) | 17 packagelist.append('roundup.templates.%s'%t) |
| 16 packagelist.append('roundup.templates.%s.detectors'%t) | 18 packagelist.append('roundup.templates.%s.detectors'%t) |
| 17 tfiles = glob(os.path.join('roundup','templates', t, 'html', '*')) | 19 tfiles = glob(os.path.join('roundup','templates', t, 'html', '*')) |
| 18 tfiles = filter(os.path.isfile, tfiles) | 20 tfiles = filter(os.path.isfile, tfiles) |
| 19 | 21 |
| 28 scripts = ['roundup-admin', 'roundup-mailgw', 'roundup-server'] | 30 scripts = ['roundup-admin', 'roundup-mailgw', 'roundup-server'] |
| 29 ) | 31 ) |
| 30 | 32 |
| 31 # | 33 # |
| 32 # $Log: not supported by cvs2svn $ | 34 # $Log: not supported by cvs2svn $ |
| 35 # Revision 1.7 2001/07/29 08:37:58 richard | |
| 36 # changes | |
| 37 # | |
| 33 # Revision 1.6 2001/07/29 07:01:39 richard | 38 # Revision 1.6 2001/07/29 07:01:39 richard |
| 34 # Added vim command to all source so that we don't get no steenkin' tabs :) | 39 # Added vim command to all source so that we don't get no steenkin' tabs :) |
| 35 # | 40 # |
| 36 # Revision 1.5 2001/07/28 00:39:18 richard | 41 # Revision 1.5 2001/07/28 00:39:18 richard |
| 37 # changes for the 0.2.1 distribution build. | 42 # changes for the 0.2.1 distribution build. |
