




















@raffaem: That is an upstream packaging/release issue.
See v1.2.2 release notes, which refers to PR#449, which in turn refers to the commit where it is still 1.2.1.
Why pyenv virtualenv --version says 1.2.1?
Thanks @plokid. It was leftover makedepend from versions prior to 1.2.0 and will be removed in next release.
"patch" is not a dependence
1.2.0 from upstream released. This package now installs under /usr/share/pyenv/plugins
Requested commit. Change /opt/pyenv/plugins to /usr/share/pyenv/plugins. Since it is a plugin of pyenv it should be stored in the original plugins folder. If you were to build a package on any other distro it would be saved to /usr/share. Correct me if I'm wrong.
diff --git a/PKGBUILD b/PKGBUILD
index 85be839..5dbe3ec 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,10 @@
# Maintainer: Ayrton Araujo <root@ayr-ton.net>
# Maintainer: Kevin Del Castillo R. <lans9831@gmail.com>
# Contributor: Nuno Araujo <nuno.araujo@russo79.com>
+# Contributor: Will Crosswhite <happy4pizza@ gmail dot come>
pkgname=pyenv-virtualenv
pkgver=1.1.5
-pkgrel=3
+pkgrel=4
epoch=1
pkgdesc="pyenv plugin to manage virtualenv (a.k.a. python-virtualenv)"
arch=('any')
@@ -13,8 +14,9 @@ depends=('pyenv' 'bash')
makedepends=('patch')
source=("https://github.com/pyenv/$pkgname/archive/v$pkgver.tar.gz"
"fix-symlink-308.patch")
-md5sums=('2ebab171a403915d695c383855ac78e4'
- '476790c1f9643d76efbb188b35ed19e0')
+sha256sums=('27ae3de027a6f6dccdca4085225512e559c6b94b31625bd2b357a18890a1e618'
+ '6ab2bdf711d2cb094f9ce30b045cf7cf8dc3d6fea81dd7c96f8106da7b34ea21')
+
prepare() {
cd "${srcdir?}/$pkgname-$pkgver"
@@ -24,16 +26,16 @@ prepare() {
}
package() {
- mkdir -p "${pkgdir?}"/{opt/pyenv/plugins/pyenv-virtualenv,usr/bin}
+ mkdir -p "${pkgdir?}"/{usr/share/pyenv/plugins/pyenv-virtualenv,usr/bin}
cd "${srcdir?}/$pkgname-$pkgver"
# Intall using the script
- PREFIX="${pkgdir}/opt/pyenv/plugins/pyenv-virtualenv" ./install.sh
+ PREFIX="${pkgdir}/usr/share/pyenv/plugins/pyenv-virtualenv" ./install.sh
# Link binaries
pushd bin &> /dev/null
for bin in *; do
- ln -s /opt/pyenv/plugins/pyenv-virtualenv/bin/"$bin" "$pkgdir/usr/bin/$bin"
+ ln -s /usr/share/pyenv/plugins/pyenv-virtualenv/bin/"$bin" "$pkgdir/usr/bin/$bin"
done
popd &> /dev/null
Why not installing to /usr/share/ instead of /opt/?
When I try to use virtualenv, I got this error... /usr/bin/pyenv-virtualenv: line 204: 134419 Segmentation fault (core dumped) pyenv-exec python -s -m ensurepip 2> /dev/null
I put the following into my zshrc, but autocompletion doesn't work on zsh with prezto:
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
Do someone else had the same problem?
Please dont remove the epoch, it causes that user can no automaticlly update to the continue version. pacman thinks 1:xxxxx is always newer than any version without epoch.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
1.2.0from upstream released. This package now installs under/usr/share/pyenv/plugins