witten
/
luminotes
Archived
1
0
Fork 0
This repository has been archived on 2023-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
luminotes/setup.py

50 lines
1.1 KiB
Python
Raw Normal View History

import sys
from glob import glob
from distutils.core import setup, Distribution
2008-08-21 21:58:36 +00:00
try:
import py2exe
except ImportError:
pass
def files( path ):
if sys.platform.startswith( "win" ):
path = path.replace( "/", "\\" )
return glob( path )
class Luminotes( Distribution ):
def __init__( self, attrs ):
self.ctypes_com_server = []
2008-08-21 21:58:36 +00:00
self.com_server = []
self.services = []
self.windows = []
self.service = []
self.isapi = []
self.console = [ "luminotes.py" ]
2008-08-21 21:58:36 +00:00
self.zipfile = "luminotes.zip"
Distribution.__init__( self, attrs )
setup(
distclass = Luminotes,
data_files = [
( "", [ "luminotes.db", ] ),
( "static/css", files( "static/css/*.*" ) ),
( "static/html", files( "static/css/html/*.*" ) ),
( "static/images", files( "static/images/*.*" ) ),
( "static/images/toolbar", files( "static/images/toolbar/*.*" ) ),
( "static/images/toolbar/small", files( "static/images/toolbar/small/*.*" ) ),
( "static/js", files( "static/js/*.*" ) ),
( "files", [] ),
],
options = dict(
py2exe = dict(
packages = "cherrypy.filters",
includes = "email.header",
)
),
)