-
Notifications
You must be signed in to change notification settings - Fork 65
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
Create a conda package #1120
Comments
@drroe please include libcpptraj.so and header files so |
Great idea @hainm thanks! |
@hainm Where are the header files pytraj needs? Does cpptraj put them in $CPPTRAJHOME/include? |
It should, but it doesn't. I'll have to modify the install process to be something more sane. I think right now pytraj and anything that uses libcpptraj.so looks in the source directory (which is not great if you've installed outside the source directory). |
hi @dacase it has been a while that we have not chatted (I am very sorry). (and it looks for libcpptraj.so either in $CPPTRAJ_LIBDIR or $CPPTRAJHOME/lib folder). Cheers. |
If
|
OK: it turns out to be pretty simple to build a conda package, at least for I am deliberately not giving any details now, because I recognize that this is not a good time for Dan to have anything else on his plate. After the holidays are over, I'll post updated info here. |
Update: I now have a cpptraj conda package built for osx-64 as well as linux-64. Only changes were another small tweak to readline, plus one missing header. On linux, tests all pass, but 5 of them are skipped....I need to try to figure out if this is expected, or if something else needs fixing. I'm hoping that Tom can come through with his promise to get me access to a mac with Apple Silicon -- that is a pretty popular platform, but I don't have one myself. |
Various notes about the current status of a cpptraj conda package; this is mostly notes to myself and Dan.
|
Some more notes:
|
I don't see this branch on https://github.com/Amber-MD/cpptraj/branches/all - is it in a fork somewhere? Once I have access to it I can try to test if there are any issues with "regular" builds. The |
I need to learn more about pull requests....I created one, but it ended up saying that it was a request to merge the An alternative is for you to visit github.com/dacase to see what is there. |
@dacase You could always create a new branch by typing the name here. By the way, I've created the "conda" branch for you and you could update the base branch in this PR: #1125 |
OK: but what if I was making a pull request to a target repository where I had no write access? And, in spite of formal permissions, I view Amber-MD/cpptraj as Dan's bailiwick, and I don't generally want to make changes without his permission. I did update the target branch in PR #1125. |
So my development process is I have my own fork of Amber-MD/cpptraj: https://github.com/drroe/cpptraj I make my branches from that repository, e.g. https://github.com/drroe/cpptraj/tree/prepareforleap.remote.buildatom When I'm ready, I can make a merge request for my local repository branch (i.e. drroe/cpptraj) to the main repository (Amber-MD/cpptraj). If you're on the branch GitHub page, there should be a green button near the top that says 'Contribute' which let's you open a pull request. |
Thanks. I used the "create pull request" button (under pull requests), rather than the "contribute button (which is not green in my browser). But the latter seems more correct. It looks like PR #1125 (as now modified) should do what you want. This PR has a bunch of new, conda-related files, plus two files that make minor diffs to files in the current master branch. You should see if those changes look OK, and don't break any of your current builds. Further steps, as time allows:
|
Some progress: I have my shiny new MacBook Air with an M2 chip, and can now start making conda packages for osx-arm64. All is not yet perfect: I got osx-64 to compile with -openmp, but no comparable luck yet with osx-arm64. But I have error messages about missing softlinks, so I am hoping I can track these down. |
This would make it easier for cpptraj to be part of Amber Classic
The text was updated successfully, but these errors were encountered: