buildroot/package/python-lockfile/python-lockfile.mk
Adam Duskett e5cc2ac91d package/python-lockfile: new package
The lockfile package exports a LockFile class which provides a
simple API for locking files. Unlike the Windows
msvcrt.locking function, the fcntl.lockf and flock functions,
and the deprecated posixfile module, the API is identical
across both Unix (including Linux and Mac) and Windows
platforms.

The lock mechanism relies on the atomic nature of the link
(on Unix) and mkdir (on Windows) system calls. An
implementation based on SQLite is also provided, more as a
demonstration of the possibilities it provides than as
production-quality code.

Signed-off-by: Adam Duskett <aduskett@greenlots.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-12-24 15:45:57 +01:00

16 lines
600 B
Makefile

################################################################################
#
# python-lockfile
#
################################################################################
PYTHON_LOCKFILE_VERSION = 0.12.2
PYTHON_LOCKFILE_SOURCE = lockfile-$(PYTHON_LOCKFILE_VERSION).tar.gz
PYTHON_LOCKFILE_SITE = https://files.pythonhosted.org/packages/17/47/72cb04a58a35ec495f96984dddb48232b551aafb95bde614605b754fe6f7
PYTHON_LOCKFILE_SETUP_TYPE = setuptools
PYTHON_LOCKFILE_LICENSE = MIT
PYTHON_LOCKFILE_LICENSE_FILES = LICENSE
PYTHON_LOCKFILE_DEPENDENCIES = host-python-pbr
$(eval $(python-package))