mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
python-pipenv: remove py3-only files from py2 package
This commit is contained in:
parent
4895769c33
commit
91bd04be1a
1 changed files with 6 additions and 3 deletions
|
@ -1,12 +1,11 @@
|
||||||
# Template file for 'python-pipenv'
|
# Template file for 'python-pipenv'
|
||||||
pkgname=python-pipenv
|
pkgname=python-pipenv
|
||||||
version=2020.6.2
|
version=2020.6.2
|
||||||
revision=1
|
revision=2
|
||||||
archs=noarch
|
archs=noarch
|
||||||
wrksrc="pipenv-${version}"
|
wrksrc="pipenv-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
hostmakedepends="python-setuptools python3-setuptools"
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
pycompile_module="pipenv"
|
|
||||||
depends="python python-pip python-virtualenv python-virtualenv-clone"
|
depends="python python-pip python-virtualenv python-virtualenv-clone"
|
||||||
short_desc="Python Development Workflow for Humans"
|
short_desc="Python Development Workflow for Humans"
|
||||||
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
||||||
|
@ -26,12 +25,16 @@ post_extract() {
|
||||||
post_install() {
|
post_install() {
|
||||||
rm -rf ${DESTDIR}/usr/lib/python2*/site-packages/pipenv/patched/yaml3
|
rm -rf ${DESTDIR}/usr/lib/python2*/site-packages/pipenv/patched/yaml3
|
||||||
vlicense LICENSE
|
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() {
|
python3-pipenv_package() {
|
||||||
archs=noarch
|
archs=noarch
|
||||||
depends="python3 python3-pip python3-virtualenv python3-virtualenv-clone"
|
depends="python3 python3-pip python3-virtualenv python3-virtualenv-clone"
|
||||||
pycompile_module="pipenv"
|
|
||||||
short_desc="${short_desc/Python2/Python3}"
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
alternatives="
|
alternatives="
|
||||||
pipenv:pipenv:/usr/bin/pipenv3
|
pipenv:pipenv:/usr/bin/pipenv3
|
||||||
|
|
Loading…
Add table
Reference in a new issue