Skip to content

Commit 287ddc5

Browse files
committed
ci: install the regex helper into the interpreter PyCall binds
PyCall builds against whichever libpython it finds, which is not the python that bare pip targets on the runners — the python compiler legs then fail every load_map with ModuleNotFoundError. Resolve the bound version and pip-install into that interpreter.
1 parent d428b22 commit 287ddc5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎.github/workflows/rake.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,13 @@ jobs:
3838
- name: Install Python helper and gems
3939
working-directory: ruby
4040
run: |
41-
pip install regex
4241
bundle config set --local with jsexec
4342
bundle install
43+
# PyCall binds whichever libpython it was built against, which
44+
# is not necessarily the python that bare `pip` targets —
45+
# install the regex helper into that interpreter.
46+
PYBIN=$(bundle exec ruby -e 'require "pycall"; v = PyCall.sys.version[/\d+\.\d+/]; puts "python#{v}"')
47+
"$PYBIN" -m pip install regex
4448
4549
- name: RSpec
4650
working-directory: ruby

0 commit comments

Comments
 (0)