pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/python



Module Name:    pkgsrc
Committed By:   thor
Date:           Thu Dec  7 17:59:17 UTC 2023

Modified Files:
        pkgsrc/lang/python: wheel.mk

Log Message:
lang/python/wheel.mk: add WHEEL_ARGS to influence build

This allows passing things like -Csetup-args=-Dfoo=bar which may be
needed for build configuration.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/lang/python/wheel.mk

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

Modified files:

Index: pkgsrc/lang/python/wheel.mk
diff -u pkgsrc/lang/python/wheel.mk:1.11 pkgsrc/lang/python/wheel.mk:1.12
--- pkgsrc/lang/python/wheel.mk:1.11    Sun Oct 29 22:50:35 2023
+++ pkgsrc/lang/python/wheel.mk Thu Dec  7 17:59:17 2023
@@ -1,4 +1,4 @@
-# $NetBSD: wheel.mk,v 1.11 2023/10/29 22:50:35 wiz Exp $
+# $NetBSD: wheel.mk,v 1.12 2023/12/07 17:59:17 thor Exp $
 #
 # Build and install Python wheels
 #
@@ -10,6 +10,7 @@
 # USE_PYTEST:          If set to yes, depend on py-test and use it for testing.
 #                      Default: yes
 #
+# WHEEL_ARGS:          additional arguments to pass during build of the wheel
 
 PY_PATCHPLIST?=        yes
 
@@ -17,6 +18,7 @@ WHEELFILE?=   ${WRKSRC}/dist/*.whl
 WHEEL_NAME?=   ${DISTNAME:C/-([^0-9])/_\1/g}
 _WHEEL_INFODIR=        ${WHEEL_NAME}.dist-info
 PLIST_SUBST+=  WHEEL_INFODIR=${_WHEEL_INFODIR}
+WHEEL_ARGS?=   # empty
 
 PRINT_PLIST_AWK+=      { gsub(/${_WHEEL_INFODIR:S,.,\.,g}/, "$${WHEEL_INFODIR}") }
 
@@ -24,7 +26,8 @@ PRINT_PLIST_AWK+=     { gsub(/${_WHEEL_INFOD
 TOOL_DEPENDS+= ${PYPKGPREFIX}-build>=0:../../devel/py-build
 do-build:
        ${RUN} cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${TOOL_PYTHONBIN} \
-               -m build --wheel --skip-dependency-check --no-isolation
+               -m build --wheel --skip-dependency-check --no-isolation \
+               ${WHEEL_ARGS}
 .endif
 
 .if !target(do-install)



Home | Main Index | Thread Index | Old Index