forked from p15670423/monkey
Build: Use `pipenv requirements` in appimage build
As of pipenv 2022.04.30, `pipenv lock -r` is deprecated in favor of the new `pipenv requirements` command.
This commit is contained in:
parent
0a145be25d
commit
fdf8198e7f
|
@ -84,9 +84,9 @@ install_monkey_island_python_dependencies() {
|
||||||
generate_requirements_from_pipenv_lock () {
|
generate_requirements_from_pipenv_lock () {
|
||||||
local requirements_island=$1
|
local requirements_island=$1
|
||||||
|
|
||||||
log_message "Generating a requirements.txt file with 'pipenv lock -r'"
|
log_message "Generating a requirements.txt file with 'pipenv requirements'"
|
||||||
pushd "$BUILD_DIR/monkey_island"
|
pushd "$BUILD_DIR/monkey_island"
|
||||||
"$APPDIR"/AppRun -m pipenv --python "$APPDIR/AppRun" lock -r > "$requirements_island" || handle_error
|
"$APPDIR"/AppRun -m pipenv --python "$APPDIR/AppRun" requirements --hash > "$requirements_island" || handle_error
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue