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

pagmo2, pythonPackages.pygmo fixes #51959

Merged
merged 3 commits into from Dec 18, 2018

Conversation

worldofpeace
Copy link
Contributor

Motivation for this change

Fix #51399 with @dotlambda change which looked fine.

This change was meant to fix issues with #50645 so I've brought it here as well for testing.

Things done

I've checked that at least that the packages in question would build.



make install
mv $out/lib/python*/site-packages/pygmo wheel
mv ${python.sitePackages}/pygmo wheel
Copy link
Member

Choose a reason for hiding this comment

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

👍

@dotlambda
Copy link
Member

dotlambda commented Dec 14, 2018

Just because this might be of interest to some:

$ nix why-depends -f . python3.pkgs.pygmo pagmo2
/nix/store/j2k5f520hj79njqp1kb6fxhnqxx2kjsz-python3.7-pygmo-2.9
╚═══lib/python3.7/site-packages/pygmo/core.so: …volume objects......./nix/store/asyfspmrvghxq5v0fyzw2f2r4yzjbv89-pagmo2-2.9/include/pagmo/popula…
    => /nix/store/asyfspmrvghxq5v0fyzw2f2r4yzjbv89-pagmo2-2.9
$ nix why-depends -f . python3.pkgs.pygmo python3.pkgs.pygmo.src
'python3.pkgs.pygmo' does not depend on 'python3.pkgs.pygmo.src'

This is exactly what we expect as the relevant output of pagmo2WithPython is copied to pygmo's output.

@dotlambda
Copy link
Member

ping @worldofpeace

@worldofpeace
Copy link
Contributor Author

@dotlambda Sorry I was away for a bit, I'll fix this up and it should be good 👍

corrects the library nlopt location as well.
@worldofpeace worldofpeace force-pushed the pagmo-pygmo/fixes branch 2 times, most recently from ed0d23e to 3455953 Compare December 18, 2018 15:05
@dotlambda
Copy link
Member

I would have done it myself but it seems like you disallowed "edits by maintainers".

@worldofpeace
Copy link
Contributor Author

I would have done it myself but it seems like you disallowed "edits by maintainers".

Oops, didn't mean to do that 🤣

costrouc and others added 2 commits December 18, 2018 10:11
Introduce a `pagmo2WithPython` which overrides the pagmo2 expression
and enables the pygmo build. Then hand it over to `buildPythonPackage`
by making it the src to produce a usable package.
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.6-ase/versions
@dotlambda dotlambda merged commit 7d5c1d8 into NixOS:master Dec 18, 2018
@worldofpeace worldofpeace deleted the pagmo-pygmo/fixes branch December 18, 2018 16:15
@worldofpeace
Copy link
Contributor Author

Lol ryantm opened #50645 Nov 18 and it's Dec 18

Good to see this finally hit 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants