Remove Snow Leopard specific hacks and note in readme.
This commit is contained in:
parent
c023d18a20
commit
76e427e052
@ -53,6 +53,14 @@ IRC
|
||||
|
||||
``#sendapatch`` on ``chat.freenode.net``.
|
||||
|
||||
Compiling on Snow Leopard
|
||||
=========================
|
||||
|
||||
Since, for some reason, compiling Python extensions under Mac OS X 10.6 won't
|
||||
use the proper ``-arch`` flag to ``gcc``, here's how you'd do it::
|
||||
|
||||
$ CFLAGS="-arch x86_64" LDFLAGS="-arch x86_64" python setup.py build
|
||||
|
||||
Change Log
|
||||
==========
|
||||
|
||||
|
14
setup.py
14
setup.py
@ -11,20 +11,6 @@ if "LIBMEMCACHED_DIR" in os.environ:
|
||||
|
||||
readme_text = open("README.rst", "U").read()
|
||||
|
||||
BASE_CFLAGS = ["-O3"]
|
||||
BASE_LDFLAGS = []
|
||||
|
||||
mac_snow_leopard = (os.path.exists("/Developer/SDKs/MacOSX10.6.sdk/") and
|
||||
int(os.uname()[2].split('.')[0]) >= 8)
|
||||
|
||||
if mac_snow_leopard:
|
||||
# Only compile the 64bit version on Snow Leopard
|
||||
# libmemcached should also be compiled with make
|
||||
# CFLAGS="-arch x86_64"
|
||||
# else one will expereince seg. faults
|
||||
BASE_LDFLAGS.extend(['-arch', 'x86_64'])
|
||||
BASE_CFLAGS.extend(['-arch', 'x86_64'])
|
||||
|
||||
pylibmc_ext = Extension("_pylibmc", ["_pylibmcmodule.c"],
|
||||
extra_compile_args=BASE_CFLAGS,
|
||||
extra_link_args=BASE_LDFLAGS,
|
||||
|
Reference in New Issue
Block a user