Код: Выделить всё
import eefpy
Traceback (most recent call last):
File "", line 1, in
File "/root/tests/venv/lib/python3.10/site-packages/eefpy/__init__.py", line 2, in
cppyy.include('solver/eef.h')
File "/root/tests/venv/lib/python3.10/site-packages/cppyy/__init__.py", line 267, in include
raise ImportError('Failed to load header file "%s"%s' % (header, err.err))
ImportError: Failed to load header file "solver/eef.h"
input_line_18:1:10: fatal error: 'solver/eef.h' file not found
#include "solver/eef.h"
^~~~~~~~~~~~~~
Код: Выделить всё
...
include_package_data=True,
package_data={
'eefpy': ['../solver/*'],
},
...
Код: Выделить всё
recursive-include solver *
Я ожидал, что файлы C++ будут включены в каталог пакета (например, eefpy/solver/ ), чтобы они были доступны при установке и импорте пакета.
Подробнее здесь: https://stackoverflow.com/questions/786 ... i-distribu