Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ jobs:
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_ARCHS: auto
# for windows setup.py repairwheel step should solve it
CIBW_SKIP: pp* cp38-*
CIBW_ENVIRONMENT: CMAKE_ARGS="${{ matrix.cmake_args }}"
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: ""

- name: Verify clean directory
run: git diff --exit-code
Expand Down
10 changes: 3 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def build_extension(self, ext: CMakeExtension) -> None:
# from Python.
cmake_args = [
f"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY={extdir}{os.sep}",
f"-DPYTHON_EXECUTABLE={sys.executable}",
f"-DPython_EXECUTABLE={sys.executable}",
f"-DCMAKE_BUILD_TYPE={cfg}", # not used on MSVC, but no harm
]
if self.editable_mode:
Expand Down Expand Up @@ -194,12 +194,8 @@ def copy_extensions_to_source(self):
class RepairWheel(bdist_wheel):
def run(self):
super().run()
if os.environ.get('NO_REPAIR', '0') == '1':
print("Skipping wheel repair")
return
# if os.environ.get('CIBUILDWHEEL', '0') == '0' or sys.platform.startswith('win'):
if sys.platform.startswith('win') or sys.platform.startswith('linux'):
# for linux and macos we use the default wheel repair command from cibuildwheel, for windows we need to do it manually as there is no repair command
if sys.platform.startswith('win'):
# Linux and macOS use cibuildwheel's default repair command.
self.repair_wheel()

def repair_wheel(self):
Expand Down
2 changes: 1 addition & 1 deletion whisper.cpp
Submodule whisper.cpp updated 695 files
Loading