BSD Ports

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

SystemPortVersion
MidnightBSDsysutils/py-distro1.9.0_1
FreeBSDsysutils/py-distro1.9.0
OpenBSDsysutils/py-distro1.9.0p2
DragonFlysysutils/py-distro1.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

Build dependencies 2

Configuration

No options to configure.

USES
python shebangfix
Service scripts
none

Files

distinfo 1
FileSizeSHA256
distro-1.9.0.tar.gz607222fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed
Master sites 1
  • PYPI