Hello,

I'm the author of python-libusb1, a pure-python ctypes wrapper for
libusb1.

Until recently, I had been purely relying on OS-linker-provided libusb1
(distro-installed on GNU/Linux and *BSD, fink/macports/... on OSX, ...).

Then, I've been requested to bundle the libusb1 dll on windows (x86 and
x86_64 wheels) because otherwise distributions seems exceedingly
painful for applications using my module. With some extra code to
setup.py to fetch, unzip and copy[1] the dlls, plus a now even more
multi-stage distribution process (sdist, both windows wheels, in
addition to the existing sign and twine steps), and it ipso facto works.

Now, I'm asked to add pyinstaller compatibility, as it on its own
overlooks the dll. Which makes me feel that I am maybe not using the
best possible way to bundle these.

>From my reading of distutils and setuptools, my understanding is that a
package is that non-pure-python packages contain:
- stuff they built themselves (build_ext & friends)
- third-party libraries that the stuff they built themselves is linked
  against
Having nothing to build, I cannot seem to reach the library inclusion
step.

What is the recommended way of bundling a third-party-built
arch-dependent library in an otherwise pure-python package ?

[1] 
https://github.com/vpelletier/python-libusb1/blob/49f7f846bdd3c3d0f2ec3a01c23ed69885cf63a4/setup.py#L48-L58

Regards,
-- 
Vincent Pelletier
GPG fingerprint 983A E8B7 3B91 1598 7A92 3845 CAC9 3691 4257 B0C1
--
Distutils-SIG mailing list -- distutils-sig@python.org
To unsubscribe send an email to distutils-sig-le...@python.org
https://mail.python.org/mailman3/lists/distutils-sig.python.org/
Message archived at 
https://mail.python.org/archives/list/distutils-sig@python.org/message/J6DDMSAC73TVHFMBIEIT6Z6ZB7HGSQGJ/

Reply via email to