wok-next diff python-gevent-psycopg2/receipt @ rev 21039

mariadb 10.3.10
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 09 03:18:57 2018 +0200 (2018-11-09)
parents 8b5b2a6d07b8
children
line diff
     1.1 --- a/python-gevent-psycopg2/receipt	Fri Sep 14 01:56:52 2018 +0300
     1.2 +++ b/python-gevent-psycopg2/receipt	Fri Nov 09 03:18:57 2018 +0200
     1.3 @@ -1,28 +1,30 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6 +ORIGIN="gevent-psycopg2"
     1.7  PACKAGE="python-gevent-psycopg2"
     1.8  VERSION="0.0.3"
     1.9 -CATEGORY="development"
    1.10 +CATEGORY="python"
    1.11  SHORT_DESC="Patch psycopg2 to use gevent"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="PublicDomain"
    1.14 -WEB_SITE="https://github.com/zacharyvoase/gevent-psycopg2"
    1.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.16 +HOST_ARCH="any"
    1.17  REPOLOGY="python:gevent-psycopg2"
    1.18  
    1.19 -SOURCE="gevent-psycopg2"
    1.20 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.21 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
    1.22 +TARBALL="$ORIGIN-$VERSION.tar.gz"
    1.23 +WGET_URL="https://files.pythonhosted.org/packages/source/${ORIGIN:0:1}/$ORIGIN/$TARBALL"
    1.24  
    1.25 -BUILD_DEPENDS="python-distribute python-dev python openssl"
    1.26 +BUILD_DEPENDS="python python-distribute"
    1.27  
    1.28  compile_rules() {
    1.29 +	# to fix: 'urllib2.HTTPError: HTTP Error 403: SSL is required'
    1.30  	sed -i 's|http:|https:|' distribute_setup.py
    1.31  
    1.32 -	python setup.py build &&
    1.33 -	python setup.py install --root=$DESTDIR
    1.34 +	# Python3 based compilation produce error
    1.35 +	python -B setup.py install --root=$install
    1.36  }
    1.37  
    1.38  genpkg_rules() {
    1.39  	copy @std
    1.40 -	DEPENDS="python-psycopg2 python-gevent"
    1.41 +	DEPENDS="python python-psycopg2 python-gevent"
    1.42  }