mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 19:31:54 +08:00
Minor updates.
This commit is contained in:
@ -18,7 +18,7 @@ thread_safe_library = NO
|
||||
|
||||
mysqlclient = thread_safe_library and "mysqlclient_r" or "mysqlclient"
|
||||
|
||||
if sys.platform == "linux-386": # Red Hat
|
||||
if sys.platform == "linux-i386": # Red Hat
|
||||
include_dirs = ['/usr/include/mysql']
|
||||
library_dirs = ['/usr/lib/mysql']
|
||||
libraries = [mysqlclient, "z"]
|
||||
@ -48,10 +48,30 @@ else:
|
||||
raise "UnknownPlatform", "sys.platform=%s, os.name=%s" % \
|
||||
(sys.platform, os.name)
|
||||
|
||||
long_description = \
|
||||
"""Python interface to MySQL-3.22 and 3.23
|
||||
|
||||
MySQLdb is an interface to the popular MySQL database server for Python.
|
||||
The design goals are:
|
||||
|
||||
- Compliance with Python database API version 2.0
|
||||
- Thread-safety
|
||||
- Thread-friendliness (threads will not block each other)
|
||||
- Compatibility with MySQL 3.22 and 3.23
|
||||
|
||||
This module should be mostly compatible with an older interface
|
||||
written by Joe Skinner and others. However, the older version is
|
||||
a) not thread-friendly, b) written for MySQL 3.21, c) apparently
|
||||
not actively maintained. No code from that version is used in
|
||||
MySQLdb. MySQLdb is distributed free of charge under a license
|
||||
derived from the Python license.
|
||||
"""
|
||||
|
||||
setup (# Distribution meta-data
|
||||
name = "MySQLdb",
|
||||
version = "0.3.0b2",
|
||||
name = "MySQL-python",
|
||||
version = "0.3.0",
|
||||
description = "An interface to MySQL",
|
||||
long_description=long_description,
|
||||
author = "Andy Dustman",
|
||||
author_email = "andy@dustman.net",
|
||||
url = "http://dustman.net/andy/python/MySQLdb",
|
||||
@ -61,7 +81,7 @@ setup (# Distribution meta-data
|
||||
py_modules = ["MySQLdb", "CompatMysqldb"],
|
||||
|
||||
ext_modules = [Extension(
|
||||
name='_mysqlmodule',
|
||||
name='_mysql',
|
||||
sources=['_mysqlmodule.c'],
|
||||
include_dirs=include_dirs,
|
||||
library_dirs=library_dirs,
|
||||
|
Reference in New Issue
Block a user