| Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "Python interface to MySQL" | 
 | 2 | HOMEPAGE = "https://github.com/farcepest/MySQLdb1" | 
 | 3 | SECTION = "devel/python" | 
 | 4 | LICENSE = "GPLv2" | 
 | 5 | LIC_FILES_CHKSUM = "file://GPL-2.0;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 
 | 6 |  | 
 | 7 | DEPENDS = "mysql5" | 
 | 8 |  | 
 | 9 | SRCNAME = "MySQL-python" | 
 | 10 |  | 
| Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 11 | SRC_URI = "https://pypi.python.org/packages/source/M/${SRCNAME}/${SRCNAME}-${PV}.zip \ | 
 | 12 |            file://0001-_mysql.c-fix-compilation-with-MariaDB-with-10.3.13.patch \ | 
 | 13 | " | 
| Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 14 | SRC_URI[md5sum] = "654f75b302db6ed8dc5a898c625e030c" | 
 | 15 | SRC_URI[sha256sum] = "811040b647e5d5686f84db415efd697e6250008b112b6909ba77ac059e140c74" | 
 | 16 |  | 
 | 17 | S = "${WORKDIR}/${SRCNAME}-${PV}" | 
 | 18 |  | 
| Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame^] | 19 | SKIP_RECIPE[mysql-python] ?= "${@bb.utils.contains('I_SWEAR_TO_MIGRATE_TO_PYTHON3', 'yes', '', 'python2 is out of support for long time, read https://www.python.org/doc/sunset-python-2/ https://python3statement.org/ and if you really have to temporarily use this, then set I_SWEAR_TO_MIGRATE_TO_PYTHON3 to "yes"', d)}" | 
| Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 20 |  | 
| Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 21 | inherit ${@bb.utils.contains("BBFILE_COLLECTIONS", "meta-python2", "setuptools", "", d)} | 
 | 22 |  | 
 | 23 | python() { | 
 | 24 |     if 'meta-python2' not in d.getVar('BBFILE_COLLECTIONS').split(): | 
 | 25 |         raise bb.parse.SkipRecipe('Requires meta-python2 to be present.') | 
 | 26 | } |