You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

106 lines
3.5 KiB

6 years ago
  1. Metadata-Version: 2.1
  2. Name: mysqlclient
  3. Version: 1.3.13
  4. Summary: Python interface to MySQL
  5. Home-page: https://github.com/PyMySQL/mysqlclient-python
  6. Author: Andy Dustman
  7. Author-email: farcepest@gmail.com
  8. Maintainer: INADA Naoki
  9. Maintainer-email: songofacandy@gmail.com
  10. License: GPL
  11. Platform: ALL
  12. Classifier: Development Status :: 5 - Production/Stable
  13. Classifier: Environment :: Other Environment
  14. Classifier: License :: OSI Approved :: GNU General Public License (GPL)
  15. Classifier: Operating System :: MacOS :: MacOS X
  16. Classifier: Operating System :: Microsoft :: Windows :: Windows NT/2000
  17. Classifier: Operating System :: OS Independent
  18. Classifier: Operating System :: POSIX
  19. Classifier: Operating System :: POSIX :: Linux
  20. Classifier: Operating System :: Unix
  21. Classifier: Programming Language :: C
  22. Classifier: Programming Language :: Python
  23. Classifier: Programming Language :: Python :: 2
  24. Classifier: Programming Language :: Python :: 2.7
  25. Classifier: Programming Language :: Python :: 3
  26. Classifier: Programming Language :: Python :: 3.4
  27. Classifier: Programming Language :: Python :: 3.5
  28. Classifier: Programming Language :: Python :: 3.6
  29. Classifier: Topic :: Database
  30. Classifier: Topic :: Database :: Database Engines/Servers
  31. Description-Content-Type: text/markdown
  32. # mysqlclient
  33. [![Build Status](https://secure.travis-ci.org/PyMySQL/mysqlclient-python.png)](http://travis-ci.org/PyMySQL/mysqlclient-python)
  34. This is a fork of [MySQLdb1](https://github.com/farcepest/MySQLdb1).
  35. This project adds Python 3 support and bug fixes.
  36. I hope this fork is merged back to MySQLdb1 like distribute was merged back to setuptools.
  37. ## Install
  38. ### Prerequisites
  39. You may need to install the Python and MySQL development headers and libraries like so:
  40. * `sudo apt-get install python-dev default-libmysqlclient-dev` # Debian / Ubuntu
  41. * `sudo yum install python-devel mysql-devel` # Red Hat / CentOS
  42. * `brew install mysql-connector-c` # macOS (Homebrew) (Currently, it has bug. See below)
  43. On Windows, there are binary wheels you can install without MySQLConnector/C or MSVC.
  44. #### Note on Python 3 : if you are using python3 then you need to install python3-dev using the following command :
  45. `sudo apt-get install python3-dev` # debian / Ubuntu
  46. `sudo yum install python3-devel ` # Red Hat / CentOS
  47. #### **Note about bug of MySQL Connector/C on macOS**
  48. See also: https://bugs.mysql.com/bug.php?id=86971
  49. Versions of MySQL Connector/C may have incorrect default configuration options that cause compilation errors when `mysqlclient-python` is installed. (As of November 2017, this is known to be true for homebrew's `mysql-connector-c` and [official package](https://dev.mysql.com/downloads/connector/c/))
  50. Modification of `mysql_config` resolves these issues as follows.
  51. Change
  52. ```
  53. # on macOS, on or about line 112:
  54. # Create options
  55. libs="-L$pkglibdir"
  56. libs="$libs -l "
  57. ```
  58. to
  59. ```
  60. # Create options
  61. libs="-L$pkglibdir"
  62. libs="$libs -lmysqlclient -lssl -lcrypto"
  63. ```
  64. An improper ssl configuration may also create issues; see, e.g, `brew info openssl` for details on macOS.
  65. ### Install from PyPI
  66. `pip install mysqlclient`
  67. NOTE: Wheels for Windows may be not released with source package. You should pin version
  68. in your `requirements.txt` to avoid trying to install newest source package.
  69. ### Install from source
  70. 1. Download source by `git clone` or [zipfile](https://github.com/PyMySQL/mysqlclient-python/archive/master.zip).
  71. 2. Customize `site.cfg`
  72. 3. `python setup.py install`
  73. ### Documentation
  74. Documentation is hosted on [Read The Docs](https://mysqlclient.readthedocs.io/)

Powered by TurnKey Linux.