1
1
class Pyoxidizer < Formula
2
2
desc "Modern Python application packaging and distribution tool"
3
3
homepage "https://github.com/indygreg/PyOxidizer"
4
- url "https://github.com/indygreg/PyOxidizer/archive/pyoxidizer/0.23 .0.tar.gz"
5
- sha256 "d96c4747d37686c052ef5a064fda59ac0b175085589cd7cdd4e277906136f8a7 "
4
+ url "https://github.com/indygreg/PyOxidizer/archive/refs/tags/ pyoxidizer/0.24 .0.tar.gz"
5
+ sha256 "d52a2727a18a3414d7ec920b8523ef4d19cb2e6db3f1276b65a83e5dd4ae8d24 "
6
6
license "MPL-2.0"
7
7
head "https://github.com/indygreg/PyOxidizer.git" , branch : "main"
8
8
@@ -12,17 +12,16 @@ class Pyoxidizer < Formula
12
12
end
13
13
14
14
bottle do
15
- sha256 cellar : :any_skip_relocation , arm64_ventura : "a438770a4ce6bb1ea06f3d23d1c0cf505f93383de2ff27d99b22d5d5b34c9f51"
16
- sha256 cellar : :any_skip_relocation , arm64_monterey : "cb62cb641b9b69e0995c19c288a051a5f59e11de3a174aceb4c67daf48332b4c"
17
- sha256 cellar : :any_skip_relocation , arm64_big_sur : "2dbd06e01ecb46b93bb3250bd0d5e349295ba6c56b77622d29c64676ed17e3e8"
18
- sha256 cellar : :any_skip_relocation , ventura : "4b03858e038e6d7a4a40abf538618704f9b891815766a45492ae41af608eba72"
19
- sha256 cellar : :any_skip_relocation , monterey : "80d2014e88d9937d1a88b99da5a8d035e8ac42ccc4df7480512e020e6ee30fb6"
20
- sha256 cellar : :any_skip_relocation , big_sur : "e9aa0d494c359e0f8b16c8c3ae31159d8f540f3f9d7946ca4bdc20bc6a83fe10"
21
- sha256 cellar : :any_skip_relocation , catalina : "3d1bc85db1bcbb5f69c8dba9c294d65ef9b674d217f6eab670ccc6eb4dedf812"
22
- sha256 cellar : :any_skip_relocation , x86_64_linux : "8de042e72b4759060bdfd5fac56d50594614f7c0cab901b8ccf70955a4191191"
15
+ sha256 cellar : :any_skip_relocation , arm64_ventura : "fa37a4ac504621090ea1f67abee2694e8c6798f5f8b35dba0f67411d70c9e133"
16
+ sha256 cellar : :any_skip_relocation , arm64_monterey : "32a2e334bd1345638385aa4d56b635b8faecb5095607ed4f177660965979478d"
17
+ sha256 cellar : :any_skip_relocation , arm64_big_sur : "6286b57cb42b275d4f6325e17842cd49bc6bedb9804616349a95250e96eb8294"
18
+ sha256 cellar : :any_skip_relocation , ventura : "46aa367ab70a1488edd31411f85942a7179c090feecd1cdfa46735668d80b457"
19
+ sha256 cellar : :any_skip_relocation , monterey : "ea59d68a7bcdf1237d3eb72348901ea846546598194a44758e4db2521cc38880"
20
+ sha256 cellar : :any_skip_relocation , big_sur : "5b9f21cdbd215dbaf5c0a41e70674244b4e192e6a64e6a4e1a3e03c933e4670a"
21
+ sha256 cellar : :any_skip_relocation , x86_64_linux : "0648492b46bc163e396b0e6e2ca99350a937476050c158dd5d8a32b9b0fc102d"
23
22
end
24
23
25
- depends_on "rust" => :build
24
+ depends_on "rust" => [ :build , :test ]
26
25
# Currently needs macOS 11 SDK due to checking for DeploymentTargetSettingName
27
26
# Remove when issue is fixed: https://github.com/indygreg/PyOxidizer/issues/431
28
27
on_catalina :or_older do
@@ -34,11 +33,18 @@ def install
34
33
end
35
34
36
35
test do
37
- system bin /"pyoxidizer" , "init-rust-project" , "hello_world"
36
+ system bin /"pyoxidizer" , "init-rust-project" , "--system-rust" , " hello_world"
38
37
assert_predicate testpath /"hello_world/Cargo.toml" , :exist?
39
38
40
39
cd "hello_world" do
41
- system bin /"pyoxidizer" , "build" , "--verbose"
40
+ if Hardware ::CPU . arm? && OS . mac? && MacOS . version < :ventura
41
+ # Use Python 3.8 to work around:
42
+ # https://github.com/Homebrew/homebrew-core/pull/136910#issuecomment-1704568838
43
+ inreplace "pyoxidizer.bzl" ,
44
+ "dist = default_python_distribution()" ,
45
+ "dist = default_python_distribution(python_version='3.8')"
46
+ end
47
+ system bin /"pyoxidizer" , "build" , "--system-rust"
42
48
end
43
49
44
50
assert_match version . to_s , shell_output ( "#{ bin } /pyoxidizer --version" )
0 commit comments