Files
chromebrew/lib/buildsystems/python.rb
chromebrew-actions[bot] d74c42954e Build: zed started at 2025-07-28-04UTC. (#12281)
* move zed to rust build

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust rust buildsystem

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add cargo_about

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Updating package files for linux/386 to branch zed.

* Adjust ruby buildsystem

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* add solargraph dep to zed

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* adjust rust buildsystem

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust rust flags.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust build

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust zed and build scripts

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust zed build...

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust rust build.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Build on linux/amd64 to branch zed.

* Updating package files for linux/386 to branch zed.

* lint

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* reorder deps

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* lint

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust zed build.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* zed: Package File Update Run on linux/386 container.

* Add back png files to build

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* zed: Package File Update Run on linux/386 container.

* Adjust zed package file.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* zed: Build Run on linux/amd64.

* zed: Package File Update Run on linux/386 container.

---------

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>
Co-authored-by: Ed Reel <edreel@gmail.com>
2025-07-29 21:41:01 +00:00

44 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