Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Python venv #5

Merged
merged 3 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ jobs:
if: always() && github.event_name == 'pull_request'
uses: actions/upload-artifact@main
with:
name: bottles
name: bottle-${{ matrix.os }}
path: '*.bottle.*'
12 changes: 5 additions & 7 deletions Formula/cvc5.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@ class Cvc5 < Formula

desc "Efficient open-source automatic theorem prover for SMT problems"
homepage "https://cvc5.github.io/"
url "https://github.com/cvc5/cvc5.git", tag: "cvc5-1.0.8"
url "https://github.com/cvc5/cvc5.git", tag: "cvc5-1.1.1"
head "https://github.com/cvc5/cvc5.git", branch: "main"

option "with-java-bindings", "Build Java bindings based on new C++ API"
option "with-python-bindings", "Build python bindings based on new C++ API"

depends_on "cmake"
depends_on "cmake" => :build
depends_on "python@3" => :build
depends_on "gmp"
depends_on :java if build.with? "java-bindings"
depends_on "[email protected]"

resource "tomli" do
url "https://files.pythonhosted.org/packages/c0/3f/d7af728f075fb08564c5949a9c95e44352e23dee646869fa104a3b2060a3/tomli-2.0.1.tar.gz"
Expand All @@ -25,18 +24,17 @@ class Cvc5 < Formula
end

def install
venv = virtualenv_create(libexec)
venv = virtualenv_create(buildpath/"venv", "python3")
venv.pip_install resources

command_line = [
"./configure.sh",
"--auto-download",
"--static",
"--prefix=#{prefix}",
"-DCMAKE_FIND_FRAMEWORK=NEVER",
"-DPython_EXECUTABLE=#{buildpath}/venv/bin/python",
mpreiner marked this conversation as resolved.
Show resolved Hide resolved
]

command_line << "--python-bindings" if build.with? "python-bindings"
command_line << "--java-bindings" if build.with? "java-bindings"

command = Shellwords.join(command_line)
Expand Down
Loading