diff options
author | Britney Fransen <brfransen@gmail.com> | 2020-11-15 21:34:23 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2020-11-15 21:34:23 (GMT) |
commit | 701943ff7168cba6e02762c4f9762e974ad171de (patch) | |
tree | e19f5ff9b15d12ea9b6587659fcca96e373253ee /abs | |
parent | f81dbe61f4526e7de2bb957e8ad960fd38730627 (diff) | |
download | linhes_pkgbuild-701943ff7168cba6e02762c4f9762e974ad171de.zip linhes_pkgbuild-701943ff7168cba6e02762c4f9762e974ad171de.tar.gz linhes_pkgbuild-701943ff7168cba6e02762c4f9762e974ad171de.tar.bz2 |
python2-backports: 1.0
Diffstat (limited to 'abs')
-rw-r--r-- | abs/core/python_modules/python2-backports/PKGBUILD | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/abs/core/python_modules/python2-backports/PKGBUILD b/abs/core/python_modules/python2-backports/PKGBUILD new file mode 100644 index 0000000..0585c1d --- /dev/null +++ b/abs/core/python_modules/python2-backports/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgname=python2-backports +pkgver=1.0 +pkgrel=3 +pkgdesc="Namespace package required for backports collection" +arch=('any') +url="https://pypi.python.org/pypi/backports" +license=('PSF') +depends=('python2') + +build() { + cd "$srcdir" + cat << EOF > __init__.py +from pkgutil import extend_path +__path__ = extend_path(__path__, __name__) +EOF + python2 -m compileall . +} + +package() { + cd "$srcdir" + install -Dm644 __init__.py "$pkgdir/usr/lib/python2.7/site-packages/backports/__init__.py" + install -Dm644 __init__.pyc "$pkgdir/usr/lib/python2.7/site-packages/backports/__init__.pyc" +} |