Thu Jan 13 21:23:25 2022 UTC ()
wheel.mk: build: use long options for readability


(wiz)
diff -r1.2 -r1.3 pkgsrc/lang/python/wheel.mk

cvs diff -r1.2 -r1.3 pkgsrc/lang/python/wheel.mk (expand / switch to unified diff)

--- pkgsrc/lang/python/wheel.mk 2022/01/13 09:49:35 1.2
+++ pkgsrc/lang/python/wheel.mk 2022/01/13 21:23:25 1.3
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: wheel.mk,v 1.2 2022/01/13 09:49:35 wiz Exp $ 1# $NetBSD: wheel.mk,v 1.3 2022/01/13 21:23:25 wiz Exp $
2# 2#
3# Initial mk for building and installing python wheels 3# Initial mk for building and installing python wheels
4# 4#
5# Variables: 5# Variables:
6#  6#
7# WHEELFILE: path to the wheelfile to be installed 7# WHEELFILE: path to the wheelfile to be installed
8# only needs to be set if do-build is redefined 8# only needs to be set if do-build is redefined
9# 9#
10# MASTER_SITE_WHEEL: master site to grab wheels directly  10# MASTER_SITE_WHEEL: master site to grab wheels directly
11# use like ${MASTER_SITE_WHEEL:=project/} 11# use like ${MASTER_SITE_WHEEL:=project/}
12# uses debian pypi redirector so that there 12# uses debian pypi redirector so that there
13# is no need for hashes in urls. 13# is no need for hashes in urls.
14# 14#
@@ -34,27 +34,27 @@ WHEELFILE= ${DISTFILES} @@ -34,27 +34,27 @@ WHEELFILE= ${DISTFILES}
34PYMAJORVERSIONS+= py${i} 34PYMAJORVERSIONS+= py${i}
35.endif 35.endif
36.endfor 36.endfor
37 37
38EXTRACT_SUFX= -${PYMAJORVERSIONS:ts.}-none-any.whl 38EXTRACT_SUFX= -${PYMAJORVERSIONS:ts.}-none-any.whl
39 39
40.else 40.else
41#we need to build a wheel 41#we need to build a wheel
42 42
43TOOL_DEPENDS+= ${PYPKGPREFIX}-build>=0:../../devel/py-build 43TOOL_DEPENDS+= ${PYPKGPREFIX}-build>=0:../../devel/py-build
44 44
45.if !target(do-build) 45.if !target(do-build)
46do-build: 46do-build:
47 ${RUN} cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} -m build --wheel -x -n 47 ${RUN} cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} -m build --wheel --skip-dependency-check --no-isolation
48.endif 48.endif
49 49
50.endif 50.endif
51 51
52WHEEL_NAME?= ${DISTNAME:C/-([^0-9])/_\1/g} 52WHEEL_NAME?= ${DISTNAME:C/-([^0-9])/_\1/g}
53_WHEEL_INFODIR= ${WHEEL_NAME}.dist-info 53_WHEEL_INFODIR= ${WHEEL_NAME}.dist-info
54PLIST_SUBST+= PYSITELIB=${PYSITELIB} 54PLIST_SUBST+= PYSITELIB=${PYSITELIB}
55PLIST_SUBST+= WHEEL_INFODIR=${_WHEEL_INFODIR} 55PLIST_SUBST+= WHEEL_INFODIR=${_WHEEL_INFODIR}
56 56
57PRINT_PLIST_AWK+= { gsub(/${_WHEEL_INFODIR:S,.,\.,g}/, "$${WHEEL_INFODIR}") } 57PRINT_PLIST_AWK+= { gsub(/${_WHEEL_INFODIR:S,.,\.,g}/, "$${WHEEL_INFODIR}") }
58 58
59INSTALL_ENV+= PIP_NO_CACHEDIR=1 59INSTALL_ENV+= PIP_NO_CACHEDIR=1
60 60