Skip to content

Make packet capture dependencies optional#17

Open
keilogic wants to merge 1 commit into
SuperCowPowers:masterfrom
keilogic:install-with-optional-capture
Open

Make packet capture dependencies optional#17
keilogic wants to merge 1 commit into
SuperCowPowers:masterfrom
keilogic:install-with-optional-capture

Conversation

@keilogic

@keilogic keilogic commented Jun 1, 2026

Copy link
Copy Markdown

Summary

  • move native packet-capture/interface dependencies into a capture extra
  • keep packet capture imports lazy with actionable install hints when the extra is missing
  • update install docs and package metadata so base installs avoid the broken pcapy metadata path

Fixes #14.

Validation

  • python -m py_compile setup.py chains\sources\packet_streamer.py chains\utils\net_utils.py
  • python -m flake8 setup.py chains\sources\packet_streamer.py chains\utils\net_utils.py --max-line-length=140
  • python setup.py --name
  • git diff --check
  • fresh venv: pip install . succeeded with only dpkt
  • fresh venv import smoke: net_utils.inet_to_str(...) worked, missing capture helpers raised the new install hints
  • fresh venv dry-run: pip install '.[capture]' --dry-run resolved pcapy-ng and netifaces

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No way to install it

1 participant