pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-bokeh: build wheel, and allow multiple python verisons to be installed



Module Name:	pkgsrc-wip
Committed By:	Matthew Danielson <matthewd%fastmail.us@localhost>
Pushed By:	matthewd
Date:		Sat Jun 29 06:31:20 2024 -0600
Changeset:	f7d52679c539ec6dbef05fabc700695e86d1cdf4

Modified Files:
	py-bokeh/Makefile
	py-bokeh/PLIST
Added Files:
	py-bokeh/ALTERNATIVES

Log Message:
py-bokeh: build wheel, and allow multiple python verisons to be installed

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=f7d52679c539ec6dbef05fabc700695e86d1cdf4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-bokeh/ALTERNATIVES |  1 +
 py-bokeh/Makefile     |  5 ++++-
 py-bokeh/PLIST        | 14 +++++++-------
 3 files changed, 12 insertions(+), 8 deletions(-)

diffs:
diff --git a/py-bokeh/ALTERNATIVES b/py-bokeh/ALTERNATIVES
new file mode 100644
index 0000000000..050e142091
--- /dev/null
+++ b/py-bokeh/ALTERNATIVES
@@ -0,0 +1 @@
+bin/bokeh @PREFIX@/bin/bokeh-@PYVERSSUFFIX@
diff --git a/py-bokeh/Makefile b/py-bokeh/Makefile
index fc93944d8a..ecb169779f 100644
--- a/py-bokeh/Makefile
+++ b/py-bokeh/Makefile
@@ -2,6 +2,7 @@
 
 DISTNAME=	bokeh-3.4.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION=	1
 CATEGORIES=	graphics python
 MASTER_SITES=	${MASTER_SITE_PYPI:=b/bokeh/}
 
@@ -28,8 +29,10 @@ TEST_DEPENDS+=	nodejs-[0-9]*:../../lang/nodejs
 
 do-test:
 	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} -m pytest -s
+post-install:
+	cd ${DESTDIR}${PREFIX}/bin && ${MV} bokeh bokeh-${PYVERSSUFFIX}
 
 BUILDLINK_API_DEPENDS.py-numpy+=        ${PYPKGPREFIX}-numpy>=1.16
 .include "../../math/py-numpy/buildlink3.mk"
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/py-bokeh/PLIST b/py-bokeh/PLIST
index 50bb5ba879..700e2738c9 100644
--- a/py-bokeh/PLIST
+++ b/py-bokeh/PLIST
@@ -1,11 +1,11 @@
 @comment $NetBSD$
-bin/bokeh
-${PYSITELIB}/bokeh-0.0.0-py${PYVERSSUFFIX}.egg-info/PKG-INFO
-${PYSITELIB}/bokeh-0.0.0-py${PYVERSSUFFIX}.egg-info/SOURCES.txt
-${PYSITELIB}/bokeh-0.0.0-py${PYVERSSUFFIX}.egg-info/dependency_links.txt
-${PYSITELIB}/bokeh-0.0.0-py${PYVERSSUFFIX}.egg-info/entry_points.txt
-${PYSITELIB}/bokeh-0.0.0-py${PYVERSSUFFIX}.egg-info/requires.txt
-${PYSITELIB}/bokeh-0.0.0-py${PYVERSSUFFIX}.egg-info/top_level.txt
+bin/bokeh-${PYVERSSUFFIX}
+${PYSITELIB}/bokeh-0.0.0.dist-info/LICENSE.txt
+${PYSITELIB}/bokeh-0.0.0.dist-info/METADATA
+${PYSITELIB}/bokeh-0.0.0.dist-info/RECORD
+${PYSITELIB}/bokeh-0.0.0.dist-info/WHEEL
+${PYSITELIB}/bokeh-0.0.0.dist-info/entry_points.txt
+${PYSITELIB}/bokeh-0.0.0.dist-info/top_level.txt
 ${PYSITELIB}/bokeh/LICENSE.txt
 ${PYSITELIB}/bokeh/__init__.py
 ${PYSITELIB}/bokeh/__init__.pyc


Home | Main Index | Thread Index | Old Index