Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix installation command #1690

Closed
wants to merge 2 commits into from
Closed

Conversation

janEbert
Copy link

@janEbert janEbert commented Jul 5, 2023

--build-option is not the correct config setting to use; we need --global-option.

Ref #1679.

`--build-option` is not the correct config setting to use; we need
`--global-option`.

Ref NVIDIA#1679.
@janEbert
Copy link
Author

janEbert commented Jul 6, 2023

Actually this command suffers from the same deprecation problems that the previous command tried to solve, see #1679 (comment).

I assume the flags specified in --build-options need to be accessed differently in setup.py.

@janEbert janEbert marked this pull request as draft July 6, 2023 06:36
This implements a custom build backend, inspired by [the solution used
by Pillow](python-pillow/Pillow#7171).

With this change, argument flags now need to be specified as key-value
pairs instead of key-only as `--config-settings`. Every argument can
either be left unspecified or have a value that is either "enabled" or
"disabled".

For example:

```
--config-settings --global-option=--cpp_ext
--global-option --cpp_ext
```

becomes

```
--config-settings cpp_ext=enabled
```

The setuptools version requirement of 40.8.0 was also adopted from
Pillow. It is the version that introduced the `build_meta:__legacy__`
backend.
@janEbert janEbert marked this pull request as ready for review July 6, 2023 08:06
@janEbert
Copy link
Author

janEbert commented Jul 6, 2023

See #1692.

@janEbert janEbert closed this Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant