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
Spacy #36899
Spacy #36899
Conversation
I still need to add the update to spacy. |
You need to add yourself to |
Fix thinc and spacy for #36453 |
}; | ||
|
||
preBuild = '' |
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.
prePatch
]; | ||
|
||
preBuild = '' |
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.
prePatch
pname = "ftfy"; | ||
# latest is 5.1.1, buy spaCy requires 4.4.3 |
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.
Why did you drop the comment?
Please open a PR at the spaCy side that allows it to use a newer ftfy version.
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.
I can open a PR but I very much doubt that it will be accepted.
Spacy is still very much supporting python2.7 and ftfy v5 dropped support for python3.
The v4 branch of ftfy still gets some updates so I doubt the maintainer of Spacy will accept working with two different versions of ftfy as that would make keeping the 2.7 compatibility that much harder.
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.
As long as nobody needs a newer version of ftfy, I think it's okay to stay at the old one. However, please keep the comment.
numpy | ||
]; | ||
|
||
doCheck = true; |
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.
not needed
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.
Why not? There are tests, they work an they take less than 10ms to run?
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.
doCheck
is set to true by default
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.
Ah... indeed
V5 only supports python3. Since at the moment the only packages that use ftfy are spacy and textacy which both support python2 and 3, I propose to roll back to v4 until another package requires v5, at that point we can make a duplicate package.
@dotlambda I have made the requested changes. |
@GrahamcOfBorg build python2.pkgs.msgpack-numpy python3.pkgs.msgpack-numpy python2.pkgs.murmurhash python3.pkgs.murmurhash python2.pkgs.thinc python3.pkgs.thinc python2.pkgs.ftfy python3.pkgs.ftfy python2.pkgs.spacy python3.pkgs.spacy |
Success on x86_64-linux (full log) Attempted: python2.pkgs.msgpack-numpy, python3.pkgs.msgpack-numpy, python2.pkgs.murmurhash, python3.pkgs.murmurhash, python2.pkgs.thinc, python3.pkgs.thinc, python2.pkgs.ftfy, python3.pkgs.ftfy, python2.pkgs.spacy, python3.pkgs.spacy Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: python2.pkgs.msgpack-numpy, python3.pkgs.msgpack-numpy, python2.pkgs.murmurhash, python3.pkgs.murmurhash, python2.pkgs.thinc, python3.pkgs.thinc, python2.pkgs.ftfy, python3.pkgs.ftfy, python2.pkgs.spacy, python3.pkgs.spacy Partial log (click to expand)
|
@aborsu Btw, ftfy will probably be upgraded again with the next automatic package update. Thinking about it, we probably should just have disabled spacy for Python 3. Maybe you can find out if spacy works with ftfy v5 in the meantime. At least, it will work fine for 18.03 now. |
@dotlambda I would be saddened if spacy was disabled on python3 as I personally don't use python2 anymore. What about creating a ftfy_v4 package alongside the ftfy package? |
Oh sorry, it's the other way round. Ftfy v5 only works with Python 3. |
Motivation for this change
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)