native-api

Results 407 comments of native-api

I was under impression that Pyenv builds Python in the default configuration for the principle of the least suprise, only adding stuff like dependency locations. Whoever needs another one can...

In Python's `configure` help, this is explicitly listed under "Optional features": ``` vmuser@bionic-vbox-vm:~/Python-3.8.9$ ./configure --help Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)...

According to https://github.com/heroku/heroku-buildpack-python/issues/488, > The official Python docker images use `--enable-loadable-sqlite-extensions` so I'd be inclined to copy them: > [docker-library/python#125](https://github.com/docker-library/python/pull/125) I guess that does it. The disabled-by-default option was added...

Why shouldn't it be so? It's only natural that packages get access to the same headers/libs as Python itself -- otherwise, they may fail to build of be built in...

Did check there and didn't see a convincing explanation. AFAICS, the problem is that a Pip package fails to build a private version of a C library if the same...

> the `-I` and `-L` flags that you need for the Python build should go into `CFLAGS_NODIST`, `LDFLAGS_NODIST`. Upstream provides them for this specific purpose. https://docs.python.org/3/using/configure.html does not really specify...

> The `-W` definitely have no business to leak into user packages – what flags are meaningful is specific to the CPython sources. > > The `-DNDEBUG` definitely has no...

We recently had to explicitly add Homebrew dirs [that were moved to `LDFLAGS_NODIST` in a linked fix](https://github.com/Homebrew/homebrew-core/pull/68528/files) to `python-config --ldflags` [because they turned out to be required for linking against...

> we cannot do anything about Pip packages being unable to override Python-provided flags As such, I suggest you instead pursue that venue as that seems to be the real...

Looking more closely, it's also rather unclear what exact flags you want to be removed. The linked Cygwin and Homebrew issues list vastly different flags, and it's not specified in...