示例#1
0
config = Config()
config.read(CFGFILE)

config.WXWIN = os.path.abspath("..")

class Job(Job):
    LOGBASE = "./tmp"

# ensure the staging area exists
if not os.path.exists(config.STAGING_DIR):
    os.makedirs(config.STAGING_DIR)

# Figure out the wxPython version number, possibly adjusted for being a daily build
if config.KIND == "daily":
    t = time.localtime()
    config.DAILY = time.strftime("%Y%m%d")   # should it include the hour too?  2-digit year?
    file("DAILY_BUILD", "w").write(config.DAILY)
    # stamp the date on daily builds
    config.BUILD_VERSION=config.BUILD_VERSION + "-" + config.DAILY

# Let the user override build machine names, etc., etc. with their own
# config file settings
myconfig = None
myconfig_file = os.path.expanduser("~/wxrelease-environ.cfg")
if os.path.exists(myconfig_file):
    myconfig = Config()
    myconfig.read(myconfig_file)

# TODO: Set up different environs for daily, release, etc.
# so that people can have different configs for different builds
config.WXWIN = os.path.abspath("..")


class Job(Job):
    LOGBASE = "./tmp"


# ensure the staging area exists
if not os.path.exists(config.STAGING_DIR):
    os.makedirs(config.STAGING_DIR)

# Figure out the wxPython version number, possibly adjusted for being a daily build
if config.KIND == "daily":
    t = time.localtime()
    config.DAILY = time.strftime(
        "%Y%m%d")  # should it include the hour too?  2-digit year?
    file("DAILY_BUILD", "w").write(config.DAILY)
    # stamp the date on daily builds
    config.BUILD_VERSION = config.BUILD_VERSION + "-" + config.DAILY

# Let the user override build machine names, etc., etc. with their own
# config file settings
myconfig = None
myconfig_file = os.path.expanduser("~/wxrelease-environ.cfg")
if os.path.exists(myconfig_file):
    myconfig = Config()
    myconfig.read(myconfig_file)

# TODO: Set up different environs for daily, release, etc.
# so that people can have different configs for different builds