-
Notifications
You must be signed in to change notification settings - Fork 139
Update Readme instruction to install cython #223
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
Update Readme instruction to install cython #223
Conversation
Signed-off-by: Praateek Mahajan <[email protected]>
Signed-off-by: Praateek Mahajan <[email protected]>
Cython
in build-system within pyproject.toml
I just checked out your branch, and tried to install like so:
But I still get a failure to install:
If I first for what it's worth:
|
Signed-off-by: Praateek Mahajan <[email protected]>
Cython
in build-system within pyproject.toml
Thanks for doing all this work debugging! Curator requires all commits to be signed ( |
Signed-off-by: Praateek Mahajan <[email protected]>
395497f
to
3925cb8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
* add build-system, remove cython Signed-off-by: Praateek Mahajan <[email protected]> * remove commented cython Signed-off-by: Praateek Mahajan <[email protected]> * remove pyproject.toml changes, add readme instructions Signed-off-by: Praateek Mahajan <[email protected]> * Add build system Signed-off-by: Praateek Mahajan <[email protected]> --------- Signed-off-by: Praateek Mahajan <[email protected]> Signed-off-by: Yang Yu <[email protected]>
* add build-system, remove cython Signed-off-by: Praateek Mahajan <[email protected]> * remove commented cython Signed-off-by: Praateek Mahajan <[email protected]> * remove pyproject.toml changes, add readme instructions Signed-off-by: Praateek Mahajan <[email protected]> * Add build system Signed-off-by: Praateek Mahajan <[email protected]> --------- Signed-off-by: Praateek Mahajan <[email protected]>
Description
Currently the installation using
pip install .
doesn't work. We add instructions to pre-installcython
to make it work.Root cause for
cpython
nemo_toolkit
depends onYouTokenToMe
(and that requires Cython to exist). This is also addressed in our.github/workflows/test.yml
https://github.com/NVIDIA/NeMo-Curator/blob/2e0af575e65b73b7cf9455d36a68c5dba51a6553/.github/workflows/test.yml#L40
Even
nemo_toolkit
requires an explicit installation ofCython
before installingnemo_toolkit
https://github.com/NVIDIA/NeMo/blob/a777a442c43cd2092684c8b8f06701ed62134a9f/README.md#pip
Future
However once
nemo_toolkit
2.x is released we might be able to resolve this since NVIDIA/NeMo#8322 has been merged. In future we can also consider movingnemo_toolkit
as an optional dependency since it's just used in a single place https://github.com/NVIDIA/NeMo-Curator/blob/2e0af575e65b73b7cf9455d36a68c5dba51a6553/nemo_curator/filters/code.py#L105Why not add to install_requires?
IIUC explicitly having
Cython
as a dependency ininstall_requires
withinsetup.py
doesn't solve the issue because IIUC pip doesn't respect any specific order of installation, so when it's installingnemo_toolkit
,Cython
hasn't been installed by then.Alternative solution
Tried adding
build-system
to thepyproject.toml
however that didn't work as cython was still not found during install step.ae26c34
Checklist