From e45de10ecd66b9e18cba8f93ddaff00937fc61ad Mon Sep 17 00:00:00 2001 From: Tom Dyas Date: Wed, 30 Oct 2024 20:03:49 +0900 Subject: [PATCH] update commands in README.md to those that work --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 65507d7..d991362 100644 --- a/README.md +++ b/README.md @@ -139,10 +139,14 @@ pants test helloworld/translator/translator_test.py -- -k test_unknown_phrase # ## Create a PEX binary +The `package` goal requires specifying a target which can be packaged. In this case, the there is a `pex_binary` target with the name `pex_binary` in the `helloworld/BUILD` file. + ``` -pants package helloworld/main.py +pants package helloworld:pex_binary ``` +The pex file is output to `dist/helloworld/pex_binary.pex` and can be executed directly. + ## Run a binary directly ```