diff --git a/.ci/azure/linux.yml b/.ci/azure/linux.yml index 486988399..59aaa7a5d 100644 --- a/.ci/azure/linux.yml +++ b/.ci/azure/linux.yml @@ -185,7 +185,11 @@ jobs: - script: | source $(WORK_DIR)/.env3/bin/activate - python -m pip install $(BUILD_WHEEL_DIR)/*.whl + # Find and install wheel + pushd $(BUILD_WHEEL_DIR) + wheel_name=$(find . -name 'ov_tokenizer*.whl') + python3 -m pip install $wheel_name[all] + popd workingDirectory: $(WORK_DIR) displayName: 'Install tokenizers wheel' diff --git a/.ci/azure/mac.yml b/.ci/azure/mac.yml index 72c90ebb2..f9577391a 100644 --- a/.ci/azure/mac.yml +++ b/.ci/azure/mac.yml @@ -176,7 +176,11 @@ jobs: - script: | source .venv/bin/activate - python -m pip install $(BUILD_WHEEL_DIR)/*.whl + # Find and install wheel + pushd $(BUILD_WHEEL_DIR) + wheel_name=$(find . -name 'ov_tokenizer*.whl') + python3 -m pip install $wheel_name[all] + popd workingDirectory: $(WORK_DIR) displayName: 'Install tokenizers wheel' diff --git a/.ci/azure/windows.yml b/.ci/azure/windows.yml index 66b5e03ff..090b12f4f 100644 --- a/.ci/azure/windows.yml +++ b/.ci/azure/windows.yml @@ -112,15 +112,15 @@ jobs: displayName: 'Install dependencies' - script: | - call $(SETUPVARS) -pyver 3.8 - $(PYTHON_EXE) -m pip install build - $(PYTHON_EXE) -m build --wheel --outdir $(BUILD_WHEEL_DIR_CONTRIB) $(REPO_DIR)\modules\custom_operations + call $(SETUPVARS) && $(PYTHON_EXE) -m pip install build && $(PYTHON_EXE) -m build --wheel --outdir $(BUILD_WHEEL_DIR_CONTRIB) $(REPO_DIR)\modules\custom_operations workingDirectory: $(WORK_DIR) displayName: 'Build tokenizers wheel' - script: | - $(PYTHON_EXE) -m pip install $(BUILD_WHEEL_DIR_CONTRIB)/*.whl - workingDirectory: $(WORK_DIR) + # Find and install the wheel + $wheelPath=Get-ChildItem -Path "$(BUILD_WHEEL_DIR_CONTRIB)" -Filter ov_tokenizer*.whl | % { $_.FullName } + $(PYTHON_EXE) -m pip install "$wheelPath[all]" + workingDirectory: $(WORK_DIR) displayName: 'Install tokenizers wheel' - publish: $(BUILD_WHEEL_DIR_CONTRIB)