From 8ce62972c59952bc213cf161c3d5ba7ec9bb945c Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Tue, 14 Aug 2018 20:04:02 -0700 Subject: [PATCH] Use --entry-point not -c when building pex (#6349) I deterministically get this error: RuntimeError: Ambiguous script specification pants matches multiple entry points:pants = pants.bin.pants_loader:main pants = pants.bin.pants_loader:main when building with -c. https://github.com/pantsbuild/pants/pull/6267 changed this behaviour, but seems broken - this commit allows me to successfully build pexes. --- build-support/bin/release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-support/bin/release.sh b/build-support/bin/release.sh index cd3428d71a8..94ffa286b0b 100755 --- a/build-support/bin/release.sh +++ b/build-support/bin/release.sh @@ -609,7 +609,7 @@ function build_pex() { ./${PEX_PEX} \ -o "${dest}" \ - -c pants \ + --entry-point="pants.bin.pants_loader:main" \ --no-build \ --no-pypi \ --disable-cache \