Add all of the distuils modules that don't seem to have explicit tests. :-(

Move an import in mworkscompiler so that this module can be imported on
any platform.  Hopefully this works on all platforms.
This commit is contained in:
Neal Norwitz 2007-06-11 05:28:45 +00:00
parent fdffca27c1
commit 478b99b89f
2 changed files with 48 additions and 2 deletions

View file

@ -18,7 +18,6 @@ from distutils.ccompiler import \
import distutils.util
import distutils.dir_util
from distutils import log
import mkcwproject
class MWerksCompiler (CCompiler) :
"""Concrete class that implements an interface to MetroWerks CodeWarrior,
@ -188,6 +187,7 @@ class MWerksCompiler (CCompiler) :
# doesn't have a clue about our working directory.
xmlfilename = os.path.join(os.getcwd(), os.path.join(build_temp, xmlname))
log.debug("\tCreate XML file %s", xmlfilename)
import mkcwproject
xmlbuilder = mkcwproject.cwxmlgen.ProjectBuilder(settings)
xmlbuilder.generate()
xmldata = settings['tmp_projectxmldata']