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

uv pip install --verbose not displaying native extension build logs #2158

Closed
abetlen opened this issue Mar 4, 2024 · 2 comments
Closed

uv pip install --verbose not displaying native extension build logs #2158

abetlen opened this issue Mar 4, 2024 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@abetlen
Copy link

abetlen commented Mar 4, 2024

Hi there!

First off fantastic project, I'm currently in the process of moving over most of my ci to uv but I just ran into a little issue regarding logging build information for native extensions.

Issue

When building and installing native extensions it's commonly useful to print verbose logs from the build steps (usually cmake logs). With pip adding --verbose seems to be sufficient to get these logs printed however with uv pip I haven't been able to get them to print no matter what options I set (maybe I'm doing something wrong).

Minimal Example

python3 -m pip install uv
git clone https://github.com/scikit-build/scikit-build-core.git
cd scikit-build-core/docs/examples/getting_started/c
# Installing using pip --verbose prints cmake logs
pip install --verbose --editable .
# However with uv pip it does not
uv pip install --verbose --editable .

Expected Output

  *** scikit-build-core 0.8.2 using CMake 3.28.3 (editable)
  2024-03-04 10:31:52,002 - scikit_build_core - WARNING - No license files found, set wheel.license-files to [] to suppress this warning
  *** Configuring CMake...
  loading initial cache file /tmp/tmpw6zsomze/build/CMakeInit.txt
  -- The C compiler identification is GNU 9.4.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /usr/bin/cc - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Found Python: /home/andrei/Documents/uv-install-issue/.direnv/python-3.8.10/bin/python3 (found version "3.8.10") found components: Interpreter Development.Module
  -- Configuring done (0.3s)
  -- Generating done (0.0s)
  -- Build files have been written to: /tmp/tmpw6zsomze/build
  *** Building project with Ninja...
  [1/2] Building C object CMakeFiles/example.dir/example.c.o
  [2/2] Linking C shared module example.cpython-38-x86_64-linux-gnu.so
  *** Installing project into wheel...
  -- Install configuration: "Release"
  -- Installing: /tmp/tmpw6zsomze/wheel/platlib/./example.cpython-38-x86_64-linux-gnu.so
  *** Making editable...
  *** Created example-0.0.1-cp38-cp38-manylinux_2_31_x86_64.whl...
  Building editable for example (pyproject.toml) ... done

System Info

current uv version (uv --version): uv 0.1.13

@abetlen abetlen changed the title uv pip install --verbose not display native extension build logs uv pip install --verbose not displaying native extension build logs Mar 4, 2024
@zanieb
Copy link
Member

zanieb commented Mar 4, 2024

Thanks for the well written issue :)

Is this a duplicate of either

or is it different somehow?

@abetlen
Copy link
Author

abetlen commented Mar 4, 2024

@zanieb woops, yes sorry it is a duplicate. I did search first but I guess I missed those somehow. I'll close this issue!

@abetlen abetlen closed this as not planned Won't fix, can't repro, duplicate, stale Mar 4, 2024
@zanieb zanieb added the duplicate This issue or pull request already exists label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants