[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
This commit is contained in:
Kubilay Kocak 2015-02-14 08:01:19 +00:00
parent c6b2919327
commit dc252dfc90
4 changed files with 29 additions and 0 deletions

View file

@ -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

View file

@ -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>

View file

@ -0,0 +1,2 @@
SHA256 (shutilwhich-1.0.1.tar.gz) = 698b144c49d10730500ba6bd1446bb0c45c4bb01b005f24c6cc1c1e6567de037
SIZE (shutilwhich-1.0.1.tar.gz) = 2099

View file

@ -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