aio-libs / aio-libs/yarl

Cannot build distribution-friendly wheels

未關閉
#1,592 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Python
星號
1.5k
分支
215
平均合併
1 天 2 分鐘
30 天內合併 PR
13

描述

### Please confirm the following

- [x] I agree to follow the [aio-libs Code of Conduct][CoC]

[CoC]: ../../.github/blob/master/CODE_OF_CONDUCT.md

- [x] I have checked the [current issues][issue search] for duplicates.

[issue search]: ../search?q=is%3Aissue&type=issues

- [x] I understand this is open source software provided for free and that I might not receive a timely response.
- [x] I am positive I am **NOT** reporting a (potential) security
vulnerability, to the best of my knowledge. *(These must be shared by
submitting [this report form][vulnerability report form] instead, if
any hesitation exists.)*

[vulnerability report form]: ../security/advisories/new

- [x] I am willing to submit a pull request with reporoducers as xfailing test cases or even entire fix. *(Assign this issue to me.)*

### Describe the bug

Since https://github.com/aio-libs/yarl/pull/1586 the default builds are "release" (`-g0 -Ofast -NDEBUG -s`) or "debug" (`-g3 -Og ...`).

However, all Linux distributions and probably others such as homebrew and macports, don't build like this at all.

The standard behaviour for Linux is to build with something along the lines of `-g -O2` and then split the debug symbols into separate packages, so out of the box the binaries are optimised enough and debug symbols that mostly work are easily available.

The usual way we do this is by setting `CFLAGS` to the flags we want, and expecting packages to follow them. Whilst I respect your desire for the binary wheels you ship to be built in fully optimised, is there a way to opt out of this behaviour?

### To Reproduce

Build yarl, expect debug symbols in the binary.

### Expected behavior

Yarl will respect CFLAGS/LDFLAGS and not forcibly add its own flags.

### Logs/tracebacks

```python-traceback
N/A
```

### Python Version

```console
$ python --version
```

### multidict Version

```console
$ python -m pip show multidict
```

### propcache Version

```console
$ python -m pip show propcache
```

### yarl Version

```console
$ python -m pip show yarl
```

### OS

Linux

### Additional context

_No response_

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。