Repository navigation
Move python_bindings into python/bindings - #124
Merged
Merged
Conversation
Keep the C++ extension next to the Python package, the cupdlpx-cu12 project and the metadata provider, so everything for the Python interface lives under python/.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Move the pybind11 extension from
python_bindings/topython/bindings/, so everything for the Python interface lives underpython/:The three files are moved unchanged; git records them as renames. No functional change.
Changes
CMakeLists.txt:add_subdirectory(python_bindings)→add_subdirectory(python/bindings).pyproject.toml: the sdist includespython/bindings/**instead ofpython_bindings/**..github/workflows/wheels.yml: droppython_bindings/**from the path filter;python/**already covers the new location.python/bindings/CMakeLists.txt,python/cupdlpx/PDLP.py).Paths inside the bindings are relative to
CMAKE_CURRENT_SOURCE_DIR, and the extension's RPATH ($ORIGIN/...) refers to the installed location, so neither depends on the source layout. The format check selects files by extension (h,c,cu), so its scope is unchanged.Testing
python_bindingsremain in the repository.python/bindings/_core_bindings.cpp,CMakeLists.txtand_build_info.py.in.cusparseSpMVOp);pytest test/passes (142 tests).