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

fix installation instructions and recommend mamba instead of conda #370

Merged
merged 5 commits into from
Aug 15, 2024

Conversation

orbeckst
Copy link
Member

@orbeckst orbeckst commented Jul 17, 2024

@orbeckst orbeckst marked this pull request as draft July 17, 2024 03:03
@orbeckst
Copy link
Member Author

contributions to the PR are welcome!

@IAlibay
Copy link
Member

IAlibay commented Jul 17, 2024

@orbeckst I might either take over or overwrite this PR later today - I had started working on my own update earlier.

@orbeckst
Copy link
Member Author

By all means.

@orbeckst
Copy link
Member Author

Where are you with the update that you mentioned @IAlibay ?

@orbeckst
Copy link
Member Author

@yuxuanzhuang if you want to do a quick minimal update to the instructions then we can at least get a quick-fix into the user guide.

This PR already introduces mamba; you could add your changes to this PR.

@@ -243,7 +249,7 @@ First we need to install dependencies. You'll need a mix of conda and pip instal
'mda-xdrlib'

# documentation dependencies
conda install -c conda-forge 'mdanalysis-sphinx-theme>=1.3.0' docutils sphinx-sitemap sphinxcontrib-bibtex pybtex pybtex-docutils
mamba install -c conda-forge 'mdanalysis-sphinx-theme>=1.3.0' docutils sphinx-sitemap sphinxcontrib-bibtex pybtex pybtex-docutils
python -m pip install docutils sphinx-sitemap sphinxcontrib-bibtex pybtex pybtex-docutils
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason these deps are installed both with mamba and pip here?

@IAlibay
Copy link
Member

IAlibay commented Aug 1, 2024

Where are you with the update that you mentioned @IAlibay ?

Sorry I'm travelling / handling work things - I'll be free to do MDAnalysis things, including this, over the weekend.

@orbeckst orbeckst changed the title update develop installation instructions recommend mamba instead of conda Aug 14, 2024
@orbeckst orbeckst marked this pull request as ready for review August 14, 2024 01:25
@orbeckst orbeckst linked an issue Aug 14, 2024 that may be closed by this pull request
@orbeckst orbeckst changed the title recommend mamba instead of conda fix installation instructions and recommend mamba instead of conda Aug 14, 2024
@orbeckst
Copy link
Member Author

@yuxuanzhuang @RMeli we do need this PR to be merged so that we have some instructions for the hackathon. (Ideally we also get a release of the User Guide but that's probably a different thing.)

doc/source/contributing_code.rst Show resolved Hide resolved
an isolated environment without touching your base Python installation, and without
touching existing environments that may have stable versions of MDAnalysis. :

.. code-block:: bash

conda create --name mdanalysis-dev "python>=3.9"
mamba create --name mdanalysis-dev "python>=3.10"
Copy link
Member

Choose a reason for hiding this comment

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

Should we recommend the latest supported Python here instead? We will have three version changes before the docs going out of date. ;)

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok. Can I ask you to try out the installation instructions below for the version you want to put here?

Copy link
Member

Choose a reason for hiding this comment

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

I'm sorry but I'm AFK until Friday morning (UTC+2). Please discard my comment if this needs to be merged quickly, it was just a "nice to have" suggestion.

Copy link
Member Author

Choose a reason for hiding this comment

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

tried it with 3.12 and it works, added 3.12

Copy link
Contributor

@yuxuanzhuang yuxuanzhuang left a comment

Choose a reason for hiding this comment

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

lgtm!

I assume we should update the UserGuide again once the parallel analysis PR is merged?

You can also install the following optional dependencies, although please note
that they many not all be available for your machine type. Specifically;
hole2, and distopia are only available on linux + x86_64 machines, and openmm
is not available for windows.
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add "Remove the packages listed as incompatible from the command below and run it again."

Alternatively, we can show example code for different os with sphinxcontrib.osexample (https://sublime-and-sphinx-guide.readthedocs.io/en/latest/code_blocks.html)

Copy link
Member Author

Choose a reason for hiding this comment

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

added something similar

Copy link
Member Author

Choose a reason for hiding this comment

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

sphinxcontrib.osexample as used in https://sublime-and-sphinx-guide.readthedocs.io/en/latest/code_blocks.html#code-examples-in-multiple-languages looks like a neat addition. Maybe open new issue?

Copy link
Member Author

@orbeckst orbeckst left a comment

Choose a reason for hiding this comment

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

I tested the installation instructions for Python 3.12 on my x86_64 macOS and was able to install everything via mamba except clustalw.

@orbeckst
Copy link
Member Author

And all tests pass

============= 19681 passed, 104 skipped, 12 xfailed, 2 xpassed, 47710 warnings in 473.45s (0:07:53) =============

so I am going to merge. Thanks for the reviews & contributions!

@orbeckst orbeckst merged commit faa7623 into develop Aug 15, 2024
4 checks passed
@orbeckst orbeckst deleted the update-develop-install branch August 15, 2024 03:27
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.

Develop installation instructions are outdated Recommend mamba over conda
4 participants