[IMP] packaging timestamp support
bzr revid: al@openerp.com-20111001135713-85akuaixth6ep1fz
This commit is contained in:
parent
dbb99ced9b
commit
78ddee02bf
|
@ -35,5 +35,6 @@ url = 'http://www.openerp.com'
|
||||||
author = 'OpenERP S.A.'
|
author = 'OpenERP S.A.'
|
||||||
author_email = 'info@openerp.com'
|
author_email = 'info@openerp.com'
|
||||||
license = 'AGPL-3'
|
license = 'AGPL-3'
|
||||||
|
timestamp = None
|
||||||
|
|
||||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||||
|
|
51
setup.py
51
setup.py
|
@ -23,33 +23,6 @@
|
||||||
import glob, os, re, setuptools, sys
|
import glob, os, re, setuptools, sys
|
||||||
from os.path import join, isfile
|
from os.path import join, isfile
|
||||||
|
|
||||||
execfile(join(os.path.dirname(__file__), 'openerp', 'release.py'))
|
|
||||||
|
|
||||||
py2exe_keywords = {}
|
|
||||||
if os.name == 'nt':
|
|
||||||
import py2exe
|
|
||||||
py2exe_keywords['console'] = [
|
|
||||||
{ "script": "openerp-server",
|
|
||||||
"icon_resources": [(1, join("pixmaps","openerp-icon.ico"))],
|
|
||||||
}]
|
|
||||||
py2exe_keywords['options'] = {
|
|
||||||
"py2exe": {
|
|
||||||
"skip_archive": 1,
|
|
||||||
"optimize": 2,
|
|
||||||
"dist_dir": 'dist',
|
|
||||||
"packages": [
|
|
||||||
"lxml", "lxml.builder", "lxml._elementpath", "lxml.etree",
|
|
||||||
"lxml.objectify", "decimal", "xml", "xml", "xml.dom", "xml.xpath",
|
|
||||||
"encodings", "dateutil", "pychart", "PIL", "pyparsing",
|
|
||||||
"pydot", "asyncore","asynchat", "reportlab", "vobject",
|
|
||||||
"HTMLParser", "select", "mako", "poplib",
|
|
||||||
"imaplib", "smtplib", "email", "yaml", "DAV",
|
|
||||||
"uuid", "commands", "openerp", "simplejson", "vatnumber"
|
|
||||||
],
|
|
||||||
"excludes" : ["Tkconstants","Tkinter","tcl"],
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# List all data files
|
# List all data files
|
||||||
def data():
|
def data():
|
||||||
files = []
|
files = []
|
||||||
|
@ -71,6 +44,28 @@ def gen_manifest():
|
||||||
file_list="\n".join(data())
|
file_list="\n".join(data())
|
||||||
open('MANIFEST','w').write(file_list)
|
open('MANIFEST','w').write(file_list)
|
||||||
|
|
||||||
|
def py2exe_options():
|
||||||
|
if os.name == 'nt':
|
||||||
|
import py2exe
|
||||||
|
return {
|
||||||
|
"console" : [ { "script": "openerp-server", "icon_resources": [(1, join("pixmaps","openerp-icon.ico"))], }],
|
||||||
|
'options' : {
|
||||||
|
"py2exe": {
|
||||||
|
"skip_archive": 1,
|
||||||
|
"optimize": 2,
|
||||||
|
"dist_dir": 'dist',
|
||||||
|
"packages": [ "DAV", "HTMLParser", "PIL", "asynchat", "asyncore", "commands", "dateutil", "decimal", "email", "encodings", "imaplib", "lxml", "lxml._elementpath", "lxml.builder", "lxml.etree", "lxml.objectify", "mako", "openerp", "poplib", "pychart", "pydot", "pyparsing", "reportlab", "select", "simplejson", "smtplib", "uuid", "vatnumber" "vobject", "xml", "xml", "xml.dom", "xml.xpath", "yaml", ],
|
||||||
|
"excludes" : ["Tkconstants","Tkinter","tcl"],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else:
|
||||||
|
return {}
|
||||||
|
|
||||||
|
execfile(join(os.path.dirname(__file__), 'openerp', 'release.py'))
|
||||||
|
if timestamp:
|
||||||
|
version = version + "-" + timestamp
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name = 'openerp',
|
name = 'openerp',
|
||||||
version = version,
|
version = version,
|
||||||
|
@ -111,6 +106,6 @@ setuptools.setup(
|
||||||
extras_require = {
|
extras_require = {
|
||||||
'SSL' : ['pyopenssl'],
|
'SSL' : ['pyopenssl'],
|
||||||
},
|
},
|
||||||
**py2exe_keywords
|
**py2exe_options()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue