Package Details: python-djvulibre 0.8-5

Git Clone URL: https://aur.archlinux.org/python-djvulibre.git (read-only)
Package Base: python-djvulibre
Description: A set of Python bindings for the DjVuLibre library
Upstream URL: http://jwilk.net/software/python-djvulibre
Licenses: GPL2
Submitter: None
Maintainer: dark-saber
Last Packager: dark-saber
Votes: 16
Popularity: 0.003722
First Submitted: 2010-08-25 05:02
Last Updated: 2016-08-17 08:57

Latest Comments

dark-saber commented on 2016-08-17 09:00

@bunder:
Yes, it seems that makepkg doesn't support building split packages with different makedeps (FS#44050, https://bugs.archlinux.org/task/44050), so I'm reverting splitting this package. Thank you!

bunder commented on 2016-08-17 06:56

dark-saber, I'm not using any AUR helper. The package fails being built with makepkg if cython/cython2 is not installed.

dark-saber commented on 2016-08-15 19:57

@bunder:
Hmm, looks like this depends on which AUR helper you use. Yaourt fails to see extra dependencies, while pacaur installs them just fine. I've seen the method used here in some python library PKGBUILDs, but I'll look for a more universal solution. I'm not a huge fan of moving all dependencies to the top level, because it somewhat ruins the idea of split packages.

bunder commented on 2016-08-15 18:49

BTW, package fails if cython/cython2 are not installed.

running build
running build_py
creating build
creating build/lib.linux-i686-3.5
creating build/lib.linux-i686-3.5/djvu
copying djvu/__init__.py -> build/lib.linux-i686-3.5/djvu
copying djvu/const.py -> build/lib.linux-i686-3.5/djvu
copying djvu/dllpath.py -> build/lib.linux-i686-3.5/djvu
running build_ext
creating build/temp.linux-i686-3.5
creating build/temp.linux-i686-3.5/src
creating 'build/temp.linux-i686-3.5/src/config.pxi'
cythoning 'djvu.decode' extension
generating build/temp.linux-i686-3.5/src/decode.c from djvu/decode.pyx, build/temp.linux-i686-3.5/src/config.pxi, djvu/common.pxi, djvu/decode.pxd, djvu/sexpr.pxd
Traceback (most recent call last):
File "setup.py", line 300, in <module>
distutils.core.setup(**setup_params)
File "/usr/lib/python3.5/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3.5/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "setup.py", line 202, in run
distutils.command.build_ext.build_ext.run(self)
File "/usr/lib/python3.5/distutils/command/build_ext.py", line 338, in run
self.build_extensions()
File "setup.py", line 207, in build_extensions
ext.sources = list(self.cython_sources(ext))
File "setup.py", line 233, in cython_sources
self.make_file(depends, target, build_c, [source, target])
File "/usr/lib/python3.5/distutils/cmd.py", line 401, in make_file
self.execute(func, args, exec_msg, level)
File "/usr/lib/python3.5/distutils/cmd.py", line 336, in execute
util.execute(func, args, msg, dry_run=self.dry_run)
File "/usr/lib/python3.5/distutils/util.py", line 301, in execute
func(*args)
File "setup.py", line 226, in build_c
raise RuntimeError('Cython >= {ver} is required'.format(ver=req_cython_version))
RuntimeError: Cython >= 0.20 is required

Seems you need to specify makedepends at top level.

dark-saber commented on 2016-08-15 14:35

@madalu:
Great catch, fixed!

madalu commented on 2016-08-15 14:21

I believe line 50 of the PKGBUILD needs to be changed from python to python2. Otherwise this PKGBUILD simply builds two python 3 packages, one named python-djvulibre and the other named python2-djvulibre. But they are both actually python 3 packages (installed to /usr/lib/python3.5/), which results in the following conflict when trying to install both:

error: failed to commit transaction (conflicting files)
/usr/lib/python3.5/site-packages/djvu/__init__.py exists in both 'python-djvulibre' and 'python2-djvulibre'
/usr/lib/python3.5/site-packages/djvu/__pycache__/__init__.cpython-35.pyc exists in both 'python-djvulibre' and 'python2-djvulibre'
/usr/lib/python3.5/site-packages/djvu/__pycache__/const.cpython-35.pyc exists in both 'python-djvulibre' and 'python2-djvulibre'
/usr/lib/python3.5/site-packages/djvu/__pycache__/dllpath.cpython-35.pyc exists in both 'python-djvulibre' and 'python2-djvulibre'
/usr/lib/python3.5/site-packages/djvu/const.py exists in both 'python-djvulibre' and 'python2-djvulibre'
/usr/lib/python3.5/site-packages/djvu/decode.cpython-35m-x86_64-linux-gnu.so exists in both 'python-djvulibre' and 'python2-djvulibre'
/usr/lib/python3.5/site-packages/djvu/dllpath.py exists in both 'python-djvulibre' and 'python2-djvulibre'
/usr/lib/python3.5/site-packages/djvu/sexpr.cpython-35m-x86_64-linux-gnu.so exists in both 'python-djvulibre' and 'python2-djvulibre'
/usr/lib/python3.5/site-packages/python_djvulibre-0.8-py3.5.egg-info exists in both 'python-djvulibre' and 'python2-djvulibre'

dark-saber commented on 2016-08-13 10:37

@frangio:
Thank you, I've split the package, python2 version is now in https://aur.archlinux.org/packages/python2-djvulibre/, this package now provides python3 version of the library.

frangio commented on 2016-08-11 23:39

Package doesn't build. Here's a fix: http://pastebin.com/W2V0NT6c

Shouldn't this be renamed `python2-djvulibre`?

Anonymous comment on 2012-01-31 06:00

Updated to 0.3.4.

ntkoopman commented on 2011-04-04 09:45

New PKGBUILD: http://pastebin.com/vEbwvHUN

All comments