diff options
author | koobs <koobs@FreeBSD.org> | 2015-02-14 16:01:19 +0800 |
---|---|---|
committer | koobs <koobs@FreeBSD.org> | 2015-02-14 16:01:19 +0800 |
commit | f0609f75ea87485eb36dc1ecb946be7958dbf854 (patch) | |
tree | ee2474940af0808160f023068827258c2649fe8f | |
parent | c682de5b4cec9f73585aee3153f01d7e7a107196 (diff) | |
download | freebsd-ports-gnome-f0609f75ea87485eb36dc1ecb946be7958dbf854.tar.gz freebsd-ports-gnome-f0609f75ea87485eb36dc1ecb946be7958dbf854.tar.zst freebsd-ports-gnome-f0609f75ea87485eb36dc1ecb946be7958dbf854.zip |
[NEW] sysutils/shutilwhich: shutil.which for those not using Python 3.3
A copy & paste backport of Python 3.3's shutil.which function.
Import like this: import shutilwhichh.
This will monkeypatch shutil if there is no shutil.which method, otherwise
leave it alone.
WWW: https://github.com/mbr/shutilwhich
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/py-shutilwhich/Makefile | 18 | ||||
-rw-r--r-- | sysutils/py-shutilwhich/distinfo | 2 | ||||
-rw-r--r-- | sysutils/py-shutilwhich/pkg-descr | 8 |
4 files changed, 29 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 8179590cc115..478466cc106f 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -757,6 +757,7 @@ SUBDIR += py-ranger SUBDIR += py-salt SUBDIR += py-salt-api + SUBDIR += py-shutilwhich SUBDIR += py-stdiff SUBDIR += py-supervisor SUBDIR += py-zdaemon diff --git a/sysutils/py-shutilwhich/Makefile b/sysutils/py-shutilwhich/Makefile new file mode 100644 index 000000000000..69d56d84cb0b --- /dev/null +++ b/sysutils/py-shutilwhich/Makefile @@ -0,0 +1,18 @@ +# Created by: Kubilay Kocak <koobs@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= shutilwhich +PORTVERSION= 1.0.1 +CATEGORIES= sysutils python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= koobs@FreeBSD.org +COMMENT= shutil.which for those not using Python 3.3 + +LICENSE= PSFL + +USES= python +USE_PYTHON= autoplist distutils + +.include <bsd.port.mk> diff --git a/sysutils/py-shutilwhich/distinfo b/sysutils/py-shutilwhich/distinfo new file mode 100644 index 000000000000..d8d7d9bc5caa --- /dev/null +++ b/sysutils/py-shutilwhich/distinfo @@ -0,0 +1,2 @@ +SHA256 (shutilwhich-1.0.1.tar.gz) = 698b144c49d10730500ba6bd1446bb0c45c4bb01b005f24c6cc1c1e6567de037 +SIZE (shutilwhich-1.0.1.tar.gz) = 2099 diff --git a/sysutils/py-shutilwhich/pkg-descr b/sysutils/py-shutilwhich/pkg-descr new file mode 100644 index 000000000000..db05fa927063 --- /dev/null +++ b/sysutils/py-shutilwhich/pkg-descr @@ -0,0 +1,8 @@ +A copy & paste backport of Python 3.3's shutil.which function. + +Import like this: import shutilwhichh. + +This will monkeypatch shutil if there is no shutil.which method, otherwise +leave it alone. + +WWW: https://github.com/mbr/shutilwhich |