summaryrefslogtreecommitdiff
path: root/src/distutils2/compiler
diff options
context:
space:
mode:
authorTarek Ziad? <tarek@ziade.org>2010-02-22 17:28:34 -0500
committerTarek Ziad? <tarek@ziade.org>2010-02-22 17:28:34 -0500
commitee6111744d0c6fc33d296523adcfc7d795ca0949 (patch)
tree2a8da40c3910355676f2a426679653360a154bb3 /src/distutils2/compiler
parenta8e135fdcbf45193529a5e26f14a1e31f1c08e8a (diff)
downloaddisutils2-ee6111744d0c6fc33d296523adcfc7d795ca0949.tar.gz
removed dir_util
Diffstat (limited to 'src/distutils2/compiler')
-rw-r--r--src/distutils2/compiler/ccompiler.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/distutils2/compiler/ccompiler.py b/src/distutils2/compiler/ccompiler.py
index fb40d44..7e6e662 100644
--- a/src/distutils2/compiler/ccompiler.py
+++ b/src/distutils2/compiler/ccompiler.py
@@ -13,7 +13,6 @@ from distutils2.errors import (CompileError, LinkError, UnknownFileError,
DistutilsPlatformError, DistutilsModuleError)
from distutils2.spawn import spawn
from distutils2.file_util import move_file
-from distutils2.dir_util import mkpath
from distutils2.dep_util import newer_group
from distutils2.util import split_quoted, execute
from distutils2 import log
@@ -934,10 +933,14 @@ main (int argc, char **argv) {
return move_file(src, dst, dry_run=self.dry_run)
def mkpath(self, name, mode=0777):
- mkpath(name, mode, dry_run=self.dry_run)
-
-
-# class CCompiler
+ name = os.path.normpath(name)
+ if os.path.isdir(name) or name == '':
+ return
+ if self.dry_run:
+ for part in name.split(os.sep):
+ self.log(part)
+ return
+ os.makedirs(name, mode)
# Map a sys.platform/os.name ('posix', 'nt') to the default compiler