setup.py fails to locate Windows DLLs

Bug #752194 reported by Martijn Jasperse
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PyFFTW
Invalid
Undecided
Unassigned

Bug Description

Thanks to the lack of naming conventions under windows, setup.py is unable to locate the latest precompiled DLLs from fftw.org which are of the form 'libfftw3-3.dll'. Yes, renaming is a fix but then I have duplicates as other programs look for this file structure.

So, a super-simple fix for this would to be to add something like to following after setup.py:29

            if os.name == 'nt' and lib is None:
                lib = util.find_library('lib'+name)
                if lib is None: lib = util.find_library('lib'+name+'-3')
            if lib is None: raise OSError, "File not found"

The last line is because when find_library fails it returns None instead of raising an exception. I believe this then works with the desired error handler.

I also suggest something like
   if packages == []: exit(1)
after check_libs() to stop it attempting to install 0 libraries...

Have been happily using pyFFTW3 under Linux for a while, and just trying to get it running under Windows for some less tech-savvy colleagues.

Cheers.

Revision history for this message
Jochen Schroeder (cyco) wrote :

Hi,

which version of pyfftw are you using? This should be fixed in 0.2.1 already. Can you check?

Thanks

Revision history for this message
Martijn Jasperse (m-jasperse) wrote :

Err... you are absolutely right, I was using v0.2 obtained from berlios.de; had assumed the two sites were just mirrors but did not realise one was deprecated. My apologies.

Cheers.

Jochen Schroeder (cyco)
Changed in pyfftw:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.