Skip to content

Commit

Permalink
clingon: set install location for python package
Browse files Browse the repository at this point in the history
  • Loading branch information
Dekker1 committed Feb 21, 2024
1 parent 1453674 commit 1ffe41f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Formula/clingcon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,17 @@ class Clingcon < Formula
end

depends_on "cmake" => :build
depends_on "[email protected]" => :build
depends_on "clingo"

def python
deps.map(&:to_formula)
.detect { |f| f.name.match?(/^python@\d\.\d+$/) }

Check failure on line 20 in Formula/clingcon.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/CollectionMethods: Prefer `find` over `detect`.
.map { |f| f.opt_libexec/"bin/python" }
end

def install
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
system "cmake", "-S", ".", "-B", "build", "-DPYCLINGCON_INSTALL_DIR=#{prefix/Language::Python.site_packages(python)}/lib/python3.9/site-packages", *std_cmake_args

Check failure on line 25 in Formula/clingcon.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Layout/LineLength: Line is too long. [166/118]
system "cmake", "--build", "build"
system "cmake", "--install", "build"
end
Expand Down

0 comments on commit 1ffe41f

Please sign in to comment.