Fix TOML parsing errors in pyproject.toml for scikit-build configuration (#27)

* Update wheel configuration in pyproject.toml to include package tree

* Added python dependency and shell globbing for metal command
This commit is contained in:
3n0chK4n
2025-08-06 00:15:12 +01:00
committed by GitHub
parent a6d9d90ab5
commit d8db548846
2 changed files with 3 additions and 3 deletions

View File

@@ -130,6 +130,7 @@ This repository provides a collection of reference implementations:
### Requirements
- python 3.12
- On macOS: Install the Xcode CLI tools --> `xcode-select --install`
- On Linux: These reference implementations require CUDA
- On Windows: These reference implementations have not been tested on Windows. Try using solutions like Ollama if you are trying to run the model locally.
@@ -151,7 +152,7 @@ If you want to modify the code or try the metal implementation set the project u
```shell
git clone https://github.com/openai/gpt-oss.git
pip install -e .[metal]
pip install -e ".[metal]"
```
## Download the model

View File

@@ -42,11 +42,10 @@ packages = ["gpt_oss"]
[tool.scikit-build]
cmake.source-dir = "." # pick up the root CMakeLists.txt
wheel.packages = ["gpt_oss"] # copy the whole Python package tree
cmake.args = [
"-DGPTOSS_BUILD_PYTHON=ON",
"-DCMAKE_BUILD_TYPE=Release",
"-DBUILD_SHARED_LIBS=OFF",
]
[tool.scikit-build.wheel]
plat-name = "manylinux_2_17_x86_64"
packages = ["gpt_oss"] # copy the whole Python package tree