Kaydet (Commit) 2e38a50d authored tarafından Greg Ward's avatar Greg Ward

Bastian Kleineidam: fix up any supplied command-line options.

üst ab49e881
......@@ -14,6 +14,7 @@ this header file lives".
__revision__ = "$Id$"
import sys, os, string, re
from types import *
from distutils.core import Command
from distutils.errors import DistutilsExecError
......@@ -69,7 +70,21 @@ class config (Command):
self.temp_files = []
def finalize_options (self):
pass
if self.include_dirs is None:
self.include_dirs = self.distribution.include_dirs or []
elif type(self.include_dirs) is StringType:
self.include_dirs = string.split(self.include_dirs, os.pathsep)
if self.libraries is None:
self.libraries = []
elif type(self.libraries) is StringType:
self.libraries = [self.libraries]
if self.library_dirs is None:
self.library_dirs = []
elif type(self.library_dirs) is StringType:
self.library_dirs = string.split(self.library_dirs, os.pathsep)
def run (self):
pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment