Skip to content

Commit e7d8cad

Browse files
committed
Switch to scikit-build-core
Signed-off-by: Cristian Le <[email protected]>
1 parent c34de5e commit e7d8cad

23 files changed

+26
-71
lines changed

.git_archival.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node: $Format:%H$
2+
node-date: $Format:%cI$
3+
describe-name: $Format:%(describe:tags=true,match=[0-9]*)$

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.git_archival.txt export-subst

libmambapy/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
libmambapy/bindings*
22
libmambapy.egg-info/
3+
/src/libmambapy/version.py

libmambapy/CMakeLists.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ find_package(pybind11 REQUIRED)
2121

2222
pybind11_add_module(
2323
bindings
24-
src/libmambapy/bindings/longpath.manifest
24+
bindings/longpath.manifest
2525
# Entry point to all submodules
26-
src/libmambapy/bindings/bindings.cpp
26+
bindings/bindings.cpp
2727
# All bindings used to live in a global module
28-
src/libmambapy/bindings/legacy.cpp
28+
bindings/legacy.cpp
2929
# Submodules
30-
src/libmambapy/bindings/utils.cpp
31-
src/libmambapy/bindings/specs.cpp
32-
src/libmambapy/bindings/solver.cpp
33-
src/libmambapy/bindings/solver_libsolv.cpp
30+
bindings/utils.cpp
31+
bindings/specs.cpp
32+
bindings/solver.cpp
33+
bindings/solver_libsolv.cpp
3434
)
3535
# TODO: remove when `SubdirData::cache_path()` is removed
3636
if(
@@ -40,12 +40,12 @@ if(
4040
)
4141
# This file uses capturing structured bindings, which was fixed in C++20
4242
set_source_files_properties(
43-
src/libmambapy/bindings/legacy.cpp
43+
bindings/legacy.cpp
4444
PROPERTIES COMPILE_FLAGS -Wno-error=deprecated-declarations
4545
)
4646
endif()
4747

48-
target_include_directories(bindings PRIVATE src/libmambapy/bindings)
48+
target_include_directories(bindings PRIVATE bindings)
4949

5050
mamba_target_add_compile_warnings(bindings WARNING_AS_ERROR ${MAMBA_WARNING_AS_ERROR})
5151

@@ -55,7 +55,7 @@ target_compile_features(bindings PRIVATE cxx_std_17)
5555
# Installation
5656

5757
if(SKBUILD)
58-
install(TARGETS bindings DESTINATION ${MAMBA_INSTALL_PYTHON_EXT_LIBDIR})
58+
install(TARGETS bindings DESTINATION libmambapy)
5959
else()
6060
# WARNING: this default should probably not be used as it is but set externally by a proper
6161
# Python packager tool

libmambapy/MANIFEST.in

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

0 commit comments

Comments
 (0)