devel/py-lockfile 0.12.2nb3 NetBSD
Platform-independent file locking module
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Last update
- Commit
65c9b1c391- License
- mit
- Categories
- devel, python
- Package size
- 20.8 KiB, 107.0 KiB installed
Description
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.
In the other systems
| System | Port | Version |
|---|---|---|
| NetBSD | devel/py-lockfile | 0.12.2nb3 |
| FreeBSD | devel/py-lockfile | 0.12.2_1 |
| DragonFly | devel/py-lockfile | 0.12.2_1 |
| MidnightBSD | 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:
pkgin install py312-lockfile
From pkgsrc:
cd /usr/pkgsrc/devel/py-lockfile && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 0.12.2nb3 |
| NetBSD 10.1 aarch64 | 0.12.2nb2 |
| SmartOS / illumos x86_64 | 0.12.2nb3 |
| macOS 15 arm64 | 0.12.2nb3 |
Dependencies
Run dependencies 1
Required by 1
Configuration
No options to configure.
- Service scripts
- none
- Flavors
py313-lockfile-0.12.2nb3,py314-lockfile-0.12.2nb3