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
| System | Port | Version |
|---|---|---|
| MidnightBSD | devel/py-lockfile | 0.12.2_1 |
| FreeBSD | devel/py-lockfile | 0.12.2_1 |
| NetBSD | devel/py-lockfile | 0.12.2nb3 |
| DragonFly | devel/py-lockfile | 0.12.2_1 |
| HardenedBSD | devel/py-lockfile | 0.12.2_1 |
| GhostBSD | devel/py-lockfile | 0.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
${PYTHON_PKGNAMEPREFIX}pbr>=1.8: devel/py-pbr
Build dependencies 1
Required by 1
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| lockfile-0.12.2.tar.gz | 20874 | 6aed02de03cba24efabcd600b30540140634fc06cfa603822d508d5361e9f799 |
Master sites 1
- PYPI