Clean up some whitespace, test python version the same (cleaner) way that trunk does

This commit is contained in:
kylev
2010-02-25 21:28:13 +00:00
parent 1a728edd49
commit ab6f294c41
2 changed files with 7 additions and 7 deletions

View File

@ -15,7 +15,7 @@ Prerequisites
* Versions lower than 2.3 WON'T WORK. * Versions lower than 2.3 WON'T WORK.
* 2.4 is the primary test environment. * 2.4 is the primary test environment.
* Red Hat Linux: * Red Hat Linux:
- Make sure you have the Python development headers and libraries - Make sure you have the Python development headers and libraries
@ -43,7 +43,7 @@ Prerequisites
supported, and won't be until MySQLdb-1.3 or 2.0, if ever. supported, and won't be until MySQLdb-1.3 or 2.0, if ever.
* MySQL-5.0 is supported and tested, including stored procedures. * MySQL-5.0 is supported and tested, including stored procedures.
* MySQL-5.1 is supported (currently a release candidate) but untested. * MySQL-5.1 is supported (currently a release candidate) but untested.
It should work. It should work.
@ -93,7 +93,7 @@ Prerequisites
* May be needed for MySQL-4.0 or newer, depending on compilation * May be needed for MySQL-4.0 or newer, depending on compilation
options. If you need it, you probably already have it. options. If you need it, you probably already have it.
- you may need openssl-devel on some platforms - you may need openssl-devel on some platforms
+ C compiler + C compiler
@ -134,7 +134,7 @@ edit the [options] section of site.cfg:
if True, try to link against a static library; otherwise link if True, try to link against a static library; otherwise link
against dynamic libraries (default). You may need static linking against dynamic libraries (default). You may need static linking
to use the embedded server. to use the embedded server.
Finally, putting it together:: Finally, putting it together::
@ -187,7 +187,7 @@ their own packages available.
RPMs RPMs
.... ....
If you prefer to install RPMs, you can use the bdist_rpm command with If you prefer to install RPMs, you can use the bdist_rpm command with
setup.py. This only builds the RPM; it does not install it. You may setup.py. This only builds the RPM; it does not install it. You may
want to use the --python=XXX option, where XXX is the name of the want to use the --python=XXX option, where XXX is the name of the

View File

@ -4,8 +4,8 @@ import os
import sys import sys
from setuptools import setup, Extension from setuptools import setup, Extension
if sys.version_info < (2, 3): if not hasattr(sys, "hexversion") or sys.hexversion < 0x02030000:
raise Error("Python-2.3 or newer is required") raise Error("Python 2.3 or newer is required")
if os.name == "posix": if os.name == "posix":
from setup_posix import get_config from setup_posix import get_config