Skip to content

Commit

Permalink
devel/py-find-libpython: New port: Finds the libpython associated wit…
Browse files Browse the repository at this point in the history
…h your environment
  • Loading branch information
yurivict committed Feb 4, 2023
1 parent 4a39c48 commit 3604fc3
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -4565,6 +4565,7 @@
SUBDIR += py-filedepot
SUBDIR += py-filemagic
SUBDIR += py-filetype
SUBDIR += py-find-libpython
SUBDIR += py-findlibs
SUBDIR += py-findpython
SUBDIR += py-first
Expand Down
25 changes: 25 additions & 0 deletions devel/py-find-libpython/Makefile
@@ -0,0 +1,25 @@
PORTNAME= find-libpython
PORTVERSION= 0.3.0
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION}

MAINTAINER= yuri@FreeBSD.org
COMMENT= Finds the libpython associated with your environment
WWW= https://github.com/ktbarrett/find_libpython

LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}

USES= python
USE_PYTHON= pep517 autoplist pytest

NO_ARCH= yes

TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions devel/py-find-libpython/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1675492021
SHA256 (find_libpython-0.3.0.tar.gz) = 6e7fe5d9af7fad6dc066cb5515a0e9c90a71f1feb2bb2f8e4cdbb4f83276e9e5
SIZE (find_libpython-0.3.0.tar.gz) = 10754
4 changes: 4 additions & 0 deletions devel/py-find-libpython/pkg-descr
@@ -0,0 +1,4 @@
The find-libpython library is designed to find the path to the libpython dynamic
library for the current Python environment. It should work with many types of
installations, whether it be conda-managed, system-managed, or otherwise. And it
should function on Windows, Mac OS/OS X, and any Linux distribution.

0 comments on commit 3604fc3

Please sign in to comment.