Skip to content

Commit 5ea67e2

Browse files
Transurgeonclaude
andauthored
Remove Python bindings (moved to DNLP repository) (#40)
The Python bindings have been relocated to the DNLP repository at cvxpy/reductions/solvers/nlp_solvers/diff_engine/_bindings/. This makes diff_engine_core a pure C library, simplifying its build process and allowing the bindings to be maintained alongside the rest of the CVXPY/DNLP Python code. Changes: - Remove python/ directory (54 files) - Remove commented Python bindings section from CMakeLists.txt Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent ee7fed2 commit 5ea67e2

53 files changed

Lines changed: 0 additions & 2237 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CMakeLists.txt

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -61,25 +61,6 @@ endif()
6161
# Enable position-independent code for shared library compatibility
6262
set_property(TARGET dnlp_diff PROPERTY POSITION_INDEPENDENT_CODE ON)
6363

64-
# =============================================================================
65-
# Python bindings (built when using scikit-build-core)
66-
# =============================================================================
67-
#if(SKBUILD)
68-
# find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module NumPy)
69-
#
70-
# # Create Python extension module
71-
# Python3_add_library(_core MODULE python/bindings.c)
72-
# target_include_directories(_core PRIVATE
73-
# ${PROJECT_SOURCE_DIR}/include
74-
# ${PROJECT_SOURCE_DIR}/python
75-
# ${Python3_NumPy_INCLUDE_DIRS}
76-
# )
77-
# target_link_libraries(_core PRIVATE dnlp_diff)
78-
#
79-
# # Install to the package directory
80-
# install(TARGETS _core LIBRARY DESTINATION dnlp_diff_engine)
81-
#endif()
82-
8364
# =============================================================================
8465
# C tests (only for standalone builds)
8566
# =============================================================================

python/atoms/add.h

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

python/atoms/asinh.h

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

python/atoms/atanh.h

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

python/atoms/broadcast.h

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

python/atoms/common.h

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

python/atoms/const_scalar_mult.h

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

python/atoms/const_vector_mult.h

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

python/atoms/constant.h

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

python/atoms/cos.h

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

0 commit comments

Comments
 (0)