mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
* Add binary_compression value to each package * Remove binary_url values and arrays * Handle packages with empty binary_sha256 arrays (either missing binaries or not compiled by us)
35 lines
1017 B
Ruby
35 lines
1017 B
Ruby
require 'package'
|
|
|
|
class Py2_pip < Package
|
|
description 'Pip is the python package manager from the Python Packaging Authority.'
|
|
homepage 'https://pip.pypa.io/'
|
|
version '20.3.4'
|
|
license 'MIT'
|
|
compatibility 'all'
|
|
source_url 'https://github.com/pypa/pip.git'
|
|
git_hashtag version
|
|
binary_compression 'tar.xz'
|
|
|
|
binary_sha256({
|
|
aarch64: '62d2b9126951628f2fd54bdfa3edcd67e6da21a60a42671e3523ed9ed87c734b',
|
|
armv7l: '62d2b9126951628f2fd54bdfa3edcd67e6da21a60a42671e3523ed9ed87c734b',
|
|
i686: '9dc11923ee4148311cb82442524700716044addacae4794b6fb2e31b56667d47',
|
|
x86_64: 'e7ac1be2c32e23267f7df461b64716976e928308b61bd1991d51ce0a1166a294'
|
|
})
|
|
|
|
depends_on 'python2'
|
|
depends_on 'py2_setuptools'
|
|
depends_on 'py2_wheel'
|
|
|
|
def self.build
|
|
system "python2 setup.py build #{PY2_SETUP_BUILD_OPTIONS}"
|
|
end
|
|
|
|
def self.install
|
|
system "python2 setup.py install #{PY_SETUP_INSTALL_OPTIONS}"
|
|
|
|
# Don't make pip2 the default pip
|
|
FileUtils.rm_f "#{CREW_DEST_PREFIX}/bin/pip"
|
|
end
|
|
end
|