sysutils/py-distro 1.9.0_1 MidnightBSD
Linux OS platform information API
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- Apache-2.0
- Categories
- sysutils, python
Description
distro provides information about the OS distribution it runs on, such as a reliable machine-readable ID, or version information. It is the recommended replacement for Python's original platform.linux_distribution function. It also provides much more functionality which isn't necessarily Python bound, like a command-line interface.
In the other systems
| System | Port | Version |
|---|---|---|
| MidnightBSD | sysutils/py-distro | 1.9.0_1 |
| FreeBSD | sysutils/py-distro | 1.9.0 |
| OpenBSD | sysutils/py-distro | 1.9.0p2 |
| DragonFly | sysutils/py-distro | 1.9.0 |
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}distro
From mports:
cd /usr/mports/sysutils/py-distro && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}distro>0:sysutils/py-distro
Dependencies
As this port's Makefile names them.
Build 2
${PYTHON_PKGNAMEPREFIX}setuptools>=0: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
Build dependencies 2
Configuration
No options to configure.
- USES
- python shebangfix
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| distro-1.9.0.tar.gz | 60722 | 2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed |
Master sites 1
- PYPI