pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
python: remove wheel.mk, added as lang/python/wheel.mk
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By: wiz
Date: Wed Mar 29 11:34:48 2023 +0200
Changeset: 9e6246ab109a62ce8ec1362cd898f2584d43f105
Removed Files:
python/wheel.mk
Log Message:
python: remove wheel.mk, added as lang/python/wheel.mk
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=9e6246ab109a62ce8ec1362cd898f2584d43f105
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
python/wheel.mk | 64 ---------------------------------------------------------
1 file changed, 64 deletions(-)
diffs:
diff --git a/python/wheel.mk b/python/wheel.mk
deleted file mode 100644
index 252ba276f0..0000000000
--- a/python/wheel.mk
+++ /dev/null
@@ -1,64 +0,0 @@
-# $NetBSD$
-#
-# Initial mk for building and installing python wheels
-#
-# Variables:
-#
-# WHEELFILE: path to the wheelfile to be installed
-# only needs to be set if do-build is redefined
-#
-# MASTER_SITE_WHEEL: master site to grab wheels directly
-# use like ${MASTER_SITE_WHEEL:=project/}
-# uses debian pypi redirector so that there
-# is no need for hashes in urls.
-#
-# TODO: fix BUILDDIR support
-#
-# Feel free to contribute to this file
-#
-
-.include "../../lang/python/pyversion.mk"
-
-TOOL_DEPENDS+= ${PYPKGPREFIX}-pip>=0:../../devel/py-pip
-
-WHEELFILE?= ${WRKSRC}/dist/*.whl
-
-.if defined(NO_BUILD)
-
-MASTER_SITE_WHEEL= https://pypi.debian.net/
-
-WHEELFILE= ${DISTFILES}
-
-.for i in 2 3
-.if !empty(_PYTHON_VERSIONS_ACCEPTED:M${i}*)
-PYMAJORVERSIONS+= py${i}
-.endif
-.endfor
-
-EXTRACT_SUFX= -${PYMAJORVERSIONS:ts.}-none-any.whl
-
-.else
-#we need to build a wheel
-
-TOOL_DEPENDS+= ${PYPKGPREFIX}-build>=0:../../devel/py-build
-
-.if !target(do-build)
-do-build:
- ${RUN} cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} -m build --wheel -x -n
-.endif
-
-.endif
-
-WHEEL_NAME?= ${DISTNAME:C/-([^0-9])/_\1/g}
-_WHEEL_INFODIR= ${WHEEL_NAME}.dist-info
-PLIST_SUBST+= PYSITELIB=${PYSITELIB}
-PLIST_SUBST+= WHEEL_INFODIR=${_WHEEL_INFODIR}
-
-PRINT_PLIST_AWK+= { gsub(/${_WHEEL_INFODIR:S,.,\.,g}/, "$${WHEEL_INFODIR}") }
-
-INSTALL_ENV+= PIP_NO_CACHEDIR=1
-
-do-install:
- ${RUN} cd ${WRKDIR} && \
- ${SETENV} ${INSTALL_ENV} \
- ${PYTHONBIN} -m pip install --no-deps --root ${DESTDIR:Q} --prefix ${PREFIX:Q} --compile --force-reinstall -I ${WHEELFILE}
Home |
Main Index |
Thread Index |
Old Index