gattlib-py: Document how to develop 'gattlib-py'

fix-build
Olivier Martin 2024-02-07 17:26:12 +01:00
parent 33a8a27592
commit 6d271f98b6
14 changed files with 29 additions and 14 deletions

View File

@ -1 +1,16 @@
`gattlib-py` is a wrapper for `gattlib` library.
`gattlib-py` is a wrapper for `gattlib` library.
Development
-----------
1. Set `PYTHONPATH`: `export PYTHONPATH=$PWD/gattlib-py:$PYTHONPATH`
2. Build native library
```
mkdir -p build && cd build
cmake ..
make
```
3. Set `export LD_LIBRARY_PATH=$PWD/dbus` for Python module to find native library.

View File

@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Copyright (c) 2016-2021, Olivier Martin <olivier@labapart.org>
# Copyright (c) 2016-2024, Olivier Martin <olivier@labapart.org>
#
import argparse

View File

@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Copyright (c) 2016-2022, Olivier Martin <olivier@labapart.org>
# Copyright (c) 2016-2024, Olivier Martin <olivier@labapart.org>
#
import argparse

View File

@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Copyright (c) 2016-2022, Olivier Martin <olivier@labapart.org>
# Copyright (c) 2016-2024, Olivier Martin <olivier@labapart.org>
#
import argparse

View File

@ -1,7 +1,7 @@
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Copyright (c) 2016-2021, Olivier Martin <olivier@labapart.org>
# Copyright (c) 2016-2024, Olivier Martin <olivier@labapart.org>
#
import struct

View File

@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Copyright (c) 2016-2021, Olivier Martin <olivier@labapart.org>
# Copyright (c) 2016-2024, Olivier Martin <olivier@labapart.org>
#
import argparse

View File

@ -1,7 +1,7 @@
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Copyright (c) 2016-2021, Olivier Martin <olivier@labapart.org>
# Copyright (c) 2016-2024, Olivier Martin <olivier@labapart.org>
#
import time

View File

@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Copyright (c) 2016-2021, Olivier Martin <olivier@labapart.org>
# Copyright (c) 2016-2024, Olivier Martin <olivier@labapart.org>
#
import argparse

View File

@ -1,7 +1,7 @@
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Copyright (c) 2016-2021, Olivier Martin <olivier@labapart.org>
# Copyright (c) 2016-2024, Olivier Martin <olivier@labapart.org>
#
from ctypes import *

View File

@ -1,7 +1,7 @@
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Copyright (c) 2016-2022, Olivier Martin <olivier@labapart.org>
# Copyright (c) 2016-2024, Olivier Martin <olivier@labapart.org>
#
from uuid import UUID

View File

@ -1,7 +1,7 @@
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Copyright (c) 2016-2022, Olivier Martin <olivier@labapart.org>
# Copyright (c) 2016-2024, Olivier Martin <olivier@labapart.org>
#
import logging

View File

@ -1,7 +1,7 @@
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Copyright (c) 2016-2022, Olivier Martin <olivier@labapart.org>
# Copyright (c) 2016-2024, Olivier Martin <olivier@labapart.org>
#
GATTLIB_SUCCESS = 0

View File

@ -1,7 +1,7 @@
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Copyright (c) 2016-2021, Olivier Martin <olivier@labapart.org>
# Copyright (c) 2016-2024, Olivier Martin <olivier@labapart.org>
#
from gattlib import *

View File

@ -1,7 +1,7 @@
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Copyright (c) 2016-2021, Olivier Martin <olivier@labapart.org>
# Copyright (c) 2016-2024, Olivier Martin <olivier@labapart.org>
#
import re