Skip to content

Installation fails unless using --use-pep517 #209

Closed

Description

@israelmcmc

Astromodels fails to install on new setuptools versions (I'm using 70.0.0) unless you specify pip install --use-pep517

As explained here this is due to an issue when using setup_requires

In astromodels, this happens here:

setup_requires=['numpy'],

While this might be solved on the setuptools side (see this issue), I wondering if astronomodels still really needs setup_requires or if that code is there for historical reason and can be removed now (which would make the installation easier for users).

Activity

  1. changed the title [-]Installation failes unless using --use-pep517[/-] [+]Installation fails unless using --use-pep517[/+] on Jun 6, 2024
  2. ndilalla commented on Sep 27, 2025

    @ndilalla
    Contributor

    @israelmcmc could you check whether now that we use a pyproject.toml file this issue has finally been solved?

  3. israelmcmc commented on Sep 29, 2025

    @israelmcmc
    ContributorAuthor

    Yeap, it's solved! I tested python 3.10-3.13. All worked fine. Thanks @ndilalla and @PreisTo.

    @ndilalla Do you know which version will include this fix?

  4. ndilalla commented on Oct 1, 2025

    @ndilalla
    Contributor

    Yeap, it's solved! I tested python 3.10-3.13. All worked fine. Thanks @ndilalla and @PreisTo.

    @ndilalla Do you know which version will include this fix?

    Awesome! So I am closing this issue. The upcoming new version 2.5.0 will include all the latest changes. It is already available as a development version (2.5.0.dev5) and will be soon merged to master and officially released.

  5. israelmcmc commented on Oct 2, 2025

    @israelmcmc
    ContributorAuthor

    Thanks @ndilalla!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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