aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-09-28 19:44:00 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2016-09-28 19:44:00 +0300
commit83ea23c052628a13f7292404e03dd95f395732f1 (patch)
treef05d83eba639b63d1c6b299da4a699a64951a594
parentac41a4566932f1854dfcebe58bfcab75eb4b98b0 (diff)
downloadmeson-83ea23c052628a13f7292404e03dd95f395732f1.zip
meson-83ea23c052628a13f7292404e03dd95f395732f1.tar.gz
meson-83ea23c052628a13f7292404e03dd95f395732f1.tar.bz2
Zipapp documentation update.
-rw-r--r--README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md
index 95915b0..273398f 100644
--- a/README.md
+++ b/README.md
@@ -27,6 +27,17 @@ pip will download the package automatically). The exact command to
type to install with pip can very between systems, be sure to use the
Python 3 version of pip.
+#### Creating a standalone script
+
+Meson can be run as a [Python zip
+app](https://docs.python.org/3/library/zipapp.html). To generate the
+executable run the following command:
+
+ python3 -m zipapp -p '/usr/bin/env python3' -m meson:main -o meson <source checkout>
+
+Note that the source checkout may not be `meson` because it would
+clash with the generated binary name.
+
####Running
Meson requires that you have a source directory and a build directory