Setup build environment only before building

This commit is contained in:
Daniele Varrazzo 2019-04-21 13:14:37 +01:00
parent 1178501aaf
commit b1078b1b92

View File

@ -35,7 +35,6 @@ def main():
opt = parse_cmdline() opt = parse_cmdline()
logger.setLevel(opt.loglevel) logger.setLevel(opt.loglevel)
setup_env()
cmd = globals()[STEP_PREFIX + opt.step] cmd = globals()[STEP_PREFIX + opt.step]
cmd() cmd()
@ -109,6 +108,7 @@ def step_install():
def step_build_script(): def step_build_script():
setup_env()
build_openssl() build_openssl()
build_libpq() build_libpq()
build_psycopg() build_psycopg()