-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
pythonPackages.pyscf: init at 1.7.1 #78872
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
@GrahamcOfBorg build python3Packages.pyscf |
build fails, depending on PR #78871 (libcint) |
b4bdc1a
to
4df9cd5
Compare
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.
Looks pretty good to me, but there is one serious issue (wrong name for the library function) and one minor nitpick.
Python-based Simulations of Chemistry Framework. Requirement for qiskit-aqua.
4df9cd5
to
1703025
Compare
Exchange-correlation functionals with arbitrary order derivatives. Library dependency of pythonPackages.pyscf.
As far as I know, libcint is only used for PySCF, so this just corrects the build flags that it should have to build properly for that.
I'm not sure if this should be included in the main Nix repo. Right now the only reason for this package's existence is a plugin to |
@GrahamcOfBorg eval |
ln -s ${lib.getLib xcfun}/lib/libxc.so ./pyscf/lib/deps/lib/libxcfun.so | ||
substituteInPlace pyscf/rt/__init__.py --replace "from tdscf import *" "from pyscf.tdscf import *" | ||
''; | ||
|
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.
preBuild = '' | ||
pushd pyscf/lib/build | ||
make | ||
popd | ||
''; |
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.
this should work as well
preBuild = '' | |
pushd pyscf/lib/build | |
make | |
popd | |
''; | |
makeFlags = [ "-C pyscf/lib/build" ]; |
# HACK: Move compiled libraries to test dir so pyscf import mechanism can find them | ||
cp ./dist/tmpbuild/pyscf/pyscf/lib/*.so ./pyscf/lib/ |
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.
this might not be needed anymore, the pythonImportsCheck
hook was patched so it would not change PWD to $out
@jonringer thoughts on above question? #78872 (comment) |
I think moving to the NUR is great for now. There is a lot going on with these package additions, and I'm not sure if either of us want to get it to that level of a "polished" shine. If you do want to re-open this for nixpkgs I'll be happy to review it :) |
Agreed, thanks. It's always felt like an ugly, difficult package to me, so I don't really mind removing it. Related: Would it be worth removing |
If burden of maintainership is low (I'm not super familiar with the oCaml nix ecosystem), then I would say leave it. Python packages are a pretty large maintainer burden due to how fluid most breaking changes are. |
Ack @jonringer. Wrong PR, I meant |
Statement still applies, doesn't look like an extreme burden. I would just leave Edit: I need to learn how to spell |
Future reference: moved to https://github.com/drewrisinger/nur-packages. |
Motivation for this change
Add dependency for upcoming qiskit-terra package #78772 @jonringer
Depends on #78871
Things done
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)