1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
PYTHON3=$(shell py3versions -r)
%:
dh $@ --buildsystem=pybuild
override_dh_installexamples:
dh_installexamples -A mysql-connector-python/examples/*.py
override_dh_auto_clean:
PYBUILD_DIR=mysql-connector-python dh_auto_clean -- --name mysql
PYBUILD_DIR=mysqlx-connector-python dh_auto_clean -- --name mysqlx
override_dh_auto_build:
PYBUILD_DIR=mysql-connector-python dh_auto_build -- --name mysql
PYBUILD_DIR=mysqlx-connector-python dh_auto_build -- --name mysqlx
override_dh_auto_install:
PYBUILD_DIR=mysql-connector-python dh_auto_install -- --name mysql
PYBUILD_DIR=mysqlx-connector-python dh_auto_install -- --name mysqlx
override_dh_installdocs:
dh_installdocs -A README.rst README.txt
override_dh_auto_test:
echo pass
# dont try to run the test suite anymore: it's becoming more and more
# difficult to maintain compatibility between mysql and mariadb; last straw was
# tha mariadb now requires to run `mysql_install_db` to initialize a new instance, while
# mysql still allows to run `mysqld --bootstrap` to do that; too much time was
# spent to make it possibile to use mariadb but it was ultimately wased
# as now tests/mysqldb.py:bootstrap() should invoke `mysql_install_db` +
# start mysqld on the bootstrapped datadir - this is too much
#ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
# -for python in $(PYTHON3); do \
# LIB=$$($$python -c "from setuptools.command.build import build ; from setuptools import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print (b.build_purelib)") ;\
# mkdir -p $(CURDIR)/mysql_myconnpy/ ; \
# PYTHONPATH=$(CURDIR)/$$LIB $$python unittests.py --with-mysql=/usr/ --mysql-topdir=$(CURDIR)/mysql_myconnpy/ --verbosity=2 --bind-address=:: --host=::1 --stats ; \
# rm -rf $(CURDIR)/mysql_myconnpy/ ; \
# done
#endif
|