4
Python 모듈을 개발 모드로 설치하고 싶습니다. 많은 예제에서 보았 듯이 python setup.py develop
이이를 수행해야합니다. 그러나 develop
명령을 내 setup.py
파일이 존재하지 않습니다`setup.py develop`가 작동하지 않는 이유는 무엇입니까?
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
from Cython.Distutils import build_ext
import os
src = ["_NetworKit.pyx"] # list of source files
modules = [Extension("_NetworKit",
src,
language = "c++",
extra_compile_args=["-fopenmp", "-std=c++11", "-O3", "-DNOGTEST"],
extra_link_args=["-fopenmp", "-std=c++11"],
libraries=["NetworKit-Core-O"],
library_dirs=["../"])]
for e in modules:
e.cython_directives = {"embedsignature" : True}
setup(name="_NetworKit",
cmdclass={"build_ext": build_ext},
ext_modules=modules,
py_modules = ["NetworKit.py"])
합니다 (사이 썬 확장 모듈을 참고).
무엇이 누락 되었습니까? setup.py
을 수정해야합니까?