File tree 3 files changed +8
-8
lines changed
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)
16
16
17
17
# Add a library using FindPython's tooling (pybind11 also provides a helper like
18
18
# 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 /)
23
23
24
24
# 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} )
26
26
27
27
# 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 6
6
import scipy .sparse as sparse
7
7
from threadpoolctl import threadpool_limits
8
8
9
- import _diffcp
9
+ import diffcp . _diffcp as _diffcp
10
10
import diffcp .cones as cone_lib
11
11
12
12
Original file line number Diff line number Diff line change 1
1
import numpy as np
2
2
import scipy .sparse as sparse
3
- from _diffcp import project_exp_cone , Cone , ConeType
3
+ from diffcp . _diffcp import project_exp_cone , Cone , ConeType
4
4
5
5
ZERO = "z"
6
6
POS = "l"
You can’t perform that action at this time.
0 commit comments