Skip to content

Instantly share code, notes, and snippets.

@thrasibule
Last active February 9, 2018 17:54
Show Gist options
  • Save thrasibule/f1a804f984ada6f12b37e1be30bbcbec to your computer and use it in GitHub Desktop.
Save thrasibule/f1a804f984ada6f12b37e1be30bbcbec to your computer and use it in GitHub Desktop.
# Maintainer: Nissar Chababy <funilrys at outlook dot com>
# Ex-Maintainer: David Manouchehri <manouchehri@riseup.net>
# Contributor: Vladimir Tsanev <tsachev@gmail.com>
# Contributor: Andrew Reed <reed.996@osu.edu>
pkgname=python-lz4
_pkgname=lz4
pkgver=0.21.6
pkgrel=1
pkgdesc="LZ4 Bindings for Python"
arch=('x86_64')
url="https://pypi.python.org/pypi/lz4"
license=('BSD')
makedepends=('python-distribute' 'python-setuptools')
depends=('python' 'python-deprecation')
checkdepends=('python-pytest')
source=("https://pypi.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha256sums=('7c1e9908e6aa3a4f15ddacd82cdbd0d029e826c75df3205abd382d0168fd970f')
package() {
cd $srcdir/$_pkgname-$pkgver
python setup.py install --root=$pkgdir || return 1
}
check() {
cd $srcdir/$_pkgname-$pkgver
python setup.py build_ext --inplace
pytest
}
@funilrys
Copy link

funilrys commented Feb 9, 2018

Unless you can explain/fix me the following, I'm not going to merge this ...

==> Erstelle Paket: python-lz4 0.21.6-3 (Fr 9. Feb 18:47:46 CET 2018)
==> Prüfe Laufzeit-Abhängigkeiten...
==> Prüfe Buildtime-Abhängigkeiten...
==> Empfange Quellen...
  -> lz4-0.21.6.tar.gz gefunden
==> Überprüfe source Dateien mit sha256sums...
    lz4-0.21.6.tar.gz ... Durchgelaufen
==> Entpacke Quellen...
  -> Entpacke lz4-0.21.6.tar.gz mit bsdtar
==> Beginne check()...
zip_safe flag not set; analyzing archive contents...

Installed /home/funilrys/repositories/aur/test/python-lz4/src/lz4-0.21.6/.eggs/pkgconfig-1.3.1-py3.6.egg
running build_ext
building 'lz4._version' extension
creating build
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/lz4
creating build/temp.linux-x86_64-3.6/lz4libs
gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -Ilz4libs -Ipy3c -I/usr/include/python3.6m -c lz4/_version.c -o build/temp.linux-x86_64-3.6/lz4/_version.o -O3 -Wall -Wundef
gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -Ilz4libs -Ipy3c -I/usr/include/python3.6m -c lz4libs/lz4.c -o build/temp.linux-x86_64-3.6/lz4libs/lz4.o -O3 -Wall -Wundef
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/lz4
gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.6/lz4/_version.o build/temp.linux-x86_64-3.6/lz4libs/lz4.o -L/usr/lib -lpython3.6m -o build/lib.linux-x86_64-3.6/lz4/_version.cpython-36m-x86_64-linux-gnu.so
building 'lz4.block._block' extension
creating build/temp.linux-x86_64-3.6/lz4/block
gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -Ilz4libs -Ipy3c -I/usr/include/python3.6m -c lz4/block/_block.c -o build/temp.linux-x86_64-3.6/lz4/block/_block.o -O3 -Wall -Wundef
gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -Ilz4libs -Ipy3c -I/usr/include/python3.6m -c lz4libs/lz4.c -o build/temp.linux-x86_64-3.6/lz4libs/lz4.o -O3 -Wall -Wundef
gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -Ilz4libs -Ipy3c -I/usr/include/python3.6m -c lz4libs/lz4hc.c -o build/temp.linux-x86_64-3.6/lz4libs/lz4hc.o -O3 -Wall -Wundef
creating build/lib.linux-x86_64-3.6/lz4/block
gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.6/lz4/block/_block.o build/temp.linux-x86_64-3.6/lz4libs/lz4.o build/temp.linux-x86_64-3.6/lz4libs/lz4hc.o -L/usr/lib -lpython3.6m -o build/lib.linux-x86_64-3.6/lz4/block/_block.cpython-36m-x86_64-linux-gnu.so
building 'lz4.frame._frame' extension
creating build/temp.linux-x86_64-3.6/lz4/frame
gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -Ilz4libs -Ipy3c -I/usr/include/python3.6m -c lz4/frame/_frame.c -o build/temp.linux-x86_64-3.6/lz4/frame/_frame.o -O3 -Wall -Wundef
gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -Ilz4libs -Ipy3c -I/usr/include/python3.6m -c lz4libs/lz4.c -o build/temp.linux-x86_64-3.6/lz4libs/lz4.o -O3 -Wall -Wundef
gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -Ilz4libs -Ipy3c -I/usr/include/python3.6m -c lz4libs/lz4hc.c -o build/temp.linux-x86_64-3.6/lz4libs/lz4hc.o -O3 -Wall -Wundef
gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -Ilz4libs -Ipy3c -I/usr/include/python3.6m -c lz4libs/lz4frame.c -o build/temp.linux-x86_64-3.6/lz4libs/lz4frame.o -O3 -Wall -Wundef
gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -Ilz4libs -Ipy3c -I/usr/include/python3.6m -c lz4libs/xxhash.c -o build/temp.linux-x86_64-3.6/lz4libs/xxhash.o -O3 -Wall -Wundef
creating build/lib.linux-x86_64-3.6/lz4/frame
gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.6/lz4/frame/_frame.o build/temp.linux-x86_64-3.6/lz4libs/lz4.o build/temp.linux-x86_64-3.6/lz4libs/lz4hc.o build/temp.linux-x86_64-3.6/lz4libs/lz4frame.o build/temp.linux-x86_64-3.6/lz4libs/xxhash.o -L/usr/lib -lpython3.6m -o build/lib.linux-x86_64-3.6/lz4/frame/_frame.cpython-36m-x86_64-linux-gnu.so
copying build/lib.linux-x86_64-3.6/lz4/_version.cpython-36m-x86_64-linux-gnu.so -> lz4
copying build/lib.linux-x86_64-3.6/lz4/block/_block.cpython-36m-x86_64-linux-gnu.so -> lz4/block
copying build/lib.linux-x86_64-3.6/lz4/frame/_frame.cpython-36m-x86_64-linux-gnu.so -> lz4/frame
============================================================================= test session starts ==============================================================================
platform linux -- Python 3.6.4, pytest-3.4.0, py-1.5.2, pluggy-0.6.0
rootdir: /home/funilrys/repositories/aur/test/python-lz4/src/lz4-0.21.6, inifile: setup.cfg
collected 0 items / 1 errors                                                                                                                                                   

==================================================================================== ERRORS ====================================================================================
______________________________________________________________________________ ERROR collecting  _______________________________________________________________________________
/usr/lib/python3.6/site-packages/_pytest/config.py:329: in _getconftestmodules
    return self._path2confmods[path]
E   KeyError: local('/home/funilrys/repositories/aur/test/python-lz4/src/lz4-0.21.6/tests/frame')

During handling of the above exception, another exception occurred:
/usr/lib/python3.6/site-packages/_pytest/config.py:360: in _importconftest
    return self._conftestpath2mod[conftestpath]
E   KeyError: local('/home/funilrys/repositories/aur/test/python-lz4/src/lz4-0.21.6/tests/frame/conftest.py')

During handling of the above exception, another exception occurred:
/usr/lib/python3.6/site-packages/_pytest/config.py:366: in _importconftest
    mod = conftestpath.pyimport()
/usr/lib/python3.6/site-packages/py/_path/local.py:668: in pyimport
    __import__(modname)
/usr/lib/python3.6/site-packages/_pytest/assertion/rewrite.py:213: in load_module
    py.builtin.exec_(co, mod.__dict__)
tests/frame/conftest.py:2: in <module>
    import lz4.frame as lz4frame
E   ModuleNotFoundError: No module named 'lz4'

During handling of the above exception, another exception occurred:
/usr/lib/python3.6/site-packages/py/_path/common.py:377: in visit
    for x in Visitor(fil, rec, ignore, bf, sort).gen(self):
/usr/lib/python3.6/site-packages/py/_path/common.py:429: in gen
    for p in self.gen(subdir):
/usr/lib/python3.6/site-packages/py/_path/common.py:418: in gen
    dirs = self.optsort([p for p in entries
/usr/lib/python3.6/site-packages/py/_path/common.py:419: in <listcomp>
    if p.check(dir=1) and (rec is None or rec(p))])
/usr/lib/python3.6/site-packages/_pytest/main.py:411: in _recurse
    ihook = self.gethookproxy(path)
/usr/lib/python3.6/site-packages/_pytest/main.py:315: in gethookproxy
    my_conftestmodules = pm._getconftestmodules(fspath)
/usr/lib/python3.6/site-packages/_pytest/config.py:343: in _getconftestmodules
    mod = self._importconftest(conftestpath)
/usr/lib/python3.6/site-packages/_pytest/config.py:368: in _importconftest
    raise ConftestImportFailure(conftestpath, sys.exc_info())
E   _pytest.config.ConftestImportFailure: ModuleNotFoundError("No module named 'lz4'",)
E     File "/usr/lib/python3.6/site-packages/_pytest/assertion/rewrite.py", line 213, in load_module
E       py.builtin.exec_(co, mod.__dict__)
E     File "/home/funilrys/repositories/aur/test/python-lz4/src/lz4-0.21.6/tests/frame/conftest.py", line 2, in <module>
E       import lz4.frame as lz4frame
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=========================================================================== 1 error in 0.46 seconds ============================================================================
==> FEHLER: Ein Fehler geschah in check().
    Breche ab...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment