mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2026-03-13 08:00:02 +08:00
* Removed some old-style Python stuff from setup.py
* Added a bit of documentation on ssl parameter to Connection * Version 1.1.5
This commit is contained in:
@@ -18,7 +18,7 @@ __revision__ = """$Revision$"""[11:-2]
|
||||
version_info = (
|
||||
1,
|
||||
1,
|
||||
4,
|
||||
5,
|
||||
"final",
|
||||
1)
|
||||
if version_info[3] == "final": __version__ = "%d.%d.%d" % version_info[:3]
|
||||
|
||||
@@ -61,7 +61,11 @@ class Connection(_mysql.connection):
|
||||
default encoding is used. If not set at all, character
|
||||
columns are returned as normal strings.
|
||||
client_flag -- integer, flags to use or 0 (see MySQL docs or constants/CLIENTS.py)
|
||||
|
||||
ssl -- dictionary or mapping, contains SSL connection parameters; see
|
||||
the MySQL documentation for more details (mysql_ssl_set()).
|
||||
If this is set, and the client does not support SSL,
|
||||
UnsupportedError will be raised.
|
||||
|
||||
There are a number of undocumented, non-standard methods. See the
|
||||
documentation for the MySQL C API for some hints on what they do.
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#define version_info "(1,1,4,'final',1)"
|
||||
#define __version__ "1.1.4"
|
||||
#define version_info "(1,1,5,'final',1)"
|
||||
#define __version__ "1.1.5"
|
||||
/*
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -5,20 +5,20 @@
|
||||
import os, sys
|
||||
from distutils.core import setup
|
||||
from distutils.extension import Extension
|
||||
import string
|
||||
|
||||
YES = 1
|
||||
NO = 0
|
||||
|
||||
mysqlclient = os.getenv('mysqlclient', 'mysqlclient')
|
||||
mysqlversion = tuple(map(int, string.split(os.getenv('mysqlversion', '4.0.20'), '.')))
|
||||
mysqloptlibs = string.split(os.getenv('mysqloptlibs', ''))
|
||||
mysqlversion = tuple([ int(n)
|
||||
for n in os.getenv('mysqlversion','4.0.20').split('.')])
|
||||
mysqloptlibs = os.getenv('mysqloptlibs', '').split()
|
||||
embedded_server = (mysqlclient == 'mysqld')
|
||||
|
||||
name = "MySQL-%s" % os.path.basename(sys.executable)
|
||||
if embedded_server:
|
||||
name = name + "-embedded"
|
||||
version = "1.1.4"
|
||||
version = "1.1.5"
|
||||
|
||||
# include files and library locations should cover most platforms
|
||||
include_dirs = [
|
||||
|
||||
Reference in New Issue
Block a user