Date: Thursday, September 11, 2014 @ 08:04:07
  Author: bpiotrowski
Revision: 221424

upgpkg: python-virtualenv 1.11.6-2

correct python2 shebang before executing setup.py to fix mtime

Modified:
  python-virtualenv/trunk/PKGBUILD

----------+
 PKGBUILD |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2014-09-10 23:06:24 UTC (rev 221423)
+++ PKGBUILD    2014-09-11 06:04:07 UTC (rev 221424)
@@ -4,7 +4,7 @@
 
 pkgname=('python-virtualenv' 'python2-virtualenv')
 pkgver=1.11.6
-pkgrel=1
+pkgrel=2
 pkgdesc="Virtual Python Environment builder"
 url="https://virtualenv.pypa.io/";
 arch=('any')
@@ -32,6 +32,10 @@
   depends=('python2')
 
   cd "$srcdir/virtualenv-$pkgver"
+
+  # should report this upstream as still not fixed...
+  sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|" virtualenv.py
+
   python2 setup.py build
   python2 setup.py install --prefix=/usr --root="$pkgdir"
 
@@ -38,10 +42,6 @@
   # move this "old" version out of the way
   mv "$pkgdir/usr/bin/virtualenv" "$pkgdir/usr/bin/virtualenv2"
 
-  # should report this upstream as still not fixed...
-  sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|" \
-    $pkgdir/usr/lib/python2.7/site-packages/virtualenv.py
- 
   install -D -m644 LICENSE.txt \
     "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }

Reply via email to