forked from Lainports/freebsd-ports
[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:
parent
c6b2919327
commit
dc252dfc90
4 changed files with 29 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
18
sysutils/py-shutilwhich/Makefile
Normal file
18
sysutils/py-shutilwhich/Makefile
Normal 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>
|
||||
2
sysutils/py-shutilwhich/distinfo
Normal file
2
sysutils/py-shutilwhich/distinfo
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
SHA256 (shutilwhich-1.0.1.tar.gz) = 698b144c49d10730500ba6bd1446bb0c45c4bb01b005f24c6cc1c1e6567de037
|
||||
SIZE (shutilwhich-1.0.1.tar.gz) = 2099
|
||||
8
sysutils/py-shutilwhich/pkg-descr
Normal file
8
sysutils/py-shutilwhich/pkg-descr
Normal 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
|
||||
Loading…
Add table
Reference in a new issue