[Cryptech-Commits] [releng/alpha] branch python3 updated: Double-brace Ruby format voodoo to get past Python format vodooo.

git at cryptech.is git at cryptech.is
Mon Jul 13 17:18:42 UTC 2020


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch python3
in repository releng/alpha.

The following commit(s) were added to refs/heads/python3 by this push:
     new 69ac7ea  Double-brace Ruby format voodoo to get past Python format vodooo.
69ac7ea is described below

commit 69ac7eaae12a51820f01280ad4a487a1c21fc1af
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Mon Jul 13 13:18:16 2020 -0400

    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"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list