summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/mwerkscompiler.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/distutils/mwerkscompiler.py')
-rw-r--r--Lib/distutils/mwerkscompiler.py32
1 files changed, 15 insertions, 17 deletions
diff --git a/Lib/distutils/mwerkscompiler.py b/Lib/distutils/mwerkscompiler.py
index e759456..7c77b8b 100644
--- a/Lib/distutils/mwerkscompiler.py
+++ b/Lib/distutils/mwerkscompiler.py
@@ -52,8 +52,8 @@ class MWerksCompiler (CCompiler) :
force=0):
CCompiler.__init__ (self, verbose, dry_run, force)
-
-
+
+
def compile (self,
sources,
output_dir=None,
@@ -62,14 +62,14 @@ class MWerksCompiler (CCompiler) :
debug=0,
extra_preargs=None,
extra_postargs=None):
- (output_dir, macros, include_dirs) = \
- self._fix_compile_args (output_dir, macros, include_dirs)
- self.__sources = sources
- self.__macros = macros
- self.__include_dirs = include_dirs
- # Don't need extra_preargs and extra_postargs for CW
- return []
-
+ (output_dir, macros, include_dirs) = \
+ self._fix_compile_args (output_dir, macros, include_dirs)
+ self.__sources = sources
+ self.__macros = macros
+ self.__include_dirs = include_dirs
+ # Don't need extra_preargs and extra_postargs for CW
+ return []
+
def link (self,
target_desc,
objects,
@@ -198,7 +198,7 @@ class MWerksCompiler (CCompiler) :
if self.verbose:
print '\tBuild project'
mkcwproject.buildproject(projectfilename)
-
+
def _filename_to_abs(self, filename):
# Some filenames seem to be unix-like. Convert to Mac names.
## if '/' in filename and ':' in filename:
@@ -207,13 +207,11 @@ class MWerksCompiler (CCompiler) :
## filename = macurl2path(filename)
filename = distutils.util.convert_path(filename)
if not os.path.isabs(filename):
- curdir = os.getcwd()
- filename = os.path.join(curdir, filename)
+ curdir = os.getcwd()
+ filename = os.path.join(curdir, filename)
# Finally remove .. components
components = string.split(filename, ':')
for i in range(1, len(components)):
- if components[i] == '..':
- components[i] = ''
+ if components[i] == '..':
+ components[i] = ''
return string.join(components, ':')
-
-