You can''t rake without swig now. I keep swig out of my path so I can
do
a build without swig to be sure it works with the download.
Exception `Errno::ENOENT'' at ./rake/rakewx.rb:20 - No such file or
directory - swig -version
No such file or directory - swig -version
./rake/rakewx.rb:20:in ``''
./rake/rakewx.rb:20:in `have_good_swig''
./rake/rakewx.rb:254:in `create_internal_swig_tasks''
Perhaps this will work better:
def have_good_swig
begin
version = `#{$swig_cmd} -version`.strip.split("\n")[0]
rescue SystemCallError
end
if(!version)
return false
end
return (version >= "SWIG Version 1.3.25" && version
< "SWIG Version 2")
end
Roy
Roy Sutton wrote:> You can''t rake without swig now. I keep swig out of my path so I can do > a build without swig to be sure it works with the download.Hm. I actually tested that case. I guess ruby on MSWin behaves a bit differently than on Linux when the command doesn''t exist.> Perhaps this will work better: > > def have_good_swig > begin > version = `#{$swig_cmd} -version`.strip.split("\n")[0] > rescue SystemCallError > end > if(!version) > return false > end > return (version >= "SWIG Version 1.3.25" && version < "SWIG Version 2") > endThanks. Changed and committed. Kevin
Maybe Matching Threads
- [967] branches/wxruby2/wxwidgets_282/rake/rakewx.rb: Fix two warnings generated by the rakefile
- [713] trunk/wxruby2: Patch for rake install, added rake uninstall
- wxruby2 retooling
- [1127] trunk/wxruby2: Move shared C++ GC functions into separate file included into wx.i
- Playing with ReadFileScatter()