[arch-commits] Commit in hy/trunk (PKGBUILD)

Morten Linderud foxboron at archlinux.org
Tue Jul 14 12:47:04 UTC 2020


    Date: Tuesday, July 14, 2020 @ 12:47:04
  Author: foxboron
Revision: 663749

upgpkg: hy 0.18.0-2 - reproducible builds

Modified:
  hy/trunk/PKGBUILD

----------+
 PKGBUILD |   23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-14 12:39:10 UTC (rev 663748)
+++ PKGBUILD	2020-07-14 12:47:04 UTC (rev 663749)
@@ -3,7 +3,7 @@
 
 pkgname=hy
 pkgver=0.18.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A dialect of Lisp that's embedded in Python"
 arch=('any')
 url="http://hylang.org/"
@@ -29,9 +29,30 @@
 
 check(){
     cd "$pkgname-$pkgver"
+
     python setup.py develop --user
     PATH="$HOME/.local/bin:$PATH"
     python setup.py pytest #--addopts "-k 'not test_bin'"
+
+    # Hy does magic to the bytecode, but we need this gone from check.
+    # this should be generated as part of the build step
+    for file in hy/contrib/__pycache__/__init__.cpython-*.pyc \
+	hy/contrib/__pycache__/hy_repr.cpython-*.pyc \
+	hy/contrib/__pycache__/loop.cpython-*.pyc \
+	hy/contrib/__pycache__/sequences.cpython-*.pyc \
+	hy/contrib/__pycache__/walk.cpython-*.pyc \
+	hy/core/__pycache__/__init__.cpython-*.pyc \
+	hy/core/__pycache__/bootstrap.cpython-*.pyc \
+	hy/core/__pycache__/language.cpython-*.pyc \
+	hy/core/__pycache__/macros.cpython-*.pyc \
+	hy/core/__pycache__/shadow.cpython-*.pyc \
+	hy/extra/__pycache__/__init__.cpython-*.pyc \
+	hy/extra/__pycache__/anaphoric.cpython-*.pyc \
+	hy/extra/__pycache__/reserved.cpython-*.pyc
+    do
+        rm "$file"
+    done
+
 }
 
 package() {


More information about the arch-commits mailing list