Skip to content

Commit

Permalink
python-pyproj: upgrade to 1.9.6 and use pypi.bbclass
Browse files Browse the repository at this point in the history
* newer version is needed to fix build with newer python-3.7:
_proj.c:7421:21: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'exc_type'; did you mean 'curexc_type'?
     *type = tstate->exc_type;
                     ^~~~~~~~
                     curexc_type
* see pyproj4/pyproj#138
  pyproj4/pyproj#136
* and pypi.bbclass is needed to fetch the source from
  files.pythonhosted.org, the old pypi.python.org/packages/source
  doesn't have the new releases
* the newest version is 2.1.3, but that needs a bit more changes
  like:
  DEPENDS += "${PYTHON_PN}-cython-native"
  and then it still fails with:
  | Proj executable not found. Please set PROJ_DIR variable.
  | ERROR: 'python3 setup.py build ' execution failed.
  will probably need native pyproj as well, I'll leave that to someone
  actually using pyproj (I was just fixing the build error detected in
  bitbake world with Yocto 2.7 Warrior).

Signed-off-by: Martin Jansa <[email protected]>
  • Loading branch information
shr-project committed May 19, 2019
1 parent 72068b1 commit 33eccb3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions recipes-devtools/python/python-pyproj.inc
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
inherit pypi
PYPI_PACKAGE = "pyproj"

DESCRIPTION = "Python interface to PROJ.4 library"
SECTION = "devel/python"
LICENSE = "ISC & MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=77d9726a341183ab262b28b3d66dfd94 \
file://LICENSE_proj4;md5=74d9aaec5fa0cd734341e8c4dc91b608"
SRCNAME = "pyproj"

SRC_URI = "http://pypi.python.org/packages/source/p/pyproj/pyproj-${PV}.tar.gz"
SRC_URI[md5sum] = "027345e3c033fa400e0e64a1c80d34c9"
SRC_URI[sha256sum] = "53fa54c8fa8a1dfcd6af4bf09ce1aae5d4d949da63b90570ac5ec849efaf3ea8"
file://LICENSE_proj4;md5=74d9aaec5fa0cd734341e8c4dc91b608 \
"

S = "${WORKDIR}/${SRCNAME}-${PV}"
SRC_URI[md5sum] = "0f02376d59f796108e6e36db42f773c8"
SRC_URI[sha256sum] = "e0c02b1554b20c710d16d673817b2a89ff94738b0b537aead8ecb2edc4c4487b"

0 comments on commit 33eccb3

Please sign in to comment.