Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I use poetry to manage project dependencies. I want to install
openai-whisper
but failed:However, it should be noted that my computer model is Macbook pro M2. According to the instructions in setup.py, triton should not be installed:
After investigation, I found that poetry's dependencies incorrectly included triton. The dependency list was caused by the following code:
The logic of this code is to download and decompress the
openai-whisper-20231117.tar.gz
file, and obtain the dependency list from theopenai_whisper.egg-info/requires.txt
file.According to the current usage, if you are using a Linux system when uploading a package to PYPI, the triton will be written to the
openai_whisper.egg-info/requires.txt
file, which will affect the normal operation of other systems (such as mac, win) useSo I fixed the writing of triton according to https://peps.python.org/pep-0508/#environment-markers. I have tested it in mac and linux environments respectively and made sure it is correct