Hello, list I ran into some issues when building the win32 installers for scikit-learn 0.9, and I am describing the problem and the patchy solution found in this e-mail, in case anybody can suggest a better way to handle it.
The problem manifested itself by printing the "Please don't forget to run `make` first" message upon import. This is the solution found by `wahaa` on github, which worked: > [W]e have to find a way to pass "-static-libgcc -static-libstdc++" (at least) > to the linker. I could > not found any way to pass it using environment variables and setup.cfg, so I > patched my > "c:\python27\lib\site-packages\numpy\distutils\mingw32ccompiler.py". > Search for these lines: > > # gcc-4 series releases do not support -mno-cygwin option > self.set_executables(compiler='gcc -O2 -Wall', > compiler_so='gcc -O2 -Wall > -Wstrict-prototypes', > linker_exe='g++ ', > linker_so='g++ -shared') > > > And replace by these: > > # gcc-4 series releases do not support -mno-cygwin option > self.set_executables(compiler='gcc -O2 -Wall -static-libgcc > -static-libstdc++', > compiler_so='gcc -O2 -Wall > -Wstrict-prototypes -static-libgcc -static-libstdc++', > linker_exe='g++ -static-libgcc > -static-libstdc++', > linker_so='g++ -shared -static-libgcc > -static-libstdc++') I'm compiling from within mingw32. If anybody knows a way to avoid this, or to pass the parameters in a cleaner fashion, your help will be much appreciated. Best, Vlad ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
