From 69ac7eaae12a51820f01280ad4a487a1c21fc1af Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Mon, 13 Jul 2020 13:18:16 -0400 Subject: Double-brace Ruby format voodoo to get past Python format vodooo. --- scripts/build-homebrew-formula.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build-homebrew-formula.py b/scripts/build-homebrew-formula.py index 852b4b6..c14bfc5 100755 --- a/scripts/build-homebrew-formula.py +++ b/scripts/build-homebrew-formula.py @@ -92,7 +92,7 @@ class {classname} < Formula xy = Language::Python.major_minor_version "python3" - ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python#{xy}/site-packages" + ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python#{{xy}}/site-packages" resources.each do |r| r.stage do @@ -107,7 +107,7 @@ class {classname} < Formula system "python", *Language::Python.setup_install_args(prefix) bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"]) - ln_s lib/"python#{xy}/site-packages/cryptech", libexec/"vendor/lib/python#{xy}/site-packages/cryptech" + ln_s lib/"python#{{xy}}/site-packages/cryptech", libexec/"vendor/lib/python#{{xy}}/site-packages/cryptech" share.install "cryptech-alpha-firmware.tar.gz" lib.install "sw/pkcs11/libcryptech-pkcs11.dylib" -- cgit v1.2.3