Skip to content

Commit 482dd4e

Browse files
Update build instructions in README.md
1 parent b7c9694 commit 482dd4e

File tree

1 file changed

+22
-14
lines changed

1 file changed

+22
-14
lines changed

README.md

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,30 +22,38 @@ this, you can expect memory leaks, as little work has been done on getting
2222
memory freed correctly once it is no longer needed.
2323

2424
## Installing
25-
25+
### From HaikuPorts
2626
Installation on Haiku is easy, just run
27-
28-
`pkgman install haiku_pyapi_python310`
29-
27+
```
28+
pkgman install haiku_pyapi_python310
29+
```
3030
or
31-
32-
`pkgman install haiku_pyapi_python39`
33-
31+
```
32+
pkgman install haiku_pyapi_python39
33+
```
3434
If you need the latest widgets and bugfixes, then you should compile from source, see below.
3535

36-
## Compiling
37-
38-
First, install the appropriate version of pybind11 for your CPU architecture and version of Python. For example, to install pybind11 for x86 and python3.10, run
36+
### From source
3937

40-
`pkgman install pybind11_x86_python310`
38+
First, clone the source code, with submodules:
39+
```
40+
git clone https://github.com/coolcder613eb/Haiku-PyAPI --recursive
41+
```
4142

4243
The basic build command to build using all CPU cores is
44+
```
45+
jam -j$(nproc)
46+
```
47+
Extra build parameters can be specified, as discussed below.
4348

44-
`jam -j$(nproc)`
49+
Finally, to install, simply run
50+
```
51+
jam install
52+
```
53+
Haiku-PyAPI should now be installed and ready to use.
4554

46-
Extra build parameters can be specified, as discussed below.
4755

48-
### Build parameters
56+
## Build parameters
4957

5058
The build parameters can be used to change how the build is done. This can be
5159
used to, for example, specify a different verson of python to build for. To

0 commit comments

Comments
 (0)