Files
chromebrew/packages/py2_setuptools.rb
Maximilian Downey Twiss f6dc1d8d4e Derive binary_url in package.rb (#7082)
* 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)
2024-01-25 11:03:31 -05:00

31 lines
1.1 KiB
Ruby

require 'package'
class Py2_setuptools < Package
description 'Setuptools is the python build system from the Python Packaging Authority.'
homepage 'https://setuptools.readthedocs.io/'
# Newest python2 supported version as of 2021-04-24
version '44.1.1'
license 'MIT'
compatibility 'all'
source_url "https://files.pythonhosted.org/packages/b2/40/4e00501c204b457f10fe410da0c97537214b2265247bc9a5bc6edd55b9e4/setuptools-#{version}.zip"
source_sha256 'c67aa55db532a0dadc4d2e20ba9961cbd3ccc84d544e9029699822542b5a476b'
binary_compression 'tar.xz'
binary_sha256({
aarch64: '668bdf06acc1e02d9a2ef79e16815d14930ecf3a0cacbc449f8b4581be6453ca',
armv7l: '668bdf06acc1e02d9a2ef79e16815d14930ecf3a0cacbc449f8b4581be6453ca',
i686: '1e1dc11e756309055e2086adac78f35a7979d8458cc8c3621aa1babd2a0cf37f',
x86_64: '79faf57d69a900e81d35ce3517f4c5e7997f45925bbf31fc3bcd388084cc7e18'
})
depends_on 'python2'
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}"
end
end