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 7bbabfa
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Formula/clingcon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,19 @@ class Clingcon < Formula
end

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

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

def install

Check failure on line 24 in Formula/clingcon.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

`brew install --verbose --build-bottle dekker1/minizinc/clingcon` failed on Linux!

==> Fetching dekker1/minizinc/clingcon ==> Downloading https://github.com/potassco/clingcon/archive/refs/tags/v5.2.1.tar.gz Already downloaded: /home/runner/.cache/Homebrew/downloads/e8baafda97cb9c06b45d150e42d464b8e61f56a377def5772ec87f774d82d669--clingcon-5.2.1.tar.gz ==> Verifying checksum for 'e8baafda97cb9c06b45d150e42d464b8e61f56a377def5772ec87f774d82d669--clingcon-5.2.1.tar.gz' ==> Installing clingcon from dekker1/minizinc /usr/bin/env tar --extract --no-same-owner --file /home/runner/.cache/Homebrew/downloads/e8baafda97cb9c06b45d150e42d464b8e61f56a377def5772ec87f774d82d669--clingcon-5.2.1.tar.gz --directory /tmp/d20240221-9188-cbs6rv /usr/bin/env cp -pR /tmp/d20240221-9188-cbs6rv/clingcon-5.2.1/. /tmp/clingcon-20240221-9188-59z9wa/clingcon-5.2.1 Error: An exception occurred within a child process: NoMethodError: undefined method `map' for #<Formula [email protected] (stable) /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/p/[email protected]> Did you mean? man tap
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
system "cmake", "--build", "build"
system "cmake", "--install", "build"
end
Expand Down

0 comments on commit 7bbabfa

Please sign in to comment.