You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a project that has a somewhat unusual layout of the source folder:
All sources (C++ and Python) are under src
The Python sources are in src/pymodule
The C++ pybind11 sources are in src/python
Running pip install . works as expected, but I am having trouble with making the editable (pip install -e .) installation work. Can it be made to work?
Note that both editable and non-editable installations work if I:
rename the folder for the Python sources to src/hello
use package_dir = {'': 'src'} in setup.py
set the DESTINATION in the src/{hello,python}/CMakeLists.txt to src/hello
I am working on a project that has a somewhat unusual layout of the source folder:
src
src/pymodule
src/python
Running
pip install .
works as expected, but I am having trouble with making the editable (pip install -e .
) installation work. Can it be made to work?Note that both editable and non-editable installations work if I:
src/hello
package_dir = {'': 'src'}
insetup.py
DESTINATION
in thesrc/{hello,python}/CMakeLists.txt
tosrc/hello
Here is a sample project for this "split" layout: https://github.com/robertodr/scikit-build-sample-projects/tree/split-layout/projects/hello-split-layout
The text was updated successfully, but these errors were encountered: