Skip to content

建议引入pyproject.toml替代setup.py #65

Description

@ealyn

使用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.tomlpyproject.toml, setup.cfg, setup.py. What's the difference?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions