Skip to content

Commit

Permalink
fix(vanna)
Browse files Browse the repository at this point in the history
 closes #8630
  • Loading branch information
jhheider committed Feb 9, 2025
1 parent 270826f commit cb2311f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions projects/vanna.ai/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ runtime:

build:
dependencies:
x86-64:
# py-rust-stemmers on x86-64
rust-lang.org: '>=1.76<1.80'
rust-lang.org/cargo: '<0.83'
rust-lang.org: ^1.80
rust-lang.org/cargo: <0.83
script:
- python -m pip install . --prefix={{prefix}}
# additional requirements as of 0.1.0
Expand All @@ -47,6 +45,9 @@ build:
rm -rf ${{prefix}}/lib/python{{deps.python.org.version.marketing}}/site-packages/proto
python -m pip install proto-plus==1.24.0.dev1 --prefix={{prefix}}
if: '>=0.6.0'
# safetensors needs to rebuilt for headerpad_max_install_names on darwin
- run: 'python -m pip install --no-deps --force-reinstall --no-cache-dir -v --no-binary :all: --prefix={{prefix}} safetensors'
if: darwin

- run: ln -s python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}}
working-directory: ${{prefix}}/lib
Expand All @@ -55,6 +56,9 @@ build:
CC: clang
CXX: clang++
LD: clang
darwin:
LDFLAGS:
- -Wl,-headerpad_max_install_names

test:
dependencies:
Expand Down

0 comments on commit cb2311f

Please sign in to comment.