From ca5fa387aa237ecfbe7e28a972d427cb6ada8d46 Mon Sep 17 00:00:00 2001 From: wisechengyi Date: Tue, 17 Jul 2018 21:54:52 -0700 Subject: [PATCH] reorder sig --- pex/pex_builder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pex/pex_builder.py b/pex/pex_builder.py index 2fe58268c..8cbb0a317 100644 --- a/pex/pex_builder.py +++ b/pex/pex_builder.py @@ -494,7 +494,7 @@ def _prepare_bootstrap(self): self._chroot.write(provider.get_resource_string(source_name, fn), os.path.join(self.BOOTSTRAP_DIR, target_location, fn), 'bootstrap') - def freeze(self, verify_entry_point, bytecode_compile=True): + def freeze(self, bytecode_compile=True, verify_entry_point=False): """Freeze the PEX. :param bytecode_compile: If True, precompile .py files into .pyc files when freezing code. @@ -524,7 +524,7 @@ def build(self, filename, bytecode_compile=True, verify_entry_point=False): PEXBuilder immutable. """ if not self._frozen: - self.freeze(verify_entry_point=verify_entry_point, bytecode_compile=bytecode_compile) + self.freeze(bytecode_compile=bytecode_compile, verify_entry_point=verify_entry_point) try: os.unlink(filename + '~') self._logger.warn('Previous binary unexpectedly exists, cleaning: %s' % (filename + '~'))