[Dev] Python 2.4.1 upgrade issue

Mike Taylor bear at code-bear.com
Tue May 17 00:05:31 PDT 2005


While working on the Python 2.4.1 upgrade I stumbled across an issue  
that I wanted to ask about.

It seems that the version of distutils egenix-mx-base was developed  
with is not compatible with Python 2.4.1 - when the setup.py step is  
run during the win32 debug build:

../../debug/bin/python_d.exe setup.py build --build-base=build_debug  
--debug install --force

it fails with the following:

running mx_autoconf
C: 
\cygwin\home\builder\tinderbuild\external\debug\bin\lib\distutils\dist.p 
y:222: UserWarning: 'licence' distribution option is deprecated; use  
'license'  warnings.warn(msg)
Traceback (most recent call last):
File "setup.py", line 16, in ?
     mxSetup.run_setup(configurations)
File  
"C:\cygwin\home\builder\tinderbuild\external\egenix-mx\egenix-mx-base 
-2.1.0\mxSetup.py", line 813, in run_setup
     apply(setup, (), kws)
File  
"C: 
\cygwin\home\builder\tinderbuild\external\debug\bin\lib\distutils\core.p 
y", line 149, in setup
     dist.run_commands()
File  
"C: 
\cygwin\home\builder\tinderbuild\external\debug\bin\lib\distutils\dist.p 
y", line 946, in run_commands
     self.run_command(cmd)
File  
"C: 
\cygwin\home\builder\tinderbuild\external\debug\bin\lib\distutils\dist.p 
y", line 966, in run_command
     cmd_obj.run()
File  
"C: 
\cygwin\home\builder\tinderbuild\external\debug\bin\lib\distutils\comman 
d\build.py", line 112, in run
     self.run_command(cmd_name)
File  
"C: 
\cygwin\home\builder\tinderbuild\external\debug\bin\lib\distutils\cmd.py 
", line 333, in run_command
     self.distribution.run_command(command)
File  
"C: 
\cygwin\home\builder\tinderbuild\external\debug\bin\lib\distutils\dist.p 
y", line 966, in run_command
     cmd_obj.run()
File  
"C:\cygwin\home\builder\tinderbuild\external\egenix-mx\egenix-mx-base 
-2.1.0\mxSetup.py", line 86, in run
     self._check_compiler()
File  
"C: 
\cygwin\home\builder\tinderbuild\external\debug\bin\lib\distutils\comman 
d\config.py", line 107, in _check_compiler
     dry_run=self.dry_run, force=1)
File  
"C: 
\cygwin\home\builder\tinderbuild\external\debug\bin\lib\distutils\ccompi 
ler.py", line 1177, in new_compiler
     return klass (None, dry_run, force)
File  
"C:\cygwin\home\builder\tinderbuild\external\egenix-mx\egenix-mx-base 
-2.1.0\mxSetup.py", line 156, in mx_msvccompiler__init__
      
self.compile_options.extend(['/O2','/Gf','/GB','/GD'])AttributeError:  
MSVCCompiler instance has no attribute 'compile_options'
a traceback on line 157 or mxSetup.py:

     self.compile_options.extend(['/O2','/Gf','/GB','/GD'])

it seems that compile_options attribute doesn't exist in the  
MSVCCompiler class

if I do the quick-n-dirty patch to comment out that line it builds.

I'm leaving the patch in for now and I'll chat with you all about this  
later

---
Bear
http://code-bear.com

Open Source Applications Foundation (OSAF)
http://www.osafoundation.org

PGP Fingerprint = 9996 719F 973D B11B E111  D770 9331 E822 40B3 CD29

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.osafoundation.org/pipermail/chandler-dev/attachments/20050517/40abb58b/PGP.pgp


More information about the Dev mailing list