Add removals to the setup script.

Do not display the Open Folder menu item if not connected to a 
localhost.
This commit is contained in:
Andrew Resch 2007-12-14 07:44:53 +00:00
parent 62bd4a86f8
commit 6733ce38d2
3 changed files with 32 additions and 8 deletions

View file

@ -32,13 +32,12 @@ import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, find_packages, Extension
from distutils import cmd
from distutils import cmd, sysconfig
from distutils.command.build import build as _build
from distutils.command.install import install as _install
from distutils.command.install_data import install_data as _install_data
import msgfmt
import platform
import glob
import os
@ -54,10 +53,22 @@ _extra_compile_args = [
"-DHAVE_PTHREAD=1",
"-DTORRENT_USE_OPENSSL=1",
"-DHAVE_SSL=1",
"-g",
"-p"
"-O2"
]
removals = ["-Wstrict-prototypes"]
if python_version == '2.5':
cv_opt = sysconfig.get_config_vars()["CFLAGS"]
for removal in removals:
cv_opt = cv_opt.replace(removal, " ")
sysconfig.get_config_vars()["CFLAGS"] = " ".join(cv_opt.split())
else:
cv_opt = sysconfig.get_config_vars()["OPT"]
for removal in removals:
cv_opt = cv_opt.replace(removal, " ")
sysconfig.get_config_vars()["OPT"] = " ".join(cv_opt.split())
_include_dirs = [
'./libtorrent',
'./libtorrent/include',