-
-
Notifications
You must be signed in to change notification settings - Fork 722
notes on running scancode-toolkit on freebsd 15 #4873
Copy link
Copy link
Open
Labels
Description
prereq: sudo pkg install python314 rust magic libarchive 7-zip, we need rust to build dependencies during the pip install
python314 -m venv venvin scancode-toolkit directory and. venv/bin/activate- comment out existing entries for
typecode[full]andextractcode[full]in setup.cfg - add
extractcode,typecode-libmagic-system-provided,extractcode-libarchive-system-provided,extractcode-7z-system-providedto install requires in setup.cfg - run
pip install -e .
3.1.pip install pytest-xdist setuptoolsif you want to run the tests - run
scancode-reindex-licensesandscancode-train-gibberish-gibberish-model - run scancode on samples dir
scancode -clipeu -n 10 samples/ --json-pp samples.jsonto check functionality
thoughts:
- update setup.cfg and
configureto have an option to use system provided libraries without having to do the above - we can remove our dependency on prebuilt binaries from https://github.com/aboutcode-org/scancode-plugins/tree/main/builtins from scancode eventually, simplifying running scancode on other architectures and os'
- maybe these notes would be useful for existing efforts to run scancode on linux and macos arm systems
Reactions are currently unavailable