使用setup.py有诸多弊端,比如当执行pip install -e .时会遇到以下错误:
Obtaining file:///test
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/test/setup.py", line 3, in
from easyofd import version
File "/test/easyofd/init.py", line 1, in
from .ofd import OFD
File "/test/easyofd/ofd.py", line 17, in
import fitz
ModuleNotFoundError: No module named 'fitz'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
关于二者的区别,及为何推荐使用pyproject.toml:pyproject.toml, setup.cfg, setup.py. What's the difference?
使用
setup.py有诸多弊端,比如当执行pip install -e .时会遇到以下错误:关于二者的区别,及为何推荐使用
pyproject.toml:pyproject.toml, setup.cfg, setup.py. What's the difference?