mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
Python => 3.13.0 (#10585)
* Python => 3.13 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * fix VER variables in const.rb Signed-off-by: Satadru Pramanik <satadru@gmail.com> * bugfixes Signed-off-by: Satadru Pramanik <satadru@gmail.com> * More plumbing changes... Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust py3_pip and py3_setuptools to not error during python3 preinstall. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * fix hash error Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add no_binaries_needed Signed-off-by: Satadru Pramanik <satadru@gmail.com> * bugfixes... Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 to pip.rb to fix python 3.13 builds. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add workaround for missing binaries... Signed-off-by: Satadru Pramanik <satadru@gmail.com> * update cmake Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add lots of package updates. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add py3_bcrypt, rename asciidoc, add more package builds. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * More updates Signed-off-by: Satadru Pramanik <satadru@gmail.com> * revert postgresql update Signed-off-by: Satadru Pramanik <satadru@gmail.com> * final updates? Signed-off-by: Satadru Pramanik <satadru@gmail.com> * update curl Signed-off-by: Satadru Pramanik <satadru@gmail.com> * lint Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add curl to essential packages to try to prevent unit test failure on i686. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * updates Signed-off-by: Satadru Pramanik <satadru@gmail.com> * lint Signed-off-by: Satadru Pramanik <satadru@gmail.com> * fix accidental change to docker package. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Fiz condition of no new updates leavimg a message with CREW_UNATTENDED set. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * more updates, add missing libabigail binaries Signed-off-by: Satadru Pramanik <satadru@gmail.com> * rebuild py3_dbus_python Signed-off-by: Satadru Pramanik <satadru@gmail.com> * add arm build for 5.10 musl_linuxheaders Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add builds for openimageio. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust ruby buildsystem slightly to use cache more, adjust unit tests to properly invoke setarch, add py3_pynacl, update libsodium. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Ruby adjustments... Signed-off-by: Satadru Pramanik <satadru@gmail.com> * unit test adjustments... Signed-off-by: Satadru Pramanik <satadru@gmail.com> * unit test adjustments... Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add error message to pip install... Signed-off-by: Satadru Pramanik <satadru@gmail.com> * expand pip error reporting Signed-off-by: Satadru Pramanik <satadru@gmail.com> * More pip adjustments. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add more pip verbose error reporting. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add new workaround for pip failure on i686... Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Refactor pip again... Signed-off-by: Satadru Pramanik <satadru@gmail.com> * more refactoring... Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust py3_pip version restriction. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Avoid container jdk dependency in snowflake. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * update trove classifiers. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * adjust package fxn exit Signed-off-by: Satadru Pramanik <satadru@gmail.com> * adjust more jdk deps 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
c5d380d1a6
commit
79efa1dfd5
40
bin/crew
40
bin/crew
@@ -348,7 +348,7 @@ def update
|
||||
puts "\n#{can_be_updated} packages can be updated."
|
||||
puts 'Run `crew upgrade` to update all packages or `crew upgrade <package1> [<package2> ...]` to update specific packages.'
|
||||
else
|
||||
puts 'Your software is up to date.'.lightgreen
|
||||
puts 'Your software is up to date.'.lightgreen unless CREW_UNATTENDED
|
||||
end
|
||||
end
|
||||
|
||||
@@ -402,23 +402,14 @@ def upgrade(*pkgs, build_from_source: false)
|
||||
# analysis of the dependency hierarchy, to make sure that earlier
|
||||
# dependencies get upgraded first.
|
||||
|
||||
# Upgrade OpenSSL first if OpenSSL is in the upgrade list, as other
|
||||
# package upgrades, especially their postinstalls, may break until the
|
||||
# new version of OpenSSL is installed.
|
||||
if to_be_upgraded.include?('openssl')
|
||||
to_be_upgraded.insert(0, to_be_upgraded.delete('openssl'))
|
||||
rerun_upgrade = true
|
||||
end
|
||||
|
||||
# Only upgrade ruby if ruby is in the upgrade list, as other
|
||||
# package upgrades may break until crew is rerun with the new
|
||||
# version of ruby.
|
||||
if to_be_upgraded.include?('ruby')
|
||||
if to_be_upgraded.include?('openssl')
|
||||
to_be_upgraded.delete('ruby')
|
||||
else
|
||||
to_be_upgraded = ['ruby']
|
||||
end
|
||||
# Manually specify order of packages that need to be have a standalone
|
||||
# upgrade before any other packages are upgraded.
|
||||
rerun_upgrade = false
|
||||
CREW_STANDALONE_UPGRADE_ORDER.each do |upgrade_pkg|
|
||||
break if rerun_upgrade == true
|
||||
next unless to_be_upgraded.include?(upgrade_pkg)
|
||||
puts "Overriding package upgrade list due to need to upgrade #{upgrade_pkg}".green
|
||||
to_be_upgraded = [upgrade_pkg]
|
||||
rerun_upgrade = true
|
||||
end
|
||||
|
||||
@@ -453,14 +444,23 @@ def upgrade(*pkgs, build_from_source: false)
|
||||
end
|
||||
|
||||
def download
|
||||
url = PackageUtils.get_url(@pkg, build_from_source: @opt_source || @pkg.build_from_source)
|
||||
test_url = PackageUtils.get_url(@pkg, build_from_source: @opt_source || @pkg.build_from_source)
|
||||
sha256sum = PackageUtils.get_sha256(@pkg, build_from_source: @opt_source || @pkg.build_from_source)
|
||||
|
||||
# Do an early check for a missing binary package and if so rebuild.
|
||||
if !@pkg.source?(@device[:architecture]) && @pkg.superclass.to_s == 'Pip'
|
||||
url = `curl -sI #{test_url}`.lines.first.split[1] == '200' && `curl -Ls #{test_url} | sha256sum -`.chomp == sha256sum ? test_url : 'SKIP'
|
||||
@pkg.missing_binaries = true
|
||||
else
|
||||
url = test_url
|
||||
end
|
||||
|
||||
source = @pkg.source?(@device[:architecture])
|
||||
|
||||
uri = URI.parse url
|
||||
filename = File.basename(uri.path)
|
||||
# # If we're downloading a binary, reset the filename to what it would have been if we didn't download from the API.
|
||||
filename = "#{@pkg.name}-#{@pkg.version}-chromeos-#{ARCH}.#{@pkg.binary_compression}" if filename.eql?('download')
|
||||
sha256sum = PackageUtils.get_sha256(@pkg, build_from_source: @opt_source || @pkg.build_from_source)
|
||||
@extract_dir = "#{@pkg.name}.#{Time.now.utc.strftime('%Y%m%d%H%M%S')}.dir"
|
||||
|
||||
build_cachefile = File.join(CREW_CACHE_DIR, "#{@pkg.name}-#{@pkg.version}-build-#{@device[:architecture]}.tar.zst")
|
||||
|
||||
Reference in New Issue
Block a user