mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-03 14:12:04 +03:00
python: add verbosity to pip translator
This commit is contained in:
parent
55f9d0c210
commit
99914a4331
@ -59,21 +59,23 @@ in {
|
|||||||
cp -r $source ./source
|
cp -r $source ./source
|
||||||
chmod +w -R ./source
|
chmod +w -R ./source
|
||||||
|
|
||||||
# install setup dependencies from extraSetupDeps
|
echo "reading setup requirements from pyproject.toml"
|
||||||
|
toml2json ./source/pyproject.toml | jq '."build-system".requires[]' -r > __setup_reqs.txt || :
|
||||||
|
|
||||||
|
echo "install setup dependencies from extraSetupDeps"
|
||||||
echo "$(jq '.extraSetupDeps[]' -c -r $jsonInput)" > __extra_setup_reqs.txt
|
echo "$(jq '.extraSetupDeps[]' -c -r $jsonInput)" > __extra_setup_reqs.txt
|
||||||
$python -m pip install \
|
$python -m pip install \
|
||||||
--prefix ./install \
|
--prefix ./install \
|
||||||
-r __extra_setup_reqs.txt
|
-r __extra_setup_reqs.txt
|
||||||
|
|
||||||
# download setup dependencies from pyproject.toml
|
echo "download setup dependencies from pyproject.toml"
|
||||||
toml2json ./source/pyproject.toml | jq '."build-system".requires[]' -r > __setup_reqs.txt || :
|
|
||||||
$python -m pip download \
|
$python -m pip download \
|
||||||
--dest $tmp \
|
--dest $tmp \
|
||||||
--progress-bar off \
|
--progress-bar off \
|
||||||
-r __extra_setup_reqs.txt \
|
-r __extra_setup_reqs.txt \
|
||||||
-r __setup_reqs.txt
|
-r __setup_reqs.txt
|
||||||
|
|
||||||
# download files according to requirements
|
echo "download files according to requirements"
|
||||||
PYTHONPATH=$(realpath ./install/$sitePackages) \
|
PYTHONPATH=$(realpath ./install/$sitePackages) \
|
||||||
$python -m pip download \
|
$python -m pip download \
|
||||||
--dest $tmp \
|
--dest $tmp \
|
||||||
|
Loading…
Reference in New Issue
Block a user