From d8db548846acb4ce63bc7027a54ec84e4764cb32 Mon Sep 17 00:00:00 2001 From: 3n0chK4n Date: Wed, 6 Aug 2025 00:15:12 +0100 Subject: [PATCH] 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 --- README.md | 3 ++- pyproject.toml | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3144d7a..3f3f4de 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 6174671..38c4376 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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