mirror of
https://github.com/harelba/q.git
synced 2024-10-03 22:39:52 +03:00
allow pyox to get injected python version, for brew ARM compat + site docs
This commit is contained in:
parent
e1f2a15bd2
commit
69eb1828f9
3
.github/workflows/q.rb.brew-formula-template
vendored
3
.github/workflows/q.rb.brew-formula-template
vendored
@ -9,7 +9,6 @@ class Q < Formula
|
||||
sha256 "0f4656b19087332d5113dd38907b50d70c55a57b3e97f810b8090132412dc9fb"
|
||||
|
||||
license "GPL-3.0-or-later"
|
||||
revision 1
|
||||
|
||||
depends_on "pyoxidizer" => :build
|
||||
depends_on "python@3.8" => :build
|
||||
@ -17,7 +16,7 @@ class Q < Formula
|
||||
depends_on xcode: ["12.4", :build]
|
||||
|
||||
def install
|
||||
system "pyoxidizer", "build", "--release"
|
||||
system "pyoxidizer", "build", "--release", "--var", "PYTHON_VERSION", "3.9"
|
||||
bin.install "./build/x86_64-apple-darwin/release/install/q"
|
||||
|
||||
system "ronn", "--roff", "--section=1", "doc/USAGE.markdown"
|
||||
|
@ -3,11 +3,13 @@
|
||||
# https://pyoxidizer.readthedocs.io/en/stable/ for details of this
|
||||
# configuration file format.
|
||||
|
||||
PYTHON_VERSION = VARS.get("PYTHON_VERSION","3.8")
|
||||
|
||||
# Configuration files consist of functions which define build "targets."
|
||||
# This function creates a Python executable and installs it in a destination
|
||||
# directory.
|
||||
def make_exe():
|
||||
dist = default_python_distribution(python_version="3.8")
|
||||
dist = default_python_distribution(python_version=PYTHON_VERSION)
|
||||
|
||||
policy = dist.make_python_packaging_policy()
|
||||
policy.set_resource_handling_mode("classify")
|
||||
|
Loading…
Reference in New Issue
Block a user