ext/hack/Rakefile in opener-opinion-detector-basic-1.0.3 vs ext/hack/Rakefile in opener-opinion-detector-basic-1.0.4
- old
+ new
@@ -1,18 +1,10 @@
-require 'rake'
-require_relative 'support'
+import File.expand_path('../../../task/requirements.rake', __FILE__)
+import File.expand_path('../../../task/c.rake', __FILE__)
+import File.expand_path('../../../task/python.rake', __FILE__)
-desc 'Verifies the requirements'
-task :requirements do
- verify_requirements
- require_executable("make")
-end
-
-task :compile => :requirements do
- compile_vendored_code
-end
-
-task :default => [:compile] do
- path = File.join(PYTHON_SITE_PACKAGES, 'pre_install')
-
- pip_install(PRE_INSTALL_REQUIREMENTS, path)
+task :default => :requirements do
+ Dir.chdir(File.expand_path('../../../', __FILE__)) do
+ Rake::Task['c:compile'].invoke
+ Rake::Task['core/site-packages/pre_install'].invoke
+ end
end