Wed Nov 22 10:47:34 2017 UTC ()
py-backports: Add version 1.0
This backports namespace reserves a namespace beneath which we can happily
place all of the various features that we want to cut-and-paste from later
Python versions.
(markd)
diff -r0 -r1.1 pkgsrc/devel/py-backports/DESCR
diff -r0 -r1.1 pkgsrc/devel/py-backports/Makefile
diff -r0 -r1.1 pkgsrc/devel/py-backports/PLIST
diff -r0 -r1.1 pkgsrc/devel/py-backports/files/__init__.py
This backports namespace reserves a namespace beneath which we can happily
place all of the various features that we want to cut-and-paste from later
Python versions. I hope that this will provide two benefits:
1. It should provide greater sanity, and a bit more organization, in the
Package Index.
2. When you are ready to port a Python application to a new version of Python,
you can search the code for any import statements that name a backports
package, and remove the backports for features that have now “arrived” in
the version of Python to which you are upgrading.
# $NetBSD: Makefile,v 1.1 2017/11/22 10:47:34 markd Exp $
PKGNAME= ${PYPKGPREFIX}-backports-1.0
CATEGORIES= devel python
MASTER_SITES= # empty
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://pypi.python.org/pypi/backports
COMMENT= Namespace for backported Python features
LICENSE= python-software-foundation
WRKSRC= ${WRKDIR}/bp
PY_PATCHPLIST= yes
PYTHON_VERSIONS_ACCEPTED= 27
INSTALLATION_DIRS+= ${PYSITELIB}/backports
do-extract:
mkdir ${WRKDIR}/bp
${CP} ${FILESDIR}/__init__.py ${WRKSRC}
do-build:
cd ${WRKSRC}; ${PYTHONBIN} -m compileall .; ${PYTHONBIN} -O -m compileall .
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/__init__.* ${DESTDIR}${PREFIX}/${PYSITELIB}/backports/
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"
@comment $NetBSD: PLIST,v 1.1 2017/11/22 10:47:34 markd Exp $
${PYSITELIB}/backports/__init__.py
${PYSITELIB}/backports/__init__.pyc
${PYSITELIB}/backports/__init__.pyo
# This is a Python "namespace package" http://www.python.org/dev/peps/pep-0382/
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)