From stefan at sun.ac.za Wed Jan 12 03:45:35 2011 From: stefan at sun.ac.za (=?ISO-8859-1?Q?St=E9fan_van_der_Walt?=) Date: Wed, 12 Jan 2011 10:45:35 +0200 Subject: Cython windows problems Message-ID: [Moved conversation to mailing list] Hey, guys I guess we don't have many Windows developers or users (since there haven't been any bug reports regarding this build problem so far!). The scikit should work perfectly well under Windows, but clearly we'll have to adjust the Cython builder. Christoph, do you know of a way to programmatically call Cython, instead of running the executable? Regards St?fan 2011/1/12 Johannes Radinger : [...] > and here is what Christoph Gohlke from the cython(windows implementation) > team answered: > > Hi, > > recent versions of scikit.image do not work well on Windows. I guess all > development is done on Unix compatible systems. > > The cython for Windows installers do not include a executable named > 'cython'. There is a cython.py script in the Python\Scripts folder. You can > make a cython.cmd file containing '''C:\Python26\python.exe -c "from > Cython.Compiler.Main import main; main(command_line = 1)" %*''' and put it > in the Windows search path. That might work for scikit.image. If not, just > use that script to manually cythonize the scikit source and remove the > cython calls from the setup.py files. > > You will probably need to adjust more things, e.g. library names, to make > scikit.image work on Windows. > > Christoph From stefan at sun.ac.za Wed Jan 12 15:59:30 2011 From: stefan at sun.ac.za (=?ISO-8859-1?Q?St=E9fan_van_der_Walt?=) Date: Wed, 12 Jan 2011 22:59:30 +0200 Subject: Cython windows problems In-Reply-To: <4D2DE942.1060505@uci.edu> References: <4D2DE942.1060505@uci.edu> Message-ID: Hey Christoph, 2011/1/12 Christoph Gohlke : > This subprocess call works for me on Windows: > status = subprocess.call([sys.executable, > os.path.join(os.path.dirname(sys.executable), 'Scripts', 'cython.py') , > '-o', c_file_new, pyxfile]) I'll add that in - thanks! > The scikits.image cython code fails to build with the latest Cython version > because it uses several deprecated modules, e.g.: > > from python cimport * > from stdlib cimport * > > I think these things moved to cpython and libc. I thought I changed most of these; where did you find those? > Another issue on Windows is that the name of the freeimage library is > FreeImage.dll, not libfreeimage.dll. > > Hope this helps. Very much, thank you! Cheers St?fan