NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.06k stars 14.08k forks source link

Build failure: python312Packages.keep #353771

Open mknudsen opened 13 hours ago

mknudsen commented 13 hours ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. run nix-shell -p python312Packages.keep

Build log

this derivation will be built:
  /nix/store/g1hflqj5pqpk6y79jxg4l2dxh8rbmgkl-python3.12-keep-2.11.drv
building '/nix/store/g1hflqj5pqpk6y79jxg4l2dxh8rbmgkl-python3.12-keep-2.11.drv'...
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Running phase: unpackPhase
unpacking source archive /nix/store/9zvlfnp4v0386s5j26zyhbw2k0az9622-keep-2.11.tar.gz
source root is keep-2.11
setting SOURCE_DATE_EPOCH to timestamp 1722455844 of file keep-2.11/pyproject.toml
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
no configure script, doing nothing
Running phase: buildPhase
Executing setuptoolsBuildPhase
Traceback (most recent call last):
  File "/private/tmp/nix-build-python3.12-keep-2.11.drv-0/keep-2.11/nix_run_setup", line 8, in <module>
    exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/nix/store/2djmffykchgm4q4j7ylv7xgkg441mp2j-python3-3.12.7/lib/python3.12/tokenize.py", line 449, in open
    buffer = _builtin_open(filename, 'rb')
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'setup.py'
error: builder for '/nix/store/g1hflqj5pqpk6y79jxg4l2dxh8rbmgkl-python3.12-keep-2.11.drv' failed with exit code 1;
       last 25 log lines:
       > Using setuptoolsBuildPhase
       > Sourcing pypa-install-hook
       > Using pypaInstallPhase
       > Sourcing python-imports-check-hook.sh
       > Using pythonImportsCheckPhase
       > Sourcing python-namespaces-hook
       > Sourcing python-catch-conflicts-hook.sh
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/9zvlfnp4v0386s5j26zyhbw2k0az9622-keep-2.11.tar.gz
       > source root is keep-2.11
       > setting SOURCE_DATE_EPOCH to timestamp 1722455844 of file keep-2.11/pyproject.toml
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > no configure script, doing nothing
       > Running phase: buildPhase
       > Executing setuptoolsBuildPhase
       > Traceback (most recent call last):
       >   File "/private/tmp/nix-build-python3.12-keep-2.11.drv-0/keep-2.11/nix_run_setup", line 8, in <module>
       >     exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))
       >                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       >   File "/nix/store/2djmffykchgm4q4j7ylv7xgkg441mp2j-python3-3.12.7/lib/python3.12/tokenize.py", line 449, in open
       >     buffer = _builtin_open(filename, 'rb')
       >              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       > FileNotFoundError: [Errno 2] No such file or directory: 'setup.py'
       For full logs, run 'nix-store -l /nix/store/g1hflqj5pqpk6y79jxg4l2dxh8rbmgkl-python3.12-keep-2.11.drv'.

Additional context

Add any other context about the problem here.

Notify maintainers

@risicle

Metadata

 - system: `"aarch64-darwin"`
 - host os: `Darwin 24.1.0, macOS 15.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.24.9`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

Add a :+1: reaction to issues you find important.

Kek5chen commented 10 hours ago

The issue here seems to be with python312Packages.keep, not howdoi.

Kek5chen commented 9 hours ago

Seems like keep used to ship a setup.py but doesn't anymore, though this hasn't been taken care of in the package bump 361a131eca9a0 .

I can't seem to find a PR to this either. @mweinelt did you test the build, did it work for you?