-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
pyenchant: Fix for darwin/macOS #78341
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
Conversation
Not sure what I'm doing, but the dependency on enchant-2 looks smaller than enchant-1:
|
Hm, now I'm not sure if this will work correctly because I don't think the envvar will be set outside of setup.py; I'll restore the hack to hard-code the lookup path directly into _enchant.py |
0f1dc32
to
3f33022
Compare
Squashed and fixed commit message |
an env var will only be present while the build is taking place. When consuming a package (like with nix-shell), it will not be present. If you need something to have persistence, you need to patch the source with a python package |
Yep, see the latest patchset; it now patches the path directly into the python file. |
This allows pyenchant to be installable on macOS again, which, in turn, will allow pylint to also be installable. * Switches dependencies to enchant-2 (enchant-1 is not building on macOS). The existing $src (2.0.0) already has compatibility with enchant-2. * Improves patch hack by hijacking the $PYENCHANT_LIBRARY_PATH envvar lookup to explicitly specify the correct library path.
(Just to be clear, I believe I've addressed everything; are you waiting on me for something additional?) |
(no rush if not, just want to make sure this isn't blocked on me :)) |
@GrahamcOfBorg mwic paperwork python27Packages.diff_cover python27Packages.pamqp python27Packages.pyenchant python27Packages.pylint python27Packages.pyls-isort python27Packages.pyspread python27Packages.pytest-pylint python27Packages.python-language-server python27Packages.rabbitpy python27Packages.soco python27Packages.sopel python37Packages.paperwork-backend python37Packages.pyenchant python37Packages.sopel python37Packages.sphinxcontrib-spelling python38Packages.pyenchant python38Packages.sopel python38Packages.sphinxcontrib-spelling retext uberwriter |
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.
diff LGTM
been busy with real life
[33 built (4 failed), 1251 copied (7792.9 MiB), 1218.9 MiB DL]
error: build of '/nix/store/axgh4d9gnwak3l97jfk22qhnz940pqga-env.drv' failed
https://github.com/NixOS/nixpkgs/pull/78341
4 package failed to build:
python27Packages.sphinxcontrib-spelling python27Packages.spyder python38Packages.paperwork-backend sasview
22 package built:
mwic paperwork python27Packages.diff_cover python27Packages.pamqp python27Packages.pyenchant python27Packages.pylint python27Packages.pyls-isort python27Packages.pyspread python27Packages.pytest-pylint python27Packages.python-language-server python27Packages.rabbitpy python27Packages.soco python27Packages.sopel python37Packages.paperwork-backend python37Packages.pyenchant python37Packages.sopel python37Packages.sphinxcontrib-spelling python38Packages.pyenchant python38Packages.sopel python38Packages.sphinxcontrib-spelling retext uberwriter
@GrahamcOfBorg build mwic paperwork python27Packages.diff_cover python27Packages.pamqp python27Packages.pyenchant python27Packages.pylint python27Packages.pyls-isort python27Packages.pyspread python27Packages.pytest-pylint python27Packages.python-language-server python27Packages.rabbitpy python27Packages.soco python27Packages.sopel python37Packages.paperwork-backend python37Packages.pyenchant python37Packages.sopel python37Packages.sphinxcontrib-spelling python38Packages.pyenchant python38Packages.sopel python38Packages.sphinxcontrib-spelling retext uberwriter |
pyenchant: Fix for darwin/macOS
Motivation for this change
This allows
pyenchant
to be installable on macOS again, which, in turn, will allowpylint
to also be installable.
Things done
Testing
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)(Sorry for not ticking more boxes above; I just started using nix today and was trying to replace my use of homebrew as an exercise; I'll continue iterating on the testing items here.)