setup.py fails to locate Windows DLLs
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_
if lib is None: lib = util.find_
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.
Changed in pyfftw: | |
status: | New → Invalid |
Hi,
which version of pyfftw are you using? This should be fixed in 0.2.1 already. Can you check?
Thanks