Package Details: python-unrar-cffi 0.2.2-5

Git Clone URL: https://aur.archlinux.org/python-unrar-cffi.git (read-only, click to copy)
Package Base: python-unrar-cffi
Description: Exposes unrar library functionality through a zipfile-like interface.
Upstream URL: https://github.com/davide-romanini/unrar-cffi
Licenses: Apache
Submitter: fryfrog
Maintainer: Kernald
Last Packager: fryfrog
Votes: 1
Popularity: 0.28
First Submitted: 2020-05-06 18:06 (UTC)
Last Updated: 2023-05-16 06:14 (UTC)

Latest Comments

Kernald commented on 2023-05-17 07:41 (UTC)

fd5a64aecfeb0aba07600632845d5ce82354c72b fixed it - thanks!

Kernald commented on 2023-05-16 04:55 (UTC)

Following the chance in 9ca92638ee72053d725273ab7056cc3135193899, this still doesn't build for another reason:

==> Starting build()...
/usr/bin/python: No module named build
==> ERROR: A failure occurred in build().

Should python-build be added as a makedep?

exu commented on 2023-05-15 08:12 (UTC)

Here are the dependencies found in setup.py on the github project.

    install_requires=[
        "cffi"      
    ],
    setup_requires=[
        "cffi",
        "pytest-runner",
        "wheel",
        "setuptools_scm"
    ],
    tests_require=[
        "pytest"
    ],

According to the pytest-runner Github the package is deprecated and should be removed. The requirements.txt file doesn't mention it either and has been updated more recently than setup.py.
Maybe a patch should be created that removes the relevant lines from setup.py before building the project?

Kernald commented on 2023-05-15 07:39 (UTC)

@fryfrog that's a great point! I'm really not that familiar with Python, but it looks like it's trying to install pytest-runner - maybe adding python-pytest-runner would do the trick? I don't have access to my Archlinux box right now to try, but curious to hear if that makes sense in the meantime.

fryfrog commented on 2023-05-15 00:24 (UTC)

Hey Kernald, I didn't realize I owned this package! Sorry for ignoring it so long. I've added you as a co-maintainer, feel free to fix it up how ever makes sense. But probably making python-pip a dep isn't correct, more likely we should make a package of what ever it wants to install and make that a dep.

Kernald commented on 2023-05-07 02:07 (UTC)

python-pip is indeed required, it would be nice to have it added.

exu commented on 2022-12-28 13:38 (UTC)

Please correct me if I'm wrong, but in my opinion, "python-pip" should be listed in makedepends. Without pip installed, the package building fails. See the error below.

==> Beginne package()...
/usr/lib/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
  warnings.warn(
/usr/bin/python: No module named pip
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/setuptools/installer.py", line 82, in fetch_build_egg
    subprocess.check_call(cmd)
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpwc7wnbea', '--quiet', 'pytest-runner']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/exu/.cache/paru/clone/python-unrar-cffi/src/unrar-cffi-0.2.2/setup.py", line 14, in <module>
    setup(
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 86, in setup
    _install_setup_requires(attrs)
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 80, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 874, in fetch_build_eggs
    resolved_dists = pkg_resources.working_set.resolve(
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 789, in resolve
    dist = best[req.key] = env.best_match(
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1075, in best_match
    return self.obtain(req, installer)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1087, in obtain
    return installer(requirement)
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 944, in fetch_build_egg
    return fetch_build_egg(self, req)
  File "/usr/lib/python3.10/site-packages/setuptools/installer.py", line 84, in fetch_build_egg
    raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['/usr/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpwc7wnbea', '--quiet', 'pytest-runner']' returned non-zero exit status 1.
==> FEHLER: Ein Fehler geschah in package().
    Breche ab...
Fehler: kann ‚python-unrar-cffi-0.2.2-2‘ nicht bauen: 
Fehler: kann Pakete nicht bauen: python-unrar-cffi-0.2.2-2

Patch for PKGBUILD with python-pip included as make dependency

diff --git a/PKGBUILD b/PKGBUILD
index 2c7b396..53e5634 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,6 +12,7 @@ depends=(
   'python-twine'
 )
 makedepends=(
+  'python-pip'
   'python-setuptools'
   'python-pytest'
 )

yochananmarqos commented on 2020-05-06 20:08 (UTC)

The description does not match the package.