BSD Ports

devel/py-lockfile 0.12.2_1 MidnightBSD

Platform-independent file locking module

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
mit
Categories
devel, python

Description

The lockfile module exports a FileLock class which provides a simple API for locking files. Unlike the Windows msvcrt.locking function, the Unix fcntl.flock, fcntl.lockf 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.

In the other systems

SystemPortVersion
MidnightBSDdevel/py-lockfile0.12.2_1
FreeBSDdevel/py-lockfile0.12.2_1
NetBSDdevel/py-lockfile0.12.2nb3
DragonFlydevel/py-lockfile0.12.2_1
HardenedBSDdevel/py-lockfile0.12.2_1
GhostBSDdevel/py-lockfile0.12.2_1

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}lockfile

From mports:

cd /usr/mports/devel/py-lockfile && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}lockfile>0:devel/py-lockfile

Dependencies

As this port's Makefile names them.

Build 1

Build dependencies 1
Required by 1

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
lockfile-0.12.2.tar.gz208746aed02de03cba24efabcd600b30540140634fc06cfa603822d508d5361e9f799
Master sites 1
  • PYPI