Re: pyproject.toml (PEP518), build isolation (PEP517) and optional build dependencies

Bernat Gabor <[email protected]>
Newsgroups gmane.comp.python.distutils.devel
Message-ID <CALBzji727wJBdw45W5BcVRykqHznks-6GuB=VA_gswvPumW3=Q@mail.gmail.com>
How would you select/turn on optional packages?

On Thu, Jan 17, 2019 at 12:22 PM PIERRE AUGIER <
[email protected]> wrote:

> Hi,
>
> I can't use pyproject.toml for some projects with "optional build
> dependencies" because of build isolation.
>
> However, it would be very useful because we have also real build
> dependencies.
>
> I created an issue in pip repository (
> https://github.com/pypa/pip/issues/6144) but it seems to be a more
> general problem.
>
> I didn't find anything about such potential problem in PEP 517/518. Any
> thoughts how it can be solved?
>
> In the issue, I propose this:
>
> ```
> [build-system]
> # Minimum requirements for the build system to execute.
> requires = [
>     "setuptools", "wheel", "numpy", "cython", "jinja2",
> "fluidpythran>=0.1.7"
> ]
> # packages that are used during the build only if they are installed:
> optional = ["mpi4py", "pythran"]
>
> ```
>
> Pierre Augier
> --
> Distutils-SIG mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> https://mail.python.org/mailman3/lists/distutils-sig.python.org/
> Message archived at
> https://mail.python.org/archives/list/[email protected]/message/NDCZFPEA7EMTIUSR37LRCI57UCZPWKBQ/
>

--
Distutils-SIG mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/distutils-sig.python.org/
Message archived at https://mail.python.org/archives/list/[email protected]/message/GNASRJMUQ4X7GWM3VRKWSNGZJILCLBJM/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.