Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a different bluez #383

Open
alcir opened this issue Oct 31, 2019 · 6 comments
Open

Use a different bluez #383

alcir opened this issue Oct 31, 2019 · 6 comments

Comments

@alcir
Copy link

alcir commented Oct 31, 2019

Hello.
I would like to package bluepy for Fedora.
Fedora doesn't allow to bundle a release of bluez in the package. It should use the system release of bluez.

There is a way to provide a method to compile bluepy using the system version of bluez?

@parkerlreed
Copy link

Umm where does bluepy use it's own version? I don't see how a python package could feasibly ship their own bluez.

For example the Arch package https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/python-bluepy

I'm fairly certain it always uses the system bluez.

@parkerlreed
Copy link

I do see where the Arch package cleans up a bluez-src. It seems just removing that is enough.

@alcir
Copy link
Author

alcir commented Oct 31, 2019

Sorry but since I'm not too practical with sources etc. my terminology could be incorrect.

I mean. In order to build the python package, bluepy doesn't use C headers and so on provided by system, but the source package includes bluez sources, and the Makefile points to them.
Or I'm wrong?

@parkerlreed
Copy link

parkerlreed commented Oct 31, 2019

For that I'm not sure. I've had no issues with the packaging on Arch at least. bluez updates and everything is fine.

@IanHarvey
Copy link
Owner

bluepy uses a copy of some source files from the BlueZ project to build a C language executable, bluepy-helper, which is a shim between Python and the kernel's Bluetooth interface. It does not build or install any binaries which are the same as what the BlueZ package provides - so at no point would you have a "bluepy" and a "system" version of the same thing on your disk.

Note that there isn't a realistic way to "use the system's BlueZ" - BlueZ itself provides various command line executables and daemons, but there isn't a library or low-level interface suitable for calling from Python. (I looked at the D-Bus interface but at the time it was very incomplete, and its availability is likely to vary a lot between distributions).

@brianjmurrell
Copy link

but there isn't a library or low-level interface suitable for calling from Python

The libbluetooth.so library and associated headers that is packaged in bluez-libs-devel (on Fedora/RHEL) is not suitable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants