File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ find_package(pybind11 CONFIG REQUIRED)
1616
1717# Add a library using FindPython's tooling (pybind11 also provides a helper like
1818# this)
19- python_add_library(_core MODULE cpp/src/wrapper.cpp WITH_SOABI)
20- target_link_libraries (_core PRIVATE pybind11::headers)
21- target_include_directories (_core PRIVATE cpp/external/eigen/)
22- target_include_directories (_core PRIVATE cpp/include /)
19+ python_add_library(_diffcp MODULE cpp/src/wrapper.cpp WITH_SOABI)
20+ target_link_libraries (_diffcp PRIVATE pybind11::headers)
21+ target_include_directories (_diffcp PRIVATE cpp/external/eigen/)
22+ target_include_directories (_diffcp PRIVATE cpp/include /)
2323
2424# This is passing in the version as a define just as an example
25- target_compile_definitions (_core PRIVATE VERSION_INFO=${PROJECT_VERSION} )
25+ target_compile_definitions (_diffcp PRIVATE VERSION_INFO=${PROJECT_VERSION} )
2626
2727# The install directory is the output (wheel) directory
28- install (TARGETS _core DESTINATION scikit_build_example )
28+ install (TARGETS _diffcp DESTINATION diffcp )
Original file line number Diff line number Diff line change 66import scipy .sparse as sparse
77from threadpoolctl import threadpool_limits
88
9- import _diffcp
9+ import diffcp . _diffcp as _diffcp
1010import diffcp .cones as cone_lib
1111
1212
Original file line number Diff line number Diff line change 11import numpy as np
22import scipy .sparse as sparse
3- from _diffcp import project_exp_cone , Cone , ConeType
3+ from diffcp . _diffcp import project_exp_cone , Cone , ConeType
44
55ZERO = "z"
66POS = "l"
You can’t perform that action at this time.
0 commit comments