diff options
author | fergus.henderson <fergus.henderson@01de4be4-8c4a-0410-9132-4925637da917> | 2008-12-03 00:54:12 +0000 |
---|---|---|
committer | fergus.henderson <fergus.henderson@01de4be4-8c4a-0410-9132-4925637da917> | 2008-12-03 00:54:12 +0000 |
commit | 776caede75e0dfeb0afe68ed8af3f1d0679cacfe (patch) | |
tree | e74659858bf093e88ec0ede6fc59b5ce7c68820f | |
parent | 07eb2b004c2115caddef38e73b563ec49947c212 (diff) | |
download | distcc-776caede75e0dfeb0afe68ed8af3f1d0679cacfe.tar.gz |
Avoid a spurious message 'setup.py: PYTHON_CFLAGS must be defined.'
The top-level Makefile sets CFLAGS="$(CFLAGS) $(PYTHON_CFLAGS)"
before invoking setup.py, so there's no need for it to set PYTHON_CFLAGS.
git-svn-id: http://distcc.googlecode.com/svn/trunk@631 01de4be4-8c4a-0410-9132-4925637da917
-rwxr-xr-x | include_server/setup.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include_server/setup.py b/include_server/setup.py index 6d2dd7e..03085b0 100755 --- a/include_server/setup.py +++ b/include_server/setup.py @@ -109,11 +109,6 @@ if not cpp_flags_env: # in order to identify the include directory options. cpp_flags_includes = GetIncludes(cpp_flags_env) -python_cflags_env = os.getenv('PYTHON_CFLAGS', '') -if not python_cflags_env: - # Don't quit; perhaps the user is asking for help using '--help'. - print >> sys.stderr, 'setup.py: PYTHON_CFLAGS must be defined.' - # SRCDIR checking. if not os.getenv('SRCDIR'): # Don't quit; perhaps the user is asking for help using '--help'. @@ -165,7 +160,7 @@ ext = distutils.extension.Extension( libraries=[], runtime_library_dirs=[], extra_objects=[], - extra_compile_args=python_cflags_env.split() + extra_compile_args=[] ) args = { |