Skip to content

Commit

Permalink
Use --entry-point not -c when building pex (pantsbuild#6349)
Browse files Browse the repository at this point in the history
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.

pantsbuild#6267 changed this behaviour,
but seems broken - this commit allows me to successfully build pexes.
  • Loading branch information
illicitonion authored and Borja Lorente committed Aug 15, 2018
1 parent fb0e5d9 commit ab96a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-support/bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit ab96a6a

Please sign in to comment.