diff --git a/converters/py-webencodings/Makefile b/converters/py-webencodings/Makefile index 4b0df133bb1d..f8c3b035db27 100644 --- a/converters/py-webencodings/Makefile +++ b/converters/py-webencodings/Makefile @@ -11,7 +11,7 @@ COMMENT= Character encoding aliases for legacy web content LICENSE= BSD3CLAUSE -USES= python +USES= python:2.7+ USE_PYTHON= distutils autoplist NO_ARCH= yes diff --git a/databases/py-sqlite3/Makefile b/databases/py-sqlite3/Makefile index be761e9c88dd..e113296d6d03 100644 --- a/databases/py-sqlite3/Makefile +++ b/databases/py-sqlite3/Makefile @@ -20,7 +20,7 @@ LIB_DEPENDS= libsqlite3.so:databases/sqlite3 PORTSCOUT= ignore:1 -USES= compiler:c11 python tar:xz +USES= compiler:c11 python:2.7+ tar:xz USE_PYTHON= autoplist distutils allflavors DISTINFO_FILE= ${PORTSDIR}/lang/python${PYTHON_SUFFIX}/distinfo diff --git a/devel/py-Jinja2/Makefile b/devel/py-Jinja2/Makefile index 81900c9475d6..2220902af803 100644 --- a/devel/py-Jinja2/Makefile +++ b/devel/py-Jinja2/Makefile @@ -20,7 +20,7 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}markupsafe>=0.23:textproc/py-markupsafe@${P NO_ARCH= yes .if empty(PKGNAMESUFFIX) -USES= python +USES= python:2.7+ USE_PYTHON= autoplist distutils .endif .if ${PKGNAMESUFFIX} == -doc diff --git a/devel/py-babel/Makefile b/devel/py-babel/Makefile index 2b7872754fe1..e96dee8933d4 100644 --- a/devel/py-babel/Makefile +++ b/devel/py-babel/Makefile @@ -15,7 +15,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${PY_FLAVOR} -USES= python +USES= python:2.7+ USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes diff --git a/devel/py-future/Makefile b/devel/py-future/Makefile index 8c07fe76c06c..7ec3306509d8 100644 --- a/devel/py-future/Makefile +++ b/devel/py-future/Makefile @@ -13,7 +13,7 @@ COMMENT= Clean single-source support for Python 3 and 2 LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.txt -USES= python +USES= python:2.7+ USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes diff --git a/devel/py-game_sdl2/Makefile b/devel/py-game_sdl2/Makefile index ca6d08279a35..a80b5e877571 100644 --- a/devel/py-game_sdl2/Makefile +++ b/devel/py-game_sdl2/Makefile @@ -19,7 +19,7 @@ LIB_DEPENDS= libpng.so:graphics/png # Upstream tends to reroll distfiles before moving under /release/ PORTSCOUT= site:http://www.renpy.org/dl/release/ -USES= jpeg python sdl +USES= jpeg python:2.7+ sdl USE_SDL= image2 mixer2 ttf2 USE_PYTHON= autoplist distutils cython EXCLUDE= gen gen3 PKG-INFO '*.egg-info' diff --git a/devel/py-ply/Makefile b/devel/py-ply/Makefile index 67ab48778224..b1e0d5a1e39e 100644 --- a/devel/py-ply/Makefile +++ b/devel/py-ply/Makefile @@ -12,7 +12,7 @@ COMMENT= Python Lex-Yacc LICENSE= BSD3CLAUSE -USES= python +USES= python:2.7+ USES+= shebangfix USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes diff --git a/devel/py-pycparser/Makefile b/devel/py-pycparser/Makefile index 73e23b1380bb..d4451aff59c6 100644 --- a/devel/py-pycparser/Makefile +++ b/devel/py-pycparser/Makefile @@ -13,7 +13,7 @@ COMMENT= C parser in Python LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -USES= python +USES= python:2.7+ USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes diff --git a/devel/py-pytz/Makefile b/devel/py-pytz/Makefile index 70b76271c68d..da3a8900390e 100644 --- a/devel/py-pytz/Makefile +++ b/devel/py-pytz/Makefile @@ -14,7 +14,7 @@ COMMENT= World Timezone Definitions for Python LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.txt -USES= python +USES= python:2.7+ USE_PYTHON= autoplist distutils NO_ARCH= yes diff --git a/devel/py-setuptools/Makefile b/devel/py-setuptools/Makefile index 772c7f14ae33..755931347f1f 100644 --- a/devel/py-setuptools/Makefile +++ b/devel/py-setuptools/Makefile @@ -17,7 +17,7 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE NO_ARCH= yes -USES= python zip +USES= python:2.7+ zip USE_PYTHON= allflavors autoplist concurrent distutils PYDISTUTILS_SETUP= ${PYSETUP} diff --git a/devel/py-setuptools_scm/Makefile b/devel/py-setuptools_scm/Makefile index d33aea4049e1..16b878ac950b 100644 --- a/devel/py-setuptools_scm/Makefile +++ b/devel/py-setuptools_scm/Makefile @@ -18,7 +18,7 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ git:devel/git \ ${PY_MERCURIAL} -USES= python +USES= python:2.7+ USE_PYTHON= autoplist distutils NO_ARCH= yes diff --git a/devel/py-six/Makefile b/devel/py-six/Makefile index 6a5f7f1f0bad..14e3d421035b 100644 --- a/devel/py-six/Makefile +++ b/devel/py-six/Makefile @@ -15,7 +15,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} -USES= python +USES= python:2.7+ USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes diff --git a/devel/py-subversion/Makefile b/devel/py-subversion/Makefile index 8f693364b480..065f6c40a69e 100644 --- a/devel/py-subversion/Makefile +++ b/devel/py-subversion/Makefile @@ -9,7 +9,7 @@ COMMENT= Python bindings for version control system BUILD_DEPENDS= ${LOCALBASE}/include/py3c.h:devel/py3c -USES= python +USES= python:2.7+ USE_PYTHON= flavors py3kplist PORTREVISION_114= 0 diff --git a/devel/scons/Makefile b/devel/scons/Makefile index d21a28b38152..4d733ee2a8f1 100644 --- a/devel/scons/Makefile +++ b/devel/scons/Makefile @@ -15,7 +15,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.txt RUN_DEPENDS= gm4:devel/m4 -USES= python shebangfix +USES= python:2.7+ shebangfix USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes diff --git a/dns/py-dnspython/Makefile b/dns/py-dnspython/Makefile index 88e99c0484ca..a45807bf8d74 100644 --- a/dns/py-dnspython/Makefile +++ b/dns/py-dnspython/Makefile @@ -13,7 +13,7 @@ COMMENT= DNS toolkit for Python LICENSE= ISCL LICENSE_FILE= ${WRKSRC}/LICENSE -USES= python zip +USES= python:2.7+ zip USE_PYTHON= autoplist concurrent cython distutils NO_ARCH= yes diff --git a/lang/cython/Makefile b/lang/cython/Makefile index e3ab51b3e366..4f633a24ffcf 100644 --- a/lang/cython/Makefile +++ b/lang/cython/Makefile @@ -14,7 +14,7 @@ COMMENT= Compiler for Writing C Extensions for the Python Language LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE.txt -USES= compiler:c11 python +USES= compiler:c11 python:2.7+ USE_PYTHON= allflavors autoplist concurrent distutils post-install: diff --git a/misc/py-tqdm/Makefile b/misc/py-tqdm/Makefile index 1506edc126c4..134eaf577d9c 100644 --- a/misc/py-tqdm/Makefile +++ b/misc/py-tqdm/Makefile @@ -15,7 +15,7 @@ LICENSE_FILE_MIT= ${WRKSRC}/LICENCE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=3.4:devel/py-setuptools_scm@${PY_FLAVOR} -USES= python +USES= python:2.7+ USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes diff --git a/textproc/py-markupsafe/Makefile b/textproc/py-markupsafe/Makefile index 13653809333c..ca177cd3eb66 100644 --- a/textproc/py-markupsafe/Makefile +++ b/textproc/py-markupsafe/Makefile @@ -15,7 +15,7 @@ COMMENT= Implements XML/HTML/XHTML Markup safe string for Python LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.rst -USES= python +USES= python:2.7+ USE_PYTHON= autoplist concurrent distutils post-install: diff --git a/textproc/py-pygments-25/Makefile b/textproc/py-pygments-25/Makefile index c598f37bc057..ed7d83e26879 100644 --- a/textproc/py-pygments-25/Makefile +++ b/textproc/py-pygments-25/Makefile @@ -16,7 +16,7 @@ COMMENT= Syntax highlighter written in Python LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -USES= python +USES= python:2.7+ USE_PYTHON= distutils concurrent autoplist CONFLICTS_INSTALL= py??-pygments diff --git a/textproc/py-toml/Makefile b/textproc/py-toml/Makefile index cf85279d69fe..2ef4da6b61a3 100644 --- a/textproc/py-toml/Makefile +++ b/textproc/py-toml/Makefile @@ -13,7 +13,7 @@ COMMENT= Python library for parsing and creating TOML LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -USES= python +USES= python:2.7+ USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes diff --git a/www/py-html5lib/Makefile b/www/py-html5lib/Makefile index 6e2aeb974c56..04c44ce6dbbd 100644 --- a/www/py-html5lib/Makefile +++ b/www/py-html5lib/Makefile @@ -17,7 +17,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}webencodings>0:converters/py-webencodings@${PY_FLAVOR} NO_ARCH= yes -USES= python +USES= python:2.7+ USE_PYTHON= autoplist distutils .include diff --git a/x11-toolkits/py-tkinter/Makefile b/x11-toolkits/py-tkinter/Makefile index aaa29b85b8ef..8f14609bdab9 100644 --- a/x11-toolkits/py-tkinter/Makefile +++ b/x11-toolkits/py-tkinter/Makefile @@ -16,7 +16,7 @@ LICENSE= PSFL PORTSCOUT= ignore:1 -USES= compiler:c11 python tar:xz tk +USES= compiler:c11 python:2.7+ tar:xz tk USE_PYTHON= distutils autoplist allflavors DIST_SUBDIR= python