Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make faster_whisper.assets as a valid python package to distribute (#772) #774

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

otakutyrant
Copy link
Contributor

faster_whisper use find_packages in setup.py to scan directories and distribute valid python packages. According to
https://setuptools.pypa.io/en/latest/userguide/package_discovery.html, the find_packages function will ignore faster_whisper/assets which is not a valid python package because it does not contain __init__.py.

However, when I build the package, setuptools raise a waring as #772, and I do not know why. So I add __init__.py under the faster_whisper.assets directory, making setuptools regard faster_whisper.assets is a part of distribution.

…YSTRAN#772)

faster_whisper use `find_packages` in setup.py to scan directories and
distribute valid python packages. According to
https://setuptools.pypa.io/en/latest/userguide/package_discovery.html,
the `find_packages` function will ignore `faster_whisper/assets` which
is not a valid python package because it does not contain `__init__.py`.

However, when I build the package, setuptools raise a waring as SYSTRAN#772,
and I do not know why. So I add `__init__.py` under the
`faster_whisper.assets` directory, making setuptools regard
`faster_whisper.assets` is a part of distribution.
@nguyendc-systran nguyendc-systran merged commit 91c8307 into SYSTRAN:master Apr 2, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants