summaryrefslogtreecommitdiff
path: root/docs/src/gettingstarted/building/example.md
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-05-05 17:47:36 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-05-05 17:47:36 +0200
commit7bb7885f6eb19547b906513d2664e3730ef5b593 (patch)
treece387ad24da5e3ba3b4d1604d07a5b11d9e68a2e /docs/src/gettingstarted/building/example.md
parent657776055cd07c1f9279e982fbfef88dca1ca71b (diff)
Docs: Add API and building improvements
Diffstat (limited to 'docs/src/gettingstarted/building/example.md')
-rw-r--r--docs/src/gettingstarted/building/example.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/src/gettingstarted/building/example.md b/docs/src/gettingstarted/building/example.md
new file mode 100644
index 0000000..668d77a
--- /dev/null
+++ b/docs/src/gettingstarted/building/example.md
@@ -0,0 +1,28 @@
+# Example: commands to build for Python
+This section gives an example on how to build and install the library from scratch (assuming you have all the dependencies). It builds the Go library and then builds and installs the Python wrapper.
+
+1. Clone the library
+```bash
+git clone https://github.com/jwijenbergh/eduvpn-common
+```
+
+2. Go to the library directory
+```bash
+cd eduvpn-common
+```
+
+3. Build the go library
+```bash
+make
+```
+
+4. Build the python wrapper
+```bash
+make -C wrappers/python
+```
+
+5. Install the wheel using pip
+```bash
+pip install wrappers/python/dist/eduvpncommon-0.1.0-py3-none-linux_x86_64.whl
+```
+Note that the name of your wheel changes on the platform and version.