[Biopython-dev] Re: Work towards getting KDTree compiling

Michiel Jan Laurens de Hoon mdehoon at ims.u-tokyo.ac.jp
Mon May 10 21:19:55 EDT 2004


Brad Chapman wrote:
> Hi Michiel;
> 
> [mingw32]
> 
>>>As a complete guess, I tried applying the same changes I used for
>>>Python 2.2.x to mingw32 compilation. Will you give the new setup.py 
>>>a try and see if it improves anything at all?
>>
>>Sorry, doesn't work. Using Python 2.3.3:
>>
>>building 'Bio.KDTree._CKDTree' extension
>>creating build\temp.win32-2.3\Release\bio\kdtree
>>Traceback (most recent call last):
> 
> [...]
> 
> Ugh, that's worse :-). Clearly I have no idea what I am doing with
> that, so I'll quit messing around. What I did right now was turn off
> the compilation of C++ extensions with mingw32. I think. Could you
> please double check it to make sure it works now -- by works, I
> mean skips the compilation of C++ and finishes okay. We'll have to
> wait for either better mingw32 support or someone who knows what
> they are doing to deal with this again.
> 

The compilation works, but making the installer with bdist_wininst doesn't:
$ /cygdrive/c/Python23/python setup.py build --compiler=mingw32
...
works OK
...
$ /cygdrive/c/Python23/python setup.py bdist_wininst
running bdist_wininst
running build
running build_py
running build_ext
Traceback (most recent call last):
   File "setup.py", line 511, in ?
     data_files=DATA_FILES,
   File "c:\Python23\lib\distutils\core.py", line 149, in setup
     dist.run_commands()
   File "c:\Python23\lib\distutils\dist.py", line 907, in run_commands
     self.run_command(cmd)
   File "c:\Python23\lib\distutils\dist.py", line 927, in run_command
     cmd_obj.run()
   File "c:\Python23\lib\distutils\command\bdist_wininst.py", line 101, in run
     self.run_command('build')
   File "c:\Python23\lib\distutils\cmd.py", line 333, in run_command
     self.distribution.run_command(command)
   File "c:\Python23\lib\distutils\dist.py", line 927, in run_command
     cmd_obj.run()
   File "c:\Python23\lib\distutils\command\build.py", line 107, in run
     self.run_command(cmd_name)
   File "c:\Python23\lib\distutils\cmd.py", line 333, in run_command
     self.distribution.run_command(command)
   File "c:\Python23\lib\distutils\dist.py", line 927, in run_command
     cmd_obj.run()
   File "setup.py", line 166, in run
     build_ext.run(self)
   File "c:\Python23\lib\distutils\command\build_ext.py", line 269, in run
     self.build_extensions()
   File "setup.py", line 169, in build_extensions
     self._original_compiler_so = self.compiler.compiler_so
AttributeError: MSVCCompiler instance has no attribute 'compiler_so'

--Michiel.

-- 
Michiel de Hoon, Assistant Professor
University of Tokyo, Institute of Medical Science
Human Genome Center
4-6-1 Shirokane-dai, Minato-ku
Tokyo 108-8639
Japan
http://bonsai.ims.u-tokyo.ac.jp/~mdehoon




More information about the Biopython-dev mailing list