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

mailnag: use setup.py #30501

Merged
merged 2 commits into from Nov 7, 2017
Merged

mailnag: use setup.py #30501

merged 2 commits into from Nov 7, 2017

Conversation

ghost
Copy link

@ghost ghost commented Oct 17, 2017

Motivation for this change

Revert back to use of setup.py which does some hidden patching. Otherwise plugins not seen in configurator and probably other bugs.

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
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • 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.

@ghost
Copy link
Author

ghost commented Oct 17, 2017

/cc @Mic92

@Mic92 Mic92 requested a review from FRidh October 17, 2017 10:52
@Mic92
Copy link
Member

Mic92 commented Oct 17, 2017

might be also interesting what is going wrong here, so we can fix this in future.

@@ -31,6 +33,10 @@ pythonPackages.buildPythonApplication rec {
pygobject3 dbus-python pyxdg
];

buildPhase = "";

installPhase = "python2 setup.py install --prefix=$out";
Copy link
Member

Choose a reason for hiding this comment

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

Is this really needed? Our default builder builds wheels and installs those.

Copy link
Author

@ghost ghost Oct 19, 2017

Choose a reason for hiding this comment

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

@FRidh Without these it doesn't work correctly. cc @bkchr @dezgeg 5b91f12

Copy link
Member

Choose a reason for hiding this comment

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

Can you explain what does not work correctly? What happens? Have you mentioned this issue upstream, considering building wheels is the way forward.

Copy link
Author

@ghost ghost Oct 19, 2017

Choose a reason for hiding this comment

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

@FRidh
In mailnag-config plugins are not seen, then when closing mailnag-config it should start mailnag, but it can't with error No such file or directory: 'IOError: [Errno 2] No such file or directory: '/usr/share/applications/mailnag.desktop'.
Then starting mailnag manually and trying to send email myself - there should be libnotify notification but there is none.
These things are not happening when these buildPhase and installPhase are here.
This is the patching setup.py does https://github.com/pulb/mailnag/blob/master/setup.py#L22

Copy link
Member

Choose a reason for hiding this comment

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

That's because of #23438.

Copy link
Member

Choose a reason for hiding this comment

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

Which is an upstream issue pypa/setuptools#130
(Note the name iElectric, that's '@'domenkozar )

Copy link
Author

Choose a reason for hiding this comment

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

@FRidh Ok. What would be the temporary fix? Because at this stage the package is broken.

@ghost ghost requested a review from nbp as a code owner November 2, 2017 04:58
@GrahamcOfBorg GrahamcOfBorg added 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin labels Nov 2, 2017
@Mic92 Mic92 merged commit 2e4282d into NixOS:master Nov 7, 2017
@ghost ghost deleted the mailnag branch November 7, 2017 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants