mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
Pip adjustments (#8848)
* force pip to use utf-8 * update pip * Add pip update check in buildsystems/pip
This commit is contained in:
committed by
GitHub
parent
cf3c56441b
commit
121656b1bb
@@ -1,7 +1,11 @@
|
||||
Encoding.default_external = Encoding::UTF_8
|
||||
Encoding.default_internal = Encoding::UTF_8
|
||||
require 'package'
|
||||
|
||||
class Pip < Package
|
||||
def self.install
|
||||
puts 'Checking for pip updates'.orange if @opt_verbose
|
||||
system 'python3 -s -m pip install -U pip', exception: false
|
||||
puts "Installing #{name.gsub('py3_', '')} python module. This may take a while...".lightblue
|
||||
system "MAKEFLAGS=-j#{CREW_NPROC} python -s -m pip install #{name.gsub('py3_', '')}", exception: false
|
||||
@pip_files = `python3 -s -m pip show -f #{name.gsub('py3_', '')}`.chomp
|
||||
|
||||
Reference in New Issue
Block a user