Package Details: python-exiv2 0.2.0-1

Git Clone URL: https://aur.archlinux.org/python-exiv2.git (read-only)
Package Base: python-exiv2
Description: py3exiv2 is a Python3 binding to exiv2, the C++ library for manipulation of EXIF, IPTC and XMP image metadata.
Upstream URL: https://launchpad.net/py3exiv2
Keywords: graphics python
Licenses: GPL3
Submitter: artemklevtsov
Maintainer: artemklevtsov
Last Packager: artemklevtsov
Votes: 7
Popularity: 0.082177
First Submitted: 2016-03-19 22:15
Last Updated: 2017-02-24 11:41

Latest Comments

pseyfert commented on 2018-05-29 15:03

The download link http://www.py3exiv2.tuxfamily.org/releases/python3-exiv2_0.2.0.tar.gz used in the PKGBUILD does not work (anymore?). The link to version 0.3 (posted by @VinsS) does work (NB: not only the version number changed 0.2.0→0.3.0 but also the underscore turned into a hyphen.

VinsS commented on 2018-05-18 04:33

Hi,

I've just release the version 0.3

http://www.py3exiv2.tuxfamily.org/releases/python3-exiv2-0.3.0.tar.gz

DrTebi commented on 2017-02-18 04:22

I had a few problems installing this package (version 0.2.0-1).

The PKGBUILD specified python 3.5, but as far as I know, python 3.6 is the current latest version on Arch. I changed all references to '3.5' to '3.6'. Without doing this, the package would install into the wrong 'site-packages' directory (of python 3.5).


When running `makepkg -i` I also got the following error:

In file included from /usr/include/boost/python/detail/prefix.hpp:13:0,
from /usr/include/boost/python/args.hpp:8,
from /usr/include/boost/python.hpp:11,
from src/exiv2wrapper.hpp:35,
from src/exiv2wrapper.cpp:27:
/usr/include/boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory
# include <pyconfig.h>
^
compilation terminated.
==> ERROR: A failure occurred in build().
Aborting...

A quick search turned up this stack overflow page, which fixed the problem:
http://stackoverflow.com/questions/19810940/ubuntu-linking-boost-python-fatal-error-pyconfig-cannot-be-found

In my case it was this:
export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:/usr/include/python3.6m/"

that fixed it.

Nevertheless, thank you for maintaining this package, just needs a couple of small updates I suppose :)

artemklevtsov commented on 2016-10-05 12:50

@ReedWood: thanks. Updated.

ReedWood commented on 2016-10-04 21:05

The pkgbuild at the end of this comment works with version 0.2.0.
I simply adapted pkgver, pkgrel, and the needed changes to the naming scheme of the source tar.gz and unpacked directory. The new version does not require changes to in build() or package().

---Start---
# Maintainer : Artem Klevtsov a.a.klevtsov@gmail.com

_pkgname=python3-exiv2
pkgname=python-exiv2
pkgver=0.2.0
pkgrel=1
pkgdesc="py3exiv2 is a Python3 binding to exiv2, the C++ library for manipulation of EXIF, IPTC and XMP image metadata."
url="https://launchpad.net/py3exiv2"
arch=('i686' 'x86_64')
depends=('python' 'boost-libs' 'exiv2')
makedepends=('boost')
license=('GPL3')
source=("http://www.py3exiv2.tuxfamily.org/releases/${_pkgname}_${pkgver}.tar.gz")
md5sums=('a1d9ff06e543a68f2fa1b01a9a52e8cf')

build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
mkdir build
g++ -o build/exiv2wrapper.os -c -fPIC -I/usr/include/python3.5m src/exiv2wrapper.cpp
g++ -o build/exiv2wrapper_python.os -c -fPIC -I/usr/include/python3.5m src/exiv2wrapper_python.cpp
g++ -o build/libexiv2python.so -shared build/exiv2wrapper.os build/exiv2wrapper_python.os -lboost_python3 -lexiv2
}

package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
mkdir -p "${pkgdir}/usr/lib/python3.5/site-packages/pyexiv2"
install -D -m755 build/libexiv2python.so "${pkgdir}/usr/lib/python3.5/site-packages/libexiv2python.so"
install -D -m644 src/pyexiv2/__init__.py "${pkgdir}/usr/lib/python3.5/site-packages/pyexiv2/__init__.py"
install -D -m644 src/pyexiv2/exif.py "${pkgdir}/usr/lib/python3.5/site-packages/pyexiv2/exif.py"
install -D -m644 src/pyexiv2/iptc.py "${pkgdir}/usr/lib/python3.5/site-packages/pyexiv2/iptc.py"
install -D -m644 src/pyexiv2/metadata.py "${pkgdir}/usr/lib/python3.5/site-packages/pyexiv2/metadata.py"
install -D -m644 src/pyexiv2/preview.py "${pkgdir}/usr/lib/python3.5/site-packages/pyexiv2/preview.py"
install -D -m644 src/pyexiv2/utils.py "${pkgdir}/usr/lib/python3.5/site-packages/pyexiv2/utils.py"
install -D -m644 src/pyexiv2/xmp.py "${pkgdir}/usr/lib/python3.5/site-packages/pyexiv2/xmp.py"
}
---End---

artemklevtsov commented on 2016-06-27 11:40

@DrTebi: thanks for the report.

DrTebi commented on 2016-06-27 08:13

boost is also a dependency.

Without it, I get this:

==> Starting build()...
In file included from src/exiv2wrapper.cpp:26:0:
src/exiv2wrapper.hpp:34:28: fatal error: boost/python.hpp: No such file or directory
#include "boost/python.hpp"
^
compilation terminated.
==> ERROR: A failure occurred in build().
Aborting...

With boost installed, the package installed successfully.