Skip to content

The build system does not isolate / clean artifacts correctly, resulting in stray .so files in wheels #33

@mgorny

Description

@mgorny

As of ea3bda7:

$ python3.12 /usr/bin/pyproject-build -w
* Creating isolated environment: virtualenv+pip...
The --no-wheel and --wheel options are deprecated. They have no effect for Python > 3.8 as wheel is no longer bundled in virtualenv.
* Installing packages in isolated environment:
  - cython
  - poetry-core
  - setuptools
* Getting build dependencies for wheel...
* Building wheel...
Compiling rencode/_rencode.pyx because it changed.
[1/1] Cythonizing rencode/_rencode.pyx
Successfully built rencode-1.0.7-cp312-cp312-manylinux_2_41_x86_64.whl
$ python3.13 /usr/bin/pyproject-build -w
* Creating isolated environment: virtualenv+pip...
The --no-wheel and --wheel options are deprecated. They have no effect for Python > 3.8 as wheel is no longer bundled in virtualenv.
* Installing packages in isolated environment:
  - cython
  - poetry-core
  - setuptools
* Getting build dependencies for wheel...
* Building wheel...
Compiling rencode/_rencode.pyx because it depends on /tmp/build-env-bm7weixb/lib/python3.13/site-packages/Cython/Includes/libc/stddef.pxd.
[1/1] Cythonizing rencode/_rencode.pyx
Successfully built rencode-1.0.7-cp313-cp313-manylinux_2_41_x86_64.whl
$ unzip -l dist/rencode-1.0.7-cp313-cp313-manylinux_2_41_x86_64.whl 
Archive:  dist/rencode-1.0.7-cp313-cp313-manylinux_2_41_x86_64.whl
  Length      Date    Time    Name
---------  ---------- -----   ----
      383  01-01-2016 00:00   rencode/__init__.py
   129520  01-01-2016 00:00   rencode/_rencode.cpython-312-x86_64-linux-gnu.so
   129296  01-01-2016 00:00   rencode/_rencode.cpython-313-x86_64-linux-gnu.so
    16095  01-01-2016 00:00   rencode/_rencode.pyx
    13658  01-01-2016 00:00   rencode/rencode_orig.py
    35147  01-01-2016 00:00   rencode-1.0.7.dist-info/COPYING
      675  01-01-2016 00:00   rencode-1.0.7.dist-info/METADATA
      110  01-01-2016 00:00   rencode-1.0.7.dist-info/WHEEL
      743  01-01-2016 00:00   rencode-1.0.7.dist-info/RECORD
---------                     -------
   325627                     9 files

Note that the 3.13 wheel ends up containing .so both for 3.12 and 3.13 which is wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions