Generalized the setup.py packaging a bit so it's not all py2exe-centric.
This commit is contained in:
parent
8d16312e47
commit
e8b13f7753
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python2.4
|
||||
#!/usr/bin/python
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import os
|
||||
import sys
|
||||
from glob import glob
|
||||
|
@ -200,18 +202,14 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
setup(
|
||||
name = "Luminotes",
|
||||
version = VERSION,
|
||||
author = "Dan Helfman",
|
||||
author_email = "support@luminotes.com",
|
||||
url = "http://luminotes.com",
|
||||
description = "personal wiki notebook",
|
||||
distclass = Luminotes,
|
||||
cmdclass = { "py2exe": Build_installer }, # override default py2exe class
|
||||
if "py2exe" in sys.argv[ 1: ]:
|
||||
txt_extension = ".txt"
|
||||
else:
|
||||
txt_extension = ""
|
||||
|
||||
data_files = [
|
||||
( "", [ "README.txt", ] ),
|
||||
( "", [ "COPYING.txt", ] ),
|
||||
( "", [ "README%s" % txt_extension, ] ),
|
||||
( "", [ "COPYING%s" % txt_extension, ] ),
|
||||
( "", [ "luminotes.db", ] ),
|
||||
( "static/css", files( "static/css/*.*" ) ),
|
||||
( "static/html", files( "static/html/*.*" ) ),
|
||||
|
@ -221,7 +219,25 @@ setup(
|
|||
( "static/js", files( "static/js/*.*" ) ),
|
||||
( "static/js", files( "static/js/*_LICENSE" ) ),
|
||||
( "files", files( "files/.empty" ) ),
|
||||
],
|
||||
]
|
||||
|
||||
package_data = { ".": sum( [ pair[ 1 ] for pair in data_files ], [] ) }
|
||||
|
||||
|
||||
setup(
|
||||
name = "Luminotes",
|
||||
version = VERSION,
|
||||
author = "Dan Helfman",
|
||||
author_email = "support@luminotes.com",
|
||||
url = "http://luminotes.com",
|
||||
description = "personal wiki notebook",
|
||||
distclass = Luminotes,
|
||||
cmdclass = { "py2exe": Build_installer }, # override default py2exe class
|
||||
scripts = [ "luminotes.py" ],
|
||||
packages = [ ".", "config", "controller", "model", "tools", "view" ],
|
||||
package_dir = { ".": "." },
|
||||
data_files = data_files, # for py2exe
|
||||
package_data = package_data, # for everything else
|
||||
options = dict(
|
||||
py2exe = dict(
|
||||
packages = "cherrypy.filters",
|
||||
|
|
Reference in New Issue