[setup] Install correct mysql driver
This commit is contained in:
parent
fb8371afb9
commit
87f9b0aa48
|
@ -17,8 +17,10 @@ You will also need a MySQL driver, recommended drivers are
|
|||
- `mysqlclient`
|
||||
- `PyMySQL`
|
||||
|
||||
`setup.py` will try to install a matching driver.
|
||||
|
||||
#### Windows
|
||||
Same as above, but for mysql you have to follow this guide:
|
||||
Same as above, but if you want to use `mysqlclient` instead of `PyMySQL` (performance?) you have to follow this guide:
|
||||
|
||||
https://www.radishlogic.com/coding/python-3/installing-mysqldb-for-python-3-in-windows/
|
||||
|
||||
|
|
4
setup.py
4
setup.py
|
@ -1,4 +1,7 @@
|
|||
from setuptools import setup, find_packages
|
||||
import os
|
||||
|
||||
mysql_driver = "PyMySQL" if os.name == "nt" else "mysqlclient"
|
||||
|
||||
setup(
|
||||
name="flaschengeist",
|
||||
|
@ -19,6 +22,7 @@ setup(
|
|||
"flask_sqlalchemy",
|
||||
"flask_cors",
|
||||
"werkzeug",
|
||||
mysql_driver
|
||||
],
|
||||
extras_require={"ldap": ["flask_ldapconn", "ldap3"], "test": ["pytest", "coverage"]},
|
||||
entry_points={
|
||||
|
|
Loading…
Reference in New Issue