Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

81 lines (74 sloc) 2.5 kB
# This section is DoxuGen information. More information on how to comment your code
# is available at http://wiki.bigbrotherbot.net/doku.php/customize:doxygen_rules
## @file
# The Windows binary package creator
import sys
import os
import glob
import re
from distutils.core import setup
import py2exe
from b3.pkg_handler import PkgResourcesStandIn
if len(sys.argv)==1:
sys.argv.append('py2exe')
def listdirectory(path):
def istocopy(path):
return (
os.path.isfile(path)
and not path.endswith('.pyc')
and not path.endswith('.pyo')
)
return map(os.path.normpath, filter(istocopy, glob.glob(path + os.sep + '*')))
def getVersion():
pkg_handler = PkgResourcesStandIn()
reStrictVersion = re.compile('^\s*(?P<version>[0-9.]+).*$')
m = reStrictVersion.match(pkg_handler.version("b3"))
if m:
return m.group('version')
else:
return None
myDataFiles = [
('', ['README.md']),
('', ['b3/PKG-INFO']),
('docs', listdirectory('b3/docs/')),
('sql', listdirectory('b3/sql/')),
('sql/sqlite', listdirectory('b3/sql/sqlite')),
('conf', listdirectory('b3/conf/')),
('conf/templates', listdirectory('b3/conf/templates/')),
('extplugins', ['b3/extplugins/xlrstats.py']),
('extplugins/conf', listdirectory('b3/extplugins/conf/')),
]
setup(
name = "BigBrotherBot",
version = getVersion(),
url = "http://www.bigbrotherbot.net/",
console = [
{
"script" : "b3_run.py",
"icon_resources": [(0, "py2exe_builder/b3.ico")]
}
],
zipfile = "b3.lib",
#zipfile = None,
data_files = myDataFiles,
options = {
"py2exe": {
"dist_dir": "../dist_py2exe",
"bundle_files": 1,
"optimize": 1,
"includes": [
"b3.lib.*",
"b3.plugins.*",
"b3.parsers.*",
"b3.parsers.homefront",
"b3.parsers.frostbite.*",
"b3.extplugins.__init__",
### additional modules for popular/useful 3rd party plugins ###
"smtplib", "email.*", "calendar", "email.mime.*", # contact plugin
"telnetlib", # teamspeak* plugins
"dbhash", # to make anydbm imports work with py2exe
"uuid", # metabans and ggcstream plugins
],
}
},
)
Jump to Line
Something went wrong with that request. Please try again.