Skip to content

Commit c08d742

Browse files
author
Daniel Verdugo Nosov
committed
Python framework URI fixed
1 parent 70a7c77 commit c08d742

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ledger.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ def install
2828
-DPython_FIND_VERSION_MAJOR=3
2929
] + std_cmake_args
3030

31-
python_version = Language::Python.major_minor_version Formula["[email protected]"].opt_bin/"python3"
32-
python_framework = "/usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/#{python_version}"
33-
site_packages_dir = lib/"python#{python_version}/site-packages"
31+
python_formula_version = Formula["[email protected]"].version
32+
python_formula_revision = Formula["[email protected]"].revision
33+
python_framework = "#{HOMEBREW_PREFIX}/Cellar/[email protected]/#{python_formula_version}_#{python_formula_revision}/Frameworks/Python.framework/Versions/3.9"
34+
site_packages_dir = lib/"python3.9/site-packages"
3435

3536
system "./acprep", "opt", "make", *args
3637

37-
inreplace "build/src/cmake_install.cmake", "#{python_framework}/lib/python#{python_version}/site-packages", "#{site_packages_dir}"
38+
inreplace "build/src/cmake_install.cmake", "#{python_framework}/lib/python3.9/site-packages", "#{site_packages_dir}"
3839

3940
system "./acprep", "opt", "make", "doc", *args
4041
system "./acprep", "opt", "make", "install", *args

0 commit comments

Comments
 (0)