Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

Use PEP 518 in packages to require astropy-helpers at build time #334

@astrofrog

Description

@astrofrog

PEP 518 specifies that Python packages can include a pyproject.toml file that specifies build-time dependencies. This is intended to replace setup_requires, which was never useful for us (and many others) since setup_requires was only taken into account when setup() was run, whereas e.g. astropy-helpers is needed to even run setup.py at all. With PEP 518 now supported by pip, we could add a pyproject.toml file in astropy and affiliated packages with:

[build-system]
requires = ["setuptools", "wheel", "astropy-helpers"]

optionally with a fixed version for astropy-helpers. This would then allow us, I think, to get rid of a lot of ah_bootstrap.py or simplify it significantly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions