-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
pythonPackages.docutils: fix python3 build #50886
Conversation
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.
@marsam
It's helpful if you describe what failure you were fixing, the output, and what platform you experienced this.
After digging around at https://hydra.nixos.org to look for the failure, as I couldn't reproduce this on linux, I found that this was only a problem for darwin. See https://hydra.nixos.org/build/84046228.
running install tests
Traceback (most recent call last):
File "test3/alltests.py", line 80, in <module>
suite = suite()
File "test3/alltests.py", line 69, in suite
'test_', packages=1)
File "/private/tmp/nix-build-python3.7-docutils-0.14.drv-0/docutils-0.14/test3/package_unittest.py", line 101, in loadTestModules
module = import_module(mod)
File "/private/tmp/nix-build-python3.7-docutils-0.14.drv-0/docutils-0.14/test3/package_unittest.py", line 132, in import_module
mod = __import__(name)
File "/private/tmp/nix-build-python3.7-docutils-0.14.drv-0/docutils-0.14/test3/test_command_line.py", line 19, in <module>
locale_encoding = locale.getlocale()[1] or locale.getdefaultlocale()[1]
File "/nix/store/ky86n177vy9h4vi62vjzsv96b4pywiwv-python3-3.7.1/lib/python3.7/locale.py", line 587, in getlocale
return _parse_localename(localename)
File "/nix/store/ky86n177vy9h4vi62vjzsv96b4pywiwv-python3-3.7.1/lib/python3.7/locale.py", line 495, in _parse_localename
raise ValueError('unknown locale: %s' % localename)
ValueError: unknown locale: UTF-8
As for the changes, they appear to be usual way to fix this.
Also maybe fix python3 build on darwin
would be clearer in the commit msg.
@GrahamcOfBorg build python3Packages.docutils |
Success on x86_64-linux (full log) Attempted: python3Packages.docutils Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: python3Packages.docutils Partial log (click to expand)
|
${python.interpreter} test3/alltests.py | ||
'' else '' | ||
${python.interpreter} test/alltests.py | ||
checkInputs = [ glibcLocales ]; |
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.
glibcLocales is a linux only dependency, just setting LANG should be enough to fix the issue mentioned above.
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've removed glibcLocales
, and checked if still works 👍
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.
In some cases you do want it on linux, but then it needs a conditional.
@GrahamcOfBorg build python3Packages.docutils |
Success on aarch64-linux (full log) Attempted: python3Packages.docutils Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: python3Packages.docutils Partial log (click to expand)
|
Timed out, unknown build status on x86_64-darwin (full log) Attempted: python3Packages.docutils Partial log (click to expand)
|
@infinisil It's whatever I guess 🤣 |
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.
Builds on darwin, ofborg isn't very useful when targeting staging.
@marsam |
This pull request has been mentioned on Nix community. There might be relevant details there: https://discourse.nixos.org/t/move-python37packages-docutils-fix-to-master/1622/1 |
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)