mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Bastian Kleineidam: fix up any supplied command-line options.
This commit is contained in:
parent
ab49e88116
commit
2e38a50db1
1 changed files with 16 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue