You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ x] I am on the latest stable Poetry version, installed using a recommended method.
[x ] I have searched the issues of this repo and believe that this is not a duplicate.
[x ] I have consulted the FAQ and blog for any relevant entries or release notes.
[x ] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.
Issue
I have a package with an extension I compile with CMake via build.py, which happens to produce an enormous amount of warnings. The code compiles fine, and executing poetry build works, but poetry install hangs during the call to the build.py script. I've isolated the problem to this change by @dimbleby: 012fcb9#diff-a0b29e9c4cccbaeea08eefe3abe15e6cffe0fdcb998ad87a4a39bfeaa5aec27fR1540 where stdout=subprocess.PIPE was added to the subprocess call. I believe the issue is exactly what is written in the warning box of the subprocess.call doc string (https://docs.python.org/3/library/subprocess.html#subprocess.call), that using PIPE can fill the OS pipe buffer causing the process not to return. Indeed, removing subprocess.PIPE from the subprocess call in L1540 fixes the problem.
In the gist the problem can be reproduced with a very simple example where build.py prints 10000 lines. Changing it to print only 10 lines install works.
I've also reproduced the issue in a Docker container. I used quay.io/pypa/manylinux2014_x86_64:latest.
The text was updated successfully, but these errors were encountered:
Poetry version: 1.4.1
Python version: 3.11.2 (Homebrew)
OS version and name: macOS 12.2.1
pyproject.toml: https://gist.github.com/fzahle/3f0ae0237b325e736246bd467e56e6d5
[ x] I am on the latest stable Poetry version, installed using a recommended method.
[x ] I have searched the issues of this repo and believe that this is not a duplicate.
[x ] I have consulted the FAQ and blog for any relevant entries or release notes.
[x ] If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option) and have included the output below.Issue
I have a package with an extension I compile with CMake via
build.py
, which happens to produce an enormous amount of warnings. The code compiles fine, and executingpoetry build
works, butpoetry install
hangs during the call to thebuild.py
script. I've isolated the problem to this change by @dimbleby: 012fcb9#diff-a0b29e9c4cccbaeea08eefe3abe15e6cffe0fdcb998ad87a4a39bfeaa5aec27fR1540 wherestdout=subprocess.PIPE
was added to the subprocess call. I believe the issue is exactly what is written in the warning box of thesubprocess.call
doc string (https://docs.python.org/3/library/subprocess.html#subprocess.call), that using PIPE can fill the OS pipe buffer causing the process not to return. Indeed, removingsubprocess.PIPE
from the subprocess call in L1540 fixes the problem.In the gist the problem can be reproduced with a very simple example where
build.py
prints 10000 lines. Changing it to print only 10 linesinstall
works.I've also reproduced the issue in a Docker container. I used
quay.io/pypa/manylinux2014_x86_64:latest
.The text was updated successfully, but these errors were encountered: