2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 05:22:45 +00:00

- Added the experimental command line option -R, which is a workaround a gccxml's preprocessor bug

[SVN r18138]
This commit is contained in:
Bruno da Silva de Oliveira
2003-03-30 21:06:10 +00:00
parent 0fd503d6af
commit 319a5cf97c

View File

@@ -29,6 +29,17 @@ import time
__VERSION__ = '0.6.4'
def RecursiveIncludes(include):
'Return a list containg the include dir and all its subdirectories'
dirs = [include]
def visit(arg, dir, names):
# ignore CVS dirs
if os.path.split(dir)[1] != 'CVS':
dirs.append(dir)
os.path.walk(include, visit, None)
return dirs
def GetDefaultIncludes():
if 'INCLUDE' in os.environ:
include = os.environ['INCLUDE']
@@ -46,7 +57,7 @@ def ParseArguments():
try:
options, files = getopt.getopt(
sys.argv[1:],
'I:D:vh',
'R:I:D:vh',
['module=', 'out=', 'no-using', 'pyste-ns=', 'debug', 'version', 'help'])
except getopt.GetoptError, e:
print
@@ -61,6 +72,8 @@ def ParseArguments():
includes.append(value)
elif opt == '-D':
defines.append(value)
elif opt == '-R':
includes.extend(RecursiveIncludes(value))
elif opt == '--module':
module = value
elif opt == '--out':