epanet python package

我想建立一个epanet python package

所以我就用按照网上的方法,按照以下的代码就行导入这个库:

The following method uses scikit-build to invoke cmake for compiling and linking the shared libaries, and builds a python wheel.

./scripts/clean.sh python3 setup.py sdist bdist_wheel

Test your builds using the following commands.

cd test && \ pipenv install ../dist/*.whl && \ pipenv install pytest && \ pipenv run pytest

This python library was packaged in the following way:

python3 setup.py sdist bdist_wheel python3 -m twine upload dist/*

 

当我在建立这个epanet python  package的时候,输入下列代码: python setup.py sdist bdist_wheel后, 

我就遇到了下列问题: 

CMake Error at EPANET/CMakeLists.txt:50  (set_property): 

  set_property could not find TARGET  epanet2.  Perhaps it has not yet been created. 

 

CMakeList.txt第50行的代码是: 

set_property(TARGET epanet2 PROPERTY  SWIG_USE_TARGET_INCLUDE_DIRECTORIES TRUE) 

 

请问遇到这种问题该怎么解决? 

 

谢谢大家!