xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-dbs/mysql/mysql-python_1.2.5.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "Python interface to MySQL"
2*4882a593SmuzhiyunHOMEPAGE = "https://github.com/farcepest/MySQLdb1"
3*4882a593SmuzhiyunSECTION = "devel/python"
4*4882a593SmuzhiyunLICENSE = "GPL-2.0-only"
5*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://GPL-2.0;md5=b234ee4d69f5fce4486a80fdaf4a4263"
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunDEPENDS = "mysql5"
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunSRCNAME = "MySQL-python"
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunSRC_URI = "https://pypi.python.org/packages/source/M/${SRCNAME}/${SRCNAME}-${PV}.zip \
12*4882a593Smuzhiyun           file://0001-_mysql.c-fix-compilation-with-MariaDB-with-10.3.13.patch \
13*4882a593Smuzhiyun"
14*4882a593SmuzhiyunSRC_URI[md5sum] = "654f75b302db6ed8dc5a898c625e030c"
15*4882a593SmuzhiyunSRC_URI[sha256sum] = "811040b647e5d5686f84db415efd697e6250008b112b6909ba77ac059e140c74"
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunS = "${WORKDIR}/${SRCNAME}-${PV}"
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunSKIP_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)}"
20*4882a593Smuzhiyun
21*4882a593Smuzhiyuninherit ${@bb.utils.contains("BBFILE_COLLECTIONS", "meta-python2", "setuptools", "", d)}
22*4882a593Smuzhiyun
23*4882a593Smuzhiyunpython() {
24*4882a593Smuzhiyun    if 'meta-python2' not in d.getVar('BBFILE_COLLECTIONS').split():
25*4882a593Smuzhiyun        raise bb.parse.SkipRecipe('Requires meta-python2 to be present.')
26*4882a593Smuzhiyun}
27