Pip adjustments (#8848)

* force pip to use utf-8

* update pip

* Add pip update check in buildsystems/pip
This commit is contained in:
Satadru Pramanik, DO, MPH, MEng
2023-10-29 20:52:40 -04:00
committed by GitHub
parent cf3c56441b
commit 121656b1bb
2 changed files with 5 additions and 1 deletions

View File

@@ -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