Skip to content

Commit 02b123a

Browse files
committed
Refactor installation of cpp_hf extension to top-level site-packages and remove obsolete package facade
1 parent c559fe4 commit 02b123a

3 files changed

Lines changed: 4 additions & 20 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,5 @@ target_link_libraries(cpp_hf PRIVATE Eigen3::Eigen Boost::headers ${HF_OPENMP_LI
182182

183183
# Install the binary into the python package so the wheel includes it
184184
# (place the extension inside the 'cpp_hf' package directory)
185-
install(TARGETS cpp_hf
186-
LIBRARY DESTINATION "${SKBUILD_PLATLIB_DIR}/cpp_hf"
187-
)
185+
# Install the binary extension at the top level of site-packages
186+
install(TARGETS cpp_hf DESTINATION "${SKBUILD_PLATLIB_DIR}")

cpp_hf/__init__.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ classifiers = [
2626
Homepage = "https://github.com/skilledwolf/cpp_hf"
2727
Issues = "https://github.com/skilledwolf/cpp_hf/issues"
2828

29-
[tool.scikit-build]
30-
wheel.packages = ["cpp_hf"] # if you ship a pure Python package dir; okay if absent
29+
#[tool.scikit-build]
30+
# No pure-Python packages shipped; wheel only contains the extension module
3131

3232
[tool.scikit-build.cmake.define]
3333
HF_USE_OPENMP = true

0 commit comments

Comments
 (0)