Skip to content
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

python2Packages.pyspread: init at 1.1 (and fix wxPython to inject required dependencies) #25102

Merged
merged 2 commits into from Apr 23, 2017

Conversation

obadz
Copy link
Contributor

@obadz obadz commented Apr 21, 2017

Motivation for this change

New package + fix wxPython which attempts to locate shared libraries at runtime so we tell it exactly where to find them.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@mention-bot
Copy link

@obadz, thanks for your PR! By analyzing the history of the files in this pull request, we identified @FRidh, @veprbl and @vbgl to be potential reviewers.

@@ -43,6 +45,15 @@ buildPythonPackage rec {
# this check is supposed to only return false on older systems running non-framework python
substituteInPlace src/osx_cocoa/_core_wrap.cpp \
--replace "return wxPyTestDisplayAvailable();" "return true;"
'' + lib.optionalString (!stdenv.isDarwin) ''
substituteInPlace wx/lib/wxcairo.py \
--replace 'cairoLib = None' 'cairoLib = ctypes.CDLL("${cairo}/lib/libcairo.so")'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Darwin (typically) needs .dylib instead of .so. It would be nice if there was a stdenv.libextension attribute that would return the correct extension for the current arch.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds reasonable but out of scope for this PR no ? :)

@obadz
Copy link
Contributor Author

obadz commented Apr 23, 2017

Will merge in a few hours unless objections…

@FRidh
Copy link
Member

FRidh commented Apr 23, 2017

none go ahead

@obadz obadz merged commit dcc61da into NixOS:master Apr 23, 2017
@obadz
Copy link
Contributor Author

obadz commented Apr 23, 2017

@FRidh thx

@obadz obadz deleted the python-pyspread branch April 23, 2017 16:56
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.

None yet

3 participants