Skip to content

Move packaging and ninja from install_requires to setup_requires - #937

Merged
tridao merged 1 commit into
Dao-AILab:mainfrom
weiji14:patch_setup_requires
May 6, 2024
Merged

Move packaging and ninja from install_requires to setup_requires#937
tridao merged 1 commit into
Dao-AILab:mainfrom
weiji14:patch_setup_requires

Conversation

@weiji14

@weiji14 weiji14 commented May 5, 2024

Copy link
Copy Markdown
Contributor

Set packaging and ninja as build time dependencies rather than runtime dependencies.

Xref conda-forge/staged-recipes#26239 (comment) where we're trying to package flash-attn on conda-forge, and would like the setup.py metadata to be correct so that running pip check would work.

Set `packaging` and `ninja` as build time dependencies rather than runtime dependencies.
@carterbox

Copy link
Copy Markdown

For clarity, it is highly unusual to require the ninja build system and packaging at runtime. setup_requires is the list of packages required to build this package. install_requires is the list of packages required to run this package.

@dtrifiro

dtrifiro commented May 6, 2024

Copy link
Copy Markdown

Agreed, ninja and packaging should not be required when installing, but only when building flash-attn.

@tridao
tridao marked this pull request as ready for review May 6, 2024 16:45
@tridao
tridao merged commit 9c0e9ee into Dao-AILab:main May 6, 2024
@weiji14
weiji14 deleted the patch_setup_requires branch May 6, 2024 19:32
playerzer0x pushed a commit to Liqhtworks/flash-attention that referenced this pull request Jul 24, 2025
…-AILab#937)

Set `packaging` and `ninja` as build time dependencies rather than runtime dependencies.
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.

4 participants