mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
Add gem binary build functionality and also refactor upload to use regex in lieu of sed (#10494)
* Add initial plumbing for ruby gem-compiler use. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add binary gem building to ruby buildsystem. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Refactor upload to avoid sed. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add gem binary build plumbing to crew. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add binary_compression to gems. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add ruby gem binaries. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Move ruby_ruby_libversion to core. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Ruby gem update check should account for local versions. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Remove unused update_sha256 function. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add no_compile_needed to ruby_rubocop.rb Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Remove ruby_gem_compiler from buildessential. Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
committed by
GitHub
parent
60a54a3441
commit
24cda80f45
@@ -1,8 +1,7 @@
|
||||
Encoding.default_external = Encoding::UTF_8
|
||||
Encoding.default_internal = Encoding::UTF_8
|
||||
require 'json'
|
||||
require_relative '../const'
|
||||
require_relative '../package'
|
||||
require 'package'
|
||||
|
||||
class Pip < Package
|
||||
property :pip_install_extras, :pre_configure_options
|
||||
@@ -40,7 +39,7 @@ class Pip < Package
|
||||
end
|
||||
puts "Installing #{@py_pkg} python module. This may take a while...".lightblue
|
||||
puts "Additional pre_configure_options being used: #{@pre_configure_options.nil? ? '<no pre_configure_options>' : @pre_configure_options}".orange
|
||||
puts "#{@py_pkg.capitalize} is configured to install a pre-release version." if prerelease
|
||||
puts "#{@py_pkg.capitalize} is configured to install a pre-release version." if prerelease?
|
||||
system "MAKEFLAGS=-j#{CREW_NPROC} #{@pre_configure_options} python -s -m pip install --ignore-installed -U \"#{@py_pkg}==#{@py_pkg_chromebrew_version}\" | grep -v 'Requirement already satisfied'", exception: false
|
||||
|
||||
if @source_url == 'SKIP'
|
||||
|
||||
Reference in New Issue
Block a user