From 91bd04be1a0cb7dbc9850a0e9e3d1cdb425e14d2 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Wed, 10 Jun 2020 10:06:41 -0400 Subject: [PATCH] python-pipenv: remove py3-only files from py2 package --- srcpkgs/python-pipenv/template | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/srcpkgs/python-pipenv/template b/srcpkgs/python-pipenv/template index 2d9ae7f2f8..f5edf2388a 100644 --- a/srcpkgs/python-pipenv/template +++ b/srcpkgs/python-pipenv/template @@ -1,12 +1,11 @@ # Template file for 'python-pipenv' pkgname=python-pipenv version=2020.6.2 -revision=1 +revision=2 archs=noarch wrksrc="pipenv-${version}" build_style=python-module hostmakedepends="python-setuptools python3-setuptools" -pycompile_module="pipenv" depends="python python-pip python-virtualenv python-virtualenv-clone" short_desc="Python Development Workflow for Humans" maintainer="Leah Neukirchen " @@ -26,12 +25,16 @@ post_extract() { post_install() { rm -rf ${DESTDIR}/usr/lib/python2*/site-packages/pipenv/patched/yaml3 vlicense LICENSE + # remove files only valid for Python 3 + rm -f ${DESTDIR}/${py2_sitelib}/pipenv/vendor/importlib_resources/_py3.py + rm -f ${DESTDIR}/${py2_sitelib}/pipenv/vendor/jinja2/asyncsupport.py + rm -f ${DESTDIR}/${py2_sitelib}/pipenv/vendor/jinja2/asyncfilters.py + rm -f ${DESTDIR}/${py2_sitelib}/pipenv/vendor/pexpect/_async.py } python3-pipenv_package() { archs=noarch depends="python3 python3-pip python3-virtualenv python3-virtualenv-clone" - pycompile_module="pipenv" short_desc="${short_desc/Python2/Python3}" alternatives=" pipenv:pipenv:/usr/bin/pipenv3