ruby-numo / numo-narray

Ruby/Numo::NArray - New NArray class library
http://ruby-numo.github.io/narray/
BSD 3-Clause "New" or "Revised" License
415 stars 41 forks source link

Use rake-compiler to make development a bit easier #164

Closed ankane closed 4 years ago

ankane commented 4 years ago

Just a suggestion, so feel free to close without comment if there's not any interest. This should make development a bit more standard as well as easier for Mac users (I believe it can eliminate the need for the custom setup scripts).

Edit - Here's the link: https://github.com/rake-compiler/rake-compiler

bundle exec rake compile

On Mac, the current setup.rb script doesn't return any errors, but doesn't appear to compile the extension.

ruby setup.rb compile
(ruby 2.7.1 x86_64-darwin18)

- - COMPILE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

Instead, my workflow as been:

ruby ext/numo/narray/extconf.rb
make
cp narray.bundle lib/numo/narray.bundle
ankane commented 4 years ago

Thanks @masa16!