File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ CFG_ROOT_DIR="$( cd "$( dirname "${CFG_BIN}" )" && pwd )"
118118
119119CFG_BIN_DIR=$CFG_ROOT_DIR /$VIRTUALENV_DIR /bin
120120
121- # force relaunching under X86-64 architecture on macOS M1/ARM
121+ # force relaunching under X86-64 architecture on macOS M1/ARM
122122if [[ $OSTYPE == ' darwin' * && $( uname -m) == ' arm64' && $( sysctl -in sysctl.proc_translated) == 0 ]]; then
123123 arch -x86_64 /bin/bash -c " $CFG_ROOT_DIR /configure $* "
124124 exit $?
@@ -148,6 +148,16 @@ if [[ $OSTYPE == 'darwin'* ]]; then
148148 BASE_DEV=" .[testing]"
149149fi
150150
151+ # If SCANCODE_SYSTEM_PROVIDED is set, then we install system_provided extra_require
152+ if [[ SCANCODE_SYSTEM_PROVIDED ]]; then
153+ BASE=" .[packages,system_provided]"
154+ BASE_DEV=" .[packages,testing,system_provided]"
155+ if [[ $OSTYPE == ' darwin' * ]]; then
156+ BASE=" .[system_provided]"
157+ BASE_DEV=" .[testing,system_provided]"
158+ fi
159+ fi
160+
151161# Requirement arguments passed to pip and used by default or with --dev.
152162REQUIREMENTS=" --editable $BASE --constraint requirements.txt --constraint requirements-linux.txt"
153163DEV_REQUIREMENTS=" --editable $BASE_DEV --constraint requirements.txt --constraint requirements-linux.txt --constraint requirements-dev.txt"
Original file line number Diff line number Diff line change @@ -151,6 +151,11 @@ packages =
151151 packagedcode_msitools >= 0.101.210706; platform_system == 'Linux'
152152 go-inspector >= 0.3.1; platform_system == 'Linux'
153153
154+ # use 7zip, libarchive, and libmagic provided on the system
155+ system_provided =
156+ extractcode-7z-system-provided
157+ extractcode-libarchive-system-provided
158+ typecode-libmagic-system-provided
154159
155160[options.entry_points]
156161console_scripts =
Original file line number Diff line number Diff line change @@ -151,6 +151,11 @@ packages =
151151 packagedcode_msitools >= 0.101.210706; platform_system == 'Linux'
152152 go-inspector >= 0.3.1; platform_system == 'Linux'
153153
154+ # use 7zip, libarchive, and libmagic provided on the system
155+ system_provided =
156+ extractcode-7z-system-provided
157+ extractcode-libarchive-system-provided
158+ typecode-libmagic-system-provided
154159
155160[options.entry_points]
156161console_scripts =
You can’t perform that action at this time.
0 commit comments