prereq: sudo pkg install python314 rust magic libarchive 7-zip, we need rust to build dependencies during the pip install
python314 -m venv venv in scancode-toolkit directory and . venv/bin/activate
- comment out existing entries for
typecode[full] and extractcode[full] in setup.cfg
- add
extractcode, typecode-libmagic-system-provided, extractcode-libarchive-system-provided, extractcode-7z-system-provided to install requires in setup.cfg
- run
pip install -e .
3.1. pip install pytest-xdist setuptools if you want to run the tests
- run
scancode-reindex-licenses and scancode-train-gibberish-gibberish-model
- run scancode on samples dir
scancode -clipeu -n 10 samples/ --json-pp samples.json to check functionality
thoughts:
- update setup.cfg and
configure to 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
prereq:
sudo pkg install python314 rust magic libarchive 7-zip, we need rust to build dependencies during the pip installpython314 -m venv venvin scancode-toolkit directory and. venv/bin/activatetypecode[full]andextractcode[full]in setup.cfgextractcode,typecode-libmagic-system-provided,extractcode-libarchive-system-provided,extractcode-7z-system-providedto install requires in setup.cfgpip install -e .3.1.
pip install pytest-xdist setuptoolsif you want to run the testsscancode-reindex-licensesandscancode-train-gibberish-gibberish-modelscancode -clipeu -n 10 samples/ --json-pp samples.jsonto check functionalitythoughts:
configureto have an option to use system provided libraries without having to do the above