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

internetarchive: Provide setuptools at runtime #75488

Merged
merged 1 commit into from Dec 11, 2019

Conversation

mat8913
Copy link
Contributor

@mat8913 mat8913 commented Dec 11, 2019

Motivation for this change

Since commit f7e28bf ("Split buildPythonPackage into setup hooks"), the ia command provided by this package has crashed with the error:

Traceback (most recent call last):
  File "/nix/store/7n1jf081h0qnj82m2s69mxzj02zf746f-python3.7-internetarchive-1.8.1/bin/.ia-wrapped", line 7, in <module>
    from internetarchive.cli.ia import main
  File "/nix/store/7n1jf081h0qnj82m2s69mxzj02zf746f-python3.7-internetarchive-1.8.1/lib/python3.7/site-packages/internetarchive/cli/__init__.py", line 27, in <module>
    from internetarchive.cli import ia, ia_configure, ia_delete, ia_download, ia_list, \
  File "/nix/store/7n1jf081h0qnj82m2s69mxzj02zf746f-python3.7-internetarchive-1.8.1/lib/python3.7/site-packages/internetarchive/cli/ia.py", line 60, in <module>
    from pkg_resources import iter_entry_points, DistributionNotFound
ModuleNotFoundError: No module named 'pkg_resources'

This commit fixes that by adding setuptools (which contains the 'pkg_resources' module) to propagatedBuildInputs.

This can also be backported to 19.09.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

cc @FRidh

Since commit f7e28bf ("Split
buildPythonPackage into setup hooks"), the `ia` command provided by this
package has crashed with the error:

    Traceback (most recent call last):
      File "/nix/store/7n1jf081h0qnj82m2s69mxzj02zf746f-python3.7-internetarchive-1.8.1/bin/.ia-wrapped", line 7, in <module>
        from internetarchive.cli.ia import main
      File "/nix/store/7n1jf081h0qnj82m2s69mxzj02zf746f-python3.7-internetarchive-1.8.1/lib/python3.7/site-packages/internetarchive/cli/__init__.py", line 27, in <module>
        from internetarchive.cli import ia, ia_configure, ia_delete, ia_download, ia_list, \
      File "/nix/store/7n1jf081h0qnj82m2s69mxzj02zf746f-python3.7-internetarchive-1.8.1/lib/python3.7/site-packages/internetarchive/cli/ia.py", line 60, in <module>
        from pkg_resources import iter_entry_points, DistributionNotFound
    ModuleNotFoundError: No module named 'pkg_resources'

This commit fixes that by adding `setuptools` (which contains the
'pkg_resources' module) to `propagatedBuildInputs`.
@teto teto merged commit 2cbb259 into NixOS:master Dec 11, 2019
@jonringer jonringer added the 9.needs: port to stable A PR needs a backport to the stable release. label Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants