pypa / pyproject-hooks

A low-level library for calling build-backends in `pyproject.toml`-based project
https://pyproject-hooks.readthedocs.io/
MIT License
122 stars 49 forks source link

Allow fallback from tomli to toml on newer Python #129

Closed nanonyme closed 3 years ago

nanonyme commented 3 years ago

Please allow falling to toml instead of requiring tomli on new Python 3. tomli is only installable with pep517 which creates a circular dependency that you need pep517 to build pep517.

nanonyme commented 3 years ago

Come to that, looks like pep517 needs pep517 to be built so it has circular dependency on itself as well.

nanonyme commented 3 years ago

I'm closing this. We clearly just need to bootstrap somehow.

takluyver commented 3 years ago

I'm working on a bootstrapping page as part of flit's documentation. On my phone now, so I can't quickly link it, but it should be easy to find the PR.

On Sun, 29 Aug 2021, 14:35 Seppo Yli-Olli, @.***> wrote:

Closed #129 https://github.com/pypa/pep517/issues/129.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pypa/pep517/issues/129#event-5222743303, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACQB5JUUT6LNPAUVKOPLIDT7IZS3ANCNFSM5DAHUJHQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

nanonyme commented 3 years ago

@takluyver it was reasonably straightforward to do, I tried as part of https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/merge_requests/5870 and created a new tool to install wheels that can be told what the build-backend is so it doesn't need to read TOML during bootstrapping.