Skip to content

Commit dca7a07

Browse files
Remove continue-on-error
Modern approach to pip installation
1 parent c5be625 commit dca7a07

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.github/workflows/tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ jobs:
3434
- run: brew test-bot --only-tap-syntax
3535

3636
- run: brew test-bot --only-formulae
37-
continue-on-error: true
3837
if: github.event_name == 'pull_request'
3938

4039
- name: Upload bottles as artifact

Formula/label-studio.rb

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@ class LabelStudio < Formula
1111
depends_on "python@3.12" # Apple's Pypthon distribution does not include pip
1212

1313
def install
14-
python3 = "python3.12"
15-
venv = virtualenv_create(libexec, python3, system_site_packages: true)
16-
system libexec/"bin/python", "-m", "ensurepip", "--upgrade"
17-
system libexec/"bin/pip", "install", "--verbose", "--upgrade", "pip==22.3.1"
18-
system libexec/"bin/pip", "install", "--verbose", "--ignore-installed", buildpath
19-
system libexec/"bin/pip", "uninstall", "-y", "label-studio"
20-
venv.pip_install_and_link buildpath
14+
venv = virtualenv_create(libexec, "python3.12")
15+
venv.pip_install resources
16+
venv.pip_install_and_link(buildpath, build_isolation: false)
2117
end
2218

2319
test do

0 commit comments

Comments
 (0)