Skip to content

Commit

Permalink
Enable Python venv via PYTHONPATH (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-larraz authored Feb 5, 2024
1 parent 0f42185 commit adae0d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Formula/cvc5.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ def install
venv = virtualenv_create(buildpath/"venv", "python3")
venv.pip_install resources

ENV.prepend_path "PYTHONPATH", buildpath/"venv"/Language::Python.site_packages("python3")

command_line = [
"./configure.sh",
"--auto-download",
"--static",
"--prefix=#{prefix}",
"-DPython_EXECUTABLE=#{buildpath}/venv/bin/python",
]

command_line << "--java-bindings" if build.with? "java-bindings"
Expand Down

0 comments on commit adae0d8

Please sign in to comment.