pkgsrc-WIP-changes archive

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

*: use PYTHON_VERSION



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By:	wiz
Date:		Wed Mar 29 11:03:09 2023 +0200
Changeset:	2e6e7fb734cb466e2e60dc086546117e0ef2d636

Modified Files:
	py-lingpy/Makefile
	py-polars/Makefile
	py-poppy/Makefile
	py-pybitbucket/Makefile
	py-qiskit/Makefile

Log Message:
*: use PYTHON_VERSION

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

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

diffstat:
 py-lingpy/Makefile      | 2 +-
 py-polars/Makefile      | 2 +-
 py-poppy/Makefile       | 3 ++-
 py-pybitbucket/Makefile | 2 +-
 py-qiskit/Makefile      | 2 +-
 5 files changed, 6 insertions(+), 5 deletions(-)

diffs:
diff --git a/py-lingpy/Makefile b/py-lingpy/Makefile
index 07c3bd9139..f3198947f7 100644
--- a/py-lingpy/Makefile
+++ b/py-lingpy/Makefile
@@ -16,7 +16,7 @@ DEPENDS+=	${PYPKGPREFIX}-appdirs>=1.4.0:../../devel/py-appdirs
 
 .include "../../lang/python/pyversion.mk"
 
-.if "${PYPKGPREFIX}" == "py27"
+.if ${PYTHON_VERSION} == 207
 DEPENDS+=	${PYPKGPREFIX}-pathlib>=1.0.1:../../devel/py-pathlib
 .endif
 
diff --git a/py-polars/Makefile b/py-polars/Makefile
index d4be66276f..66a3ba301c 100644
--- a/py-polars/Makefile
+++ b/py-polars/Makefile
@@ -23,7 +23,7 @@ WHEELFILE=	${WRKSRC}/target/wheels/*.whl
 
 .include "../../lang/python/pyversion.mk"
 
-.if ${PYPKGPREFIX} == "py37" || ${PYPKGPREFIX} == "py38" || ${PYPKGPREFIX} == "py39"
+.if ${PYTHON_VERSION} < 310
 DEPENDS+=	${PYPKGPREFIX}-typing-extensions>=4.0:../../devel/py-typing-extensions
 .endif
 
diff --git a/py-poppy/Makefile b/py-poppy/Makefile
index 65b818182c..752fb06481 100644
--- a/py-poppy/Makefile
+++ b/py-poppy/Makefile
@@ -16,7 +16,8 @@ DEPENDS+=	${PYPKGPREFIX}-scipy>=0.17.0:../../math/py-scipy
 DEPENDS+=	${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
 
 .include "../../lang/python/pyversion.mk"
-.if "${PYPKGPREFIX}" == "py27"
+
+.if ${PYTHON_VERSION} == 207
 DEPENDS+=	${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34
 .endif
 
diff --git a/py-pybitbucket/Makefile b/py-pybitbucket/Makefile
index e59c48f405..e4cad251cb 100644
--- a/py-pybitbucket/Makefile
+++ b/py-pybitbucket/Makefile
@@ -21,7 +21,7 @@ DEPENDS+=	${PYPKGPREFIX}-voluptuous>=0.9:../../wip/py-voluptuous
 
 .include "../../lang/python/pyversion.mk"
 
-.if "${PYPKGPREFIX}" == "py27"
+.if ${PYTHON_VERSION} == 207
 DEPENDS+=	${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34
 .endif
 
diff --git a/py-qiskit/Makefile b/py-qiskit/Makefile
index f52becd1c6..6d04040ba3 100644
--- a/py-qiskit/Makefile
+++ b/py-qiskit/Makefile
@@ -15,7 +15,7 @@ PYTHON_VERSIONS_INCOMPATIBLE=   27
 DEPENDS+=	${PYPKGPREFIX}-qiskit-terra>=0.15.2:../../wip/py-qiskit-terra
 DEPENDS+=	${PYPKGPREFIX}-qiskit-aer>=0.6.1:../../wip/py-qiskit-aer
 DEPENDS+=	${PYPKGPREFIX}-qiskit-ibmq-provider>=0.9.0:../../wip/py-qiskit-ibmq-provider
-DEPENDS+=	${PYPKGPREFIX}-qiskit-ignis>==0.4.0:../../wip/py-qiskit-ignis
+DEPENDS+=	${PYPKGPREFIX}-qiskit-ignis>=0.4.0:../../wip/py-qiskit-ignis
 DEPENDS+=	${PYPKGPREFIX}-qiskit-aqua>=0.7.5:../../wip/py-qiskit-aqua
 
 USE_LANGUAGES=	# none


Home | Main Index | Thread Index | Old Index