pysetup.sh 463 B

1234567891011121314
  1. #!/bin/bash
  2. # Start from a clean environment
  3. rm -rf venv/
  4. # Basic python3 virtual environment
  5. python3 -m venv venv
  6. source venv/bin/activate
  7. pip install wheel
  8. pip install -r requirements.txt
  9. # Fix a bug in scapy that isn't fixed in the PyPI version yet. For background see
  10. # https://github.com/secdev/scapy/commit/46fa40fde4049ad7770481f8806c59640df24059
  11. sed -i 's/find_library("libc")/find_library("c")/g' venv/lib/python*/site-packages/scapy/arch/bpf/core.py