python-poetry / python-poetry/poetry
How to print dependency stdout during Poetry install
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 34.3k
- Forks
- 2.5k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 30
Description
- I have searched the issues of this repo and believe that this is not a duplicate.
- I have searched the documentation and believe that my question is not covered.
Issue
I have a project (myproject) that I am trying to use poetry on. It has a non-python dependency that takes 10 minutes to build where it execute bash scripts and compile c code. What I used to do was:
- create a virtual environment
- git clone myproject and myprojectdep
- python setup.py develop (in myprojectdep directory)
- python setup.py develop (in myproject directory)
The above installation workflow allowed me to continue develop on myprjectdep and myproject and push changes to git without having to reinstall.
I added a pyproject.toml file to try to replicate the above environment with poetry with the installation workflow below:
- git clone myproject and myprojectdep
- poetry install (in myprojectdep directory)
- edit pyproject.toml file in myproject to use path dependency to myprjectdep (i.e. myprojectdep = {path = "../path/to/myprojectdep/"})
- poetry install -vvv (in myproject directory)
My issue is that myprojectdep has console output to show me the progress of installation and even when I do poetry install -vvv I can't see those output. Below is the sample console output.
username@userpc:~/myproject/$ poetry install -vvv
Using virtualenv: /home/username/.cache/pypoetry/virtualenvs/myproject-fi2uL8gs-py3.7
Installing dependencies from lock file
[sudo] password for username:
After giving the password poetry seems to be running some process 10~20 minutes then:
Package operations: 30 installs, 0 updates, 0 removals
- Installing llvmlite (0.31.0)
- Installing numpy (1.18.1)
- Installing pycparser (2.19)
- Installing six (1.14.0)
- Installing cffi (1.14.0)
- Installing docutils (0.15.2)
- Installing jmespath (0.9.4)
- Installing joblib (0.14.1)
- Installing numba (0.48.0)
- Installing python-dateutil (2.8.1)
- Installing scipy (1.4.1)
- Installing urllib3 (1.25.8)
- Installing audioread (2.1.8)
- Installing botocore (1.15.2)
- Installing decorator (4.4.1)
- Installing pyparsing (2.4.6)
- Installing pytz (2019.3)
- Installing resampy (0.2.2)
- Installing scikit-learn (0.22.1)
- Installing soundfile (0.10.3.post1)
- Installing cycler (0.10.0)
- Installing kiwisolver (1.1.0)
- Installing librosa (0.7.2)
- Installing pandas (1.0.1)
- Installing pykaldi (0.1.2 bf7413a)
poetry prints the above messages and stops outputing anything for another 10~20minutes
How do I have poetry print the output of the dependency installation process?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue centers on poetry install -vvv and a path dependency configured in pyproject.toml; begin by reproducing the silent 10–20 minute build with the provided workflow and inspect the installation output behavior. Done means dependency build stdout and progress are visible during installation, including for the path dependency.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash, c, python
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100