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

Python 3.8: Migrate connected formulae #47326

Closed
wants to merge 63 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
826e2d4
adios2: revision bump for python@3.8
bayandin Dec 2, 2019
6eedfef
anjuta: revision bump for python@3.8
bayandin Dec 2, 2019
6600379
apache-arrow: revision bump for python@3.8
bayandin Dec 2, 2019
214db4a
arcade-learning-environment: revision bump for python@3.8
bayandin Dec 2, 2019
218aed4
astrometry-net: revision bump for python@3.8
bayandin Dec 2, 2019
8fba2f8
aubio: revision bump for python@3.8
bayandin Dec 2, 2019
144be4b
bind: revision bump for python@3.8
bayandin Dec 2, 2019
d09a1bb
boost-python3: revision bump for python@3.8
bayandin Dec 2, 2019
b68b6fc
breezy: revision bump for python@3.8
bayandin Dec 2, 2019
dfefc0b
carla: revision bump for python@3.8
bayandin Dec 2, 2019
b9a9dbd
cassandra: revision bump for python@3.8
bayandin Dec 2, 2019
b6c2c37
csound: revision bump for python@3.8
bayandin Dec 2, 2019
7f68527
cython: revision bump for python@3.8
bayandin Dec 2, 2019
7c29f37
dvc: revision bump for python@3.8
bayandin Dec 2, 2019
f20512f
evince: revision bump for python@3.8
bayandin Dec 2, 2019
48ecae9
gdal: revision bump for python@3.8
bayandin Dec 2, 2019
304a0b3
gdcm: revision bump for python@3.8
bayandin Dec 2, 2019
31ef54b
geos: revision bump for python@3.8
bayandin Dec 2, 2019
79be20f
git-cola: revision bump for python@3.8
bayandin Dec 2, 2019
86b7d7f
gnome-builder: revision bump for python@3.8
bayandin Dec 2, 2019
5db712d
gnome-recipes: revision bump for python@3.8
bayandin Dec 2, 2019
b7bc7a7
gobject-introspection: revision bump for python@3.8
bayandin Dec 2, 2019
17abff1
graph-tool: revision bump for python@3.8
bayandin Dec 2, 2019
31cb44a
gst-python: revision bump for python@3.8
bayandin Dec 2, 2019
face034
gtk-doc: revision bump for python@3.8
bayandin Dec 2, 2019
72eb1d3
gtranslator: revision bump for python@3.8
bayandin Dec 2, 2019
2824379
itstool: revision bump for python@3.8
bayandin Dec 2, 2019
339a28b
libpeas: revision bump for python@3.8
bayandin Dec 2, 2019
bb7ebaa
libtorrent-rasterbar: revision bump for python@3.8
bayandin Dec 2, 2019
93ef893
libxml2: revision bump for python@3.8
bayandin Dec 2, 2019
32b12c1
mat2: revision bump for python@3.8
bayandin Dec 2, 2019
7956a31
mpi4py: revision bump for python@3.8
bayandin Dec 2, 2019
5204072
numpy: revision bump for python@3.8
bayandin Dec 2, 2019
4224350
ocrmypdf: revision bump for python@3.8
bayandin Dec 2, 2019
73e5f7d
ola: revision bump for python@3.8
bayandin Dec 2, 2019
201fcf1
opencolorio: revision bump for python@3.8
bayandin Dec 2, 2019
40db0db
opencv: revision bump for python@3.8
bayandin Dec 2, 2019
bcc7ba3
opencv@3: revision bump for python@3.8
bayandin Dec 2, 2019
85f7ec8
openimageio: revision bump for python@3.8
bayandin Dec 2, 2019
0bd82c8
protobuf@3.6: revision bump for python@3.8
bayandin Dec 2, 2019
f5024d3
py3cairo: revision bump for python@3.8
bayandin Dec 2, 2019
e605ab9
pybind11: revision bump for python@3.8
bayandin Dec 2, 2019
dc1fb84
pygobject3: revision bump for python@3.8
bayandin Dec 2, 2019
fbec344
pyqt: revision bump for python@3.8
bayandin Dec 2, 2019
78bf81f
pytouhou: revision bump for python@3.8
bayandin Dec 2, 2019
75f4133
qscintilla2: revision bump for python@3.8
bayandin Dec 2, 2019
84f36b2
root: revision bump for python@3.8
bayandin Dec 2, 2019
8f2fa1e
scipy: revision bump for python@3.8
bayandin Dec 2, 2019
4721749
sip: revision bump for python@3.8
bayandin Dec 2, 2019
c7ae169
tbb: revision bump for python@3.8
bayandin Dec 2, 2019
5451e80
template-glib: revision bump for python@3.8
bayandin Dec 2, 2019
a9ee4c4
urh: revision bump for python@3.8
bayandin Dec 2, 2019
fbcfc56
vtk: revision bump for python@3.8
bayandin Dec 2, 2019
753bf13
wxpython: revision bump for python@3.8
bayandin Dec 2, 2019
642754f
xdot: revision bump for python@3.8
bayandin Dec 2, 2019
1ac3be2
caffe: improve test
bayandin Feb 21, 2020
41cde55
pcl: revision bump for python@3.8
iMichka Mar 28, 2020
64dbb34
glib: revision bump for python@3.8
iMichka Mar 28, 2020
407d373
meson: revision bump for python@3.8
iMichka Mar 28, 2020
96cdb20
cairo: revision bump for python@3.8
iMichka Mar 28, 2020
ee5c808
zim: revision bump for python@3.8
iMichka Mar 30, 2020
7f06170
pympress: revision bump for python@3.8
iMichka Mar 30, 2020
9f2dc97
visp: revision bump for python@3.8
iMichka Mar 30, 2020
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
12 changes: 5 additions & 7 deletions Formula/adios2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class Adios2 < Formula
homepage "https://adios2.readthedocs.io"
url "https://github.com/ornladios/ADIOS2/archive/v2.5.0.tar.gz"
sha256 "7c8ff3bf5441dd662806df9650c56a669359cb0185ea232ecb3578de7b065329"
revision 1
head "https://github.com/ornladios/ADIOS2.git", :branch => "master"

bottle do
Expand All @@ -19,7 +20,7 @@ class Adios2 < Formula
depends_on "mpi4py"
depends_on "numpy"
depends_on "open-mpi"
depends_on "python"
depends_on "python@3.8"
depends_on "zeromq"
uses_from_macos "bzip2"

Expand Down Expand Up @@ -49,7 +50,7 @@ def install
-DCMAKE_DISABLE_FIND_PACKAGE_FLEX=TRUE
-DCMAKE_DISABLE_FIND_PACKAGE_LibFFI=TRUE
-DCMAKE_DISABLE_FIND_PACKAGE_NVSTREAM=TRUE
-DPYTHON_EXECUTABLE:FILEPATH=#{Formula["python"].opt_bin}/python3
-DPYTHON_EXECUTABLE=#{Formula["python@3.8"].opt_bin}/python3
-DADIOS2_BUILD_TESTING=OFF
-DADIOS2_BUILD_EXAMPLES=OFF
]
Expand All @@ -71,11 +72,8 @@ def install
system "./a.out"
assert_predicate testpath/"myVector_cpp.bp", :exist?

system "#{Formula["python"].opt_bin}/python3",
"-c", "import adios2"

system "#{Formula["python"].opt_bin}/python3",
(pkgshare/"test/helloBPWriter.py")
system Formula["python@3.8"].opt_bin/"python3", "-c", "import adios2"
system Formula["python@3.8"].opt_bin/"python3", (pkgshare/"test/helloBPWriter.py")
assert_predicate testpath/"npArray.bp", :exist?
end
end
6 changes: 3 additions & 3 deletions Formula/anjuta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Anjuta < Formula
homepage "http://anjuta.org"
url "https://download.gnome.org/sources/anjuta/3.34/anjuta-3.34.0.tar.xz"
sha256 "42a93130ed3ee02d064a7094e94e1ffae2032b3f35a87bf441e37fc3bb3a148f"
revision 1
revision 2

bottle do
sha256 "b9394ffec202e2a073a98433fdb71a7f4f0855df6d579a6c719e82f2edd7a645" => :catalina
Expand All @@ -23,7 +23,7 @@ class Anjuta < Formula
depends_on "hicolor-icon-theme"
depends_on "libgda"
depends_on "libxml2"
depends_on "python"
depends_on "python@3.8"
depends_on "shared-mime-info"
depends_on "vala"
depends_on "vte3"
Expand All @@ -35,7 +35,7 @@ def install
"--prefix=#{prefix}",
"--disable-schemas-compile"

xy = Language::Python.major_minor_version "python3"
xy = Language::Python.major_minor_version Formula["python@3.8"].opt_bin/"python3"
ENV.append_path "PYTHONPATH", "#{Formula["libxml2"].opt_lib}/python#{xy}/site-packages"
system "make", "install"
end
Expand Down
5 changes: 3 additions & 2 deletions Formula/apache-arrow.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class ApacheArrow < Formula
url "https://www.apache.org/dyn/closer.lua?path=arrow/arrow-0.16.0/apache-arrow-0.16.0.tar.gz"
mirror "https://archive.apache.org/dist/arrow/arrow-0.16.0/apache-arrow-0.16.0.tar.gz"
sha256 "261992de4029a1593195ff4000501503bd403146471b3168bd2cc414ad0fb7f5"
revision 1
head "https://github.com/apache/arrow.git"

bottle do
Expand All @@ -22,7 +23,7 @@ class ApacheArrow < Formula
depends_on "numpy"
depends_on "openssl@1.1"
depends_on "protobuf"
depends_on "python"
depends_on "python@3.8"
depends_on "rapidjson"
depends_on "snappy"
depends_on "thrift"
Expand All @@ -45,7 +46,7 @@ def install
-DARROW_WITH_SNAPPY=ON
-DARROW_WITH_BROTLI=ON
-DARROW_INSTALL_NAME_RPATH=OFF
-DPYTHON_EXECUTABLE=#{Formula["python"].bin/"python3"}
-DPYTHON_EXECUTABLE=#{Formula["python@3.8"].bin/"python3"}
]

mkdir "build"
Expand Down
7 changes: 4 additions & 3 deletions Formula/arcade-learning-environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class ArcadeLearningEnvironment < Formula
homepage "https://github.com/mgbellemare/Arcade-Learning-Environment"
url "https://github.com/mgbellemare/Arcade-Learning-Environment/archive/v0.6.1.tar.gz"
sha256 "8059a4087680da03878c1648a8ceb0413a341032ecaa44bef4ef1f9f829b6dde"
revision 1
head "https://github.com/mgbellemare/Arcade-Learning-Environment.git"

bottle do
Expand All @@ -14,7 +15,7 @@ class ArcadeLearningEnvironment < Formula

depends_on "cmake" => :build
depends_on "numpy"
depends_on "python"
depends_on "python@3.8"
depends_on "sdl"

def install
Expand All @@ -24,7 +25,7 @@ def install
]
system "cmake", ".", *args
system "make", "install"
system "python3", *Language::Python.setup_install_args(prefix)
system Formula["python@3.8"].opt_bin/"python3", *Language::Python.setup_install_args(prefix)
end

test do
Expand All @@ -34,6 +35,6 @@ def install
from ale_python_interface import ALEInterface;
ale = ALEInterface();
EOS
assert_match "ale.cfg", shell_output("python3 test.py 2>&1")
assert_match "ale.cfg", shell_output("#{Formula["python@3.8"].opt_bin}/python3 test.py 2>&1")
end
end
25 changes: 17 additions & 8 deletions Formula/astrometry-net.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class AstrometryNet < Formula
homepage "https://github.com/dstndstn/astrometry.net"
url "https://github.com/dstndstn/astrometry.net/releases/download/0.79/astrometry.net-0.79.tar.gz"
sha256 "dd5d5403cc223eb6c51a06a22a5cb893db497d1895971735321354f882c80286"
revision 1
revision 2

bottle do
cellar :any
Expand All @@ -23,26 +23,33 @@ class AstrometryNet < Formula
depends_on "libpng"
depends_on "netpbm"
depends_on "numpy"
depends_on "python"
depends_on "python@3.8"
depends_on "wcslib"

resource "fitsio" do
url "https://files.pythonhosted.org/packages/d4/51/57074746cb7c9a7f5fe8039563337fbb1edabbc2c742d2acb99b1b7c204c/fitsio-1.1.0.tar.gz"
sha256 "b1a8846d11c3919ea75cca611de9f76bfbdf745c4439e89e983d8a6bcfb92183"
url "https://files.pythonhosted.org/packages/9c/7d/99906853351108cd5abea387240b5b58109a91e349f0ae22e33c63969393/fitsio-1.1.1.tar.gz"
sha256 "42b88214f9d8ed34a7911c3b41a680ce1bdee4880c58e441f00010058e97c0aa"

patch do
url "https://patch-diff.githubusercontent.com/raw/esheldon/fitsio/pull/297.patch?full_index=1"
sha256 "d317355af23101b2bc49b6844ac83061a6485f4fa9741b2ecae0782972bcd675"
end
end

def install
Language::Python.rewrite_python_shebang(Formula["python@3.8"].opt_bin/"python3")

ENV["NETPBM_INC"] = "-I#{Formula["netpbm"].opt_include}/netpbm"
ENV["NETPBM_LIB"] = "-L#{Formula["netpbm"].opt_lib} -lnetpbm"
ENV["SYSTEM_GSL"] = "yes"
ENV["PYTHON_SCRIPT"] = "#{libexec}/bin/python3"
ENV["PYTHON"] = "python3"
ENV["PYTHON_SCRIPT"] = Formula["python@3.8"].opt_bin/"python3"
ENV["PYTHON"] = Formula["python@3.8"].opt_bin/"python3"

venv = virtualenv_create(libexec, "python3")
venv = virtualenv_create(libexec, Formula["python@3.8"].opt_bin/"python3")
venv.pip_install resources

ENV["INSTALL_DIR"] = prefix
xy = Language::Python.major_minor_version "python3"
xy = Language::Python.major_minor_version Formula["python@3.8"].opt_bin/"python3"
ENV["PY_BASE_INSTALL_DIR"] = libexec/"lib/python#{xy}/site-packages/astrometry"
ENV["PY_BASE_LINK_DIR"] = libexec/"lib/python#{xy}/site-packages/astrometry"

Expand All @@ -52,6 +59,8 @@ def install
end

test do
xy = Language::Python.major_minor_version Formula["python@3.8"].opt_bin/"python3"
ENV["PYTHONPATH"] = libexec/"lib/python#{xy}/site-packages"
system "#{bin}/build-astrometry-index", "-d", "3", "-o", "index-9918.fits",
"-P", "18", "-S", "mag", "-B", "0.1",
"-s", "0", "-r", "1", "-I", "9918", "-M",
Expand Down
11 changes: 6 additions & 5 deletions Formula/aubio.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class Aubio < Formula
homepage "https://aubio.org/"
url "https://aubio.org/pub/aubio-0.4.9.tar.bz2"
sha256 "d48282ae4dab83b3dc94c16cf011bcb63835c1c02b515490e1883049c3d1f3da"
revision 1

bottle do
cellar :any
Expand All @@ -15,17 +16,17 @@ class Aubio < Formula
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "numpy"
depends_on "python"
depends_on "python@3.8"

def install
# Needed due to issue with recent clang (-fno-fused-madd))
ENV.refurbish_args

system "python3", "./waf", "configure", "--prefix=#{prefix}"
system "python3", "./waf", "build"
system "python3", "./waf", "install"
system Formula["python@3.8"].opt_bin/"python3", "./waf", "configure", "--prefix=#{prefix}"
system Formula["python@3.8"].opt_bin/"python3", "./waf", "build"
system Formula["python@3.8"].opt_bin/"python3", "./waf", "install"

system "python3", *Language::Python.setup_install_args(prefix)
system Formula["python@3.8"].opt_bin/"python3", *Language::Python.setup_install_args(prefix)
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
end

Expand Down
10 changes: 6 additions & 4 deletions Formula/bind.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Bind < Formula

url "https://downloads.isc.org/isc/bind9/9.16.1/bind-9.16.1.tar.xz"
sha256 "a913d7e78135b9123d233215b58102fa0f18130fb1e158465a1c2b6f3bd75e91"
revision 1
version_scheme 1
head "https://gitlab.isc.org/isc-projects/bind9.git"

Expand All @@ -23,20 +24,20 @@ class Bind < Formula
depends_on "json-c"
depends_on "libuv"
depends_on "openssl@1.1"
depends_on "python"
depends_on "python@3.8"

resource "ply" do
url "https://files.pythonhosted.org/packages/e5/69/882ee5c9d017149285cab114ebeab373308ef0f874fcdac9beb90e0ac4da/ply-3.11.tar.gz"
sha256 "00c7c1aaa88358b9c765b6d3000c6eec0ba42abca5351b095321aef446081da3"
end

def install
xy = Language::Python.major_minor_version "python3"
xy = Language::Python.major_minor_version Formula["python@3.8"].opt_bin/"python3"
vendor_site_packages = libexec/"vendor/lib/python#{xy}/site-packages"
ENV.prepend_create_path "PYTHONPATH", vendor_site_packages
resources.each do |r|
r.stage do
system "python3", *Language::Python.setup_install_args(libexec/"vendor")
system Formula["python@3.8"].opt_bin/"python3", *Language::Python.setup_install_args(libexec/"vendor")
end
end

Expand All @@ -46,8 +47,9 @@ def install
system "./configure", "--prefix=#{prefix}",
"--with-json-c",
"--with-openssl=#{Formula["openssl@1.1"].opt_prefix}",
"--with-libjson=#{Formula["json-c"].opt_prefix}",
"--with-python-install-dir=#{vendor_site_packages}",
"--with-python=#{Formula["python"].opt_bin}/python3",
"--with-python=#{Formula["python@3.8"].opt_bin}/python3",
"--without-lmdb"

system "make"
Expand Down
17 changes: 9 additions & 8 deletions Formula/boost-python3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class BoostPython3 < Formula
url "https://dl.bintray.com/boostorg/release/1.72.0/source/boost_1_72_0.tar.bz2"
mirror "https://dl.bintray.com/homebrew/mirror/boost_1_72_0.tar.bz2"
sha256 "59c9b274bc451cf91a9ba1dd2c7fdcaf5d60b1b3aa83f2c9fa143417cc660722"
revision 1
head "https://github.com/boostorg/boost.git"

bottle do
Expand All @@ -15,7 +16,7 @@ class BoostPython3 < Formula

depends_on "numpy" => :build
depends_on "boost"
depends_on "python"
depends_on "python@3.8"

# Fix build on Xcode 11.4
patch do
Expand Down Expand Up @@ -46,15 +47,15 @@ def install
# user-config.jam below.
inreplace "bootstrap.sh", "using python", "#using python"

pyver = Language::Python.major_minor_version "python3"
py_prefix = Formula["python3"].opt_frameworks/"Python.framework/Versions/#{pyver}"
pyver = Language::Python.major_minor_version Formula["python@3.8"].opt_bin/"python3"
py_prefix = Formula["python@3.8"].opt_frameworks/"Python.framework/Versions/#{pyver}"

# Force boost to compile with the desired compiler
(buildpath/"user-config.jam").write <<~EOS
using darwin : : #{ENV.cxx} ;
using python : #{pyver}
: python3
: #{py_prefix}/include/python#{pyver}m
: #{py_prefix}/include/python#{pyver}
: #{py_prefix}/lib ;
EOS

Expand Down Expand Up @@ -87,9 +88,9 @@ def install
}
EOS

pyincludes = Utils.popen_read("python3-config --includes").chomp.split(" ")
pylib = Utils.popen_read("python3-config --ldflags").chomp.split(" ")
pyver = Language::Python.major_minor_version("python3").to_s.delete(".")
pyincludes = Utils.popen_read("#{Formula["python@3.8"].opt_bin}/python3-config --includes").chomp.split(" ")
pylib = Utils.popen_read("#{Formula["python@3.8"].opt_bin}/python3-config --ldflags --embed").chomp.split(" ")
pyver = Language::Python.major_minor_version(Formula["python@3.8"].opt_bin/"python3").to_s.delete(".")

system ENV.cxx, "-shared", "hello.cpp", "-L#{lib}", "-lboost_python#{pyver}", "-o",
"hello.so", *pyincludes, *pylib
Expand All @@ -98,6 +99,6 @@ def install
import hello
print(hello.greet())
EOS
assert_match "Hello, world!", pipe_output("python3", output, 0)
assert_match "Hello, world!", pipe_output(Formula["python@3.8"].opt_bin/"python3", output, 0)
end
end
3 changes: 2 additions & 1 deletion Formula/breezy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Breezy < Formula
homepage "https://www.breezy-vcs.org"
url "https://files.pythonhosted.org/packages/6b/81/ae2ddb07ef93d62689a98b6b711394bfbe3e35c719253b18e6b84221d500/breezy-3.0.2.tar.gz"
sha256 "50f16bc7faf299f98fe58573da55b0664078f94b1a0e7f0ce9e1e6a0d47e68e0"
revision 1

bottle do
cellar :any_skip_relocation
Expand All @@ -16,7 +17,7 @@ class Breezy < Formula
depends_on "cython" => :build
depends_on "gettext" => :build
depends_on "openssl@1.1"
depends_on "python"
depends_on "python@3.8"

resource "configobj" do
url "https://files.pythonhosted.org/packages/64/61/079eb60459c44929e684fa7d9e2fdca403f67d64dd9dbac27296be2e0fab/configobj-5.0.6.tar.gz"
Expand Down
2 changes: 1 addition & 1 deletion Formula/caffe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Caffe < Formula
depends_on "szip"

resource "test_model_weights" do
url "http://dl.caffe.berkeleyvision.org/bvlc_reference_caffenet.caffemodel"
url "https://bintray.com/homebrew/mirror/download_file?file_path=bvlc_reference_caffenet.caffemodel"
sha256 "472d4a06035497b180636d8a82667129960371375bd10fcb6df5c6c7631f25e0"
end

Expand Down
2 changes: 1 addition & 1 deletion Formula/cairo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Cairo < Formula
homepage "https://cairographics.org/"
url "https://cairographics.org/releases/cairo-1.16.0.tar.xz"
sha256 "5e7b29b3f113ef870d1e3ecf8adf21f923396401604bda16d44be45e66052331"
revision 2
revision 3

bottle do
sha256 "5fb8b876c66a0b1aaa7f3faedde3803ff4de43c0f5f9244c7d433b43ead1196c" => :catalina
Expand Down
7 changes: 5 additions & 2 deletions Formula/carla.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Carla < Formula
homepage "https://kxstudio.linuxaudio.org/Applications:Carla"
url "https://github.com/falkTX/Carla/archive/v2.0.0.tar.gz"
sha256 "d0c8d8417f8cce9abe807f6359231f187d60db7121ec1dccce3b596a22ef6c41"
revision 2
revision 3
head "https://github.com/falkTX/Carla.git"

bottle do
Expand All @@ -18,11 +18,14 @@ class Carla < Formula
depends_on "liblo"
depends_on "libmagic"
depends_on "pyqt"
depends_on "python"
depends_on "python@3.8"

def install
system "make"
system "make", "install", "PREFIX=#{prefix}"

inreplace bin/"carla", "PYTHON=$(which python3 2>/dev/null)",
"PYTHON=#{Formula["python@3.8"].opt_bin}/python3"
end

test do
Expand Down
Loading