mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
* Update buildsystems, update jq, add jq to core for arm. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Only report build options if they exist. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Fix overeager sed replacement. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * workflow debugging Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add logging for build errors. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Revert to function in each package file. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update jq since it needs gcc14 to build. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add built packages for linux/386 to buildsystems * remove deprecated gfbgraph Signed-off-by: Satadru Pramanik <satadru@gmail.com> * fix git tag for gnome_maps Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update llvm20 package file. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update gnome_maps deps. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Abstract out buildsystems_methods reporting. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Keep LIBC_VERSION const from being empty. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update crew_profile_base and libxml2 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * clarify Signed-off-by: Satadru Pramanik <satadru@gmail.com> * lint Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update libarchive Signed-off-by: Satadru Pramanik <satadru@gmail.com> * update libavif Signed-off-by: Satadru Pramanik <satadru@gmail.com> * more updates Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add libxml2 build comment. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add build comment to libarchive. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Don't warn for missing directory during package removal. Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: satmandu <satmandu@users.noreply.github.com>
43 lines
2.0 KiB
Ruby
43 lines
2.0 KiB
Ruby
require_relative '../package'
|
|
require_relative '../require_gem'
|
|
require_relative '../report_buildsystem_methods'
|
|
|
|
class Python < Package
|
|
property :python_build_extras, :python_build_options, :python_build_relative_dir, :python_install_extras, :python_install_options, :python_no_svem
|
|
|
|
def self.build
|
|
extend ReportBuildsystemMethods
|
|
print_buildsystem_methods
|
|
|
|
@python_build_relative_dir ||= '.'
|
|
Dir.chdir(@python_build_relative_dir) do
|
|
if File.file?('setup.py')
|
|
puts "Python build options being used: #{PY3_SETUP_BUILD_OPTIONS} #{@python_build_options}".orange
|
|
puts "MAKEFLAGS=-j#{CREW_NPROC} python3 setup.py build #{PY3_SETUP_BUILD_OPTIONS} #{@python_build_options}" if CREW_VERBOSE
|
|
system "MAKEFLAGS=-j#{CREW_NPROC} python3 setup.py build #{PY3_SETUP_BUILD_OPTIONS} #{@python_build_options}"
|
|
else
|
|
puts "Python build options being used: #{PY3_BUILD_OPTIONS}".orange
|
|
puts "MAKEFLAGS=-j#{CREW_NPROC} python3 -m build #{PY3_BUILD_OPTIONS}" if CREW_VERBOSE
|
|
system "MAKEFLAGS=-j#{CREW_NPROC} python3 -m build #{PY3_BUILD_OPTIONS}"
|
|
end
|
|
@python_build_extras&.call
|
|
end
|
|
end
|
|
|
|
def self.install
|
|
Dir.chdir(@python_build_relative_dir) do
|
|
if File.file?('setup.py')
|
|
@py_setup_install_options = @python_no_svem ? PY_SETUP_INSTALL_OPTIONS_NO_SVEM : PY_SETUP_INSTALL_OPTIONS
|
|
puts "Python install options being used: #{@py_setup_install_options} #{@python_install_options}".orange
|
|
puts "MAKEFLAGS=-j#{CREW_NPROC} python3 setup.py install #{@py_setup_install_options} #{@python_install_options}" if CREW_VERBOSE
|
|
system "MAKEFLAGS=-j#{CREW_NPROC} python3 setup.py install #{@py_setup_install_options} #{@python_install_options}"
|
|
else
|
|
puts "Python install options being used: #{PY3_INSTALLER_OPTIONS}".orange
|
|
puts "MAKEFLAGS=-j#{CREW_NPROC} python3 -m installer #{PY3_INSTALLER_OPTIONS}" if CREW_VERBOSE
|
|
system "MAKEFLAGS=-j#{CREW_NPROC} python3 -m installer #{PY3_INSTALLER_OPTIONS}"
|
|
end
|
|
@python_install_extras&.call
|
|
end
|
|
end
|
|
end
|