Repository navigation
Update install docs for conda optional dependencies - #10343
Conversation
|
|
||
| conda install -c pkgs/main -c conda-forge \ | ||
| scipy h5py beautifulsoup4 html5lib bleach pyyaml pandas sortedcontainers \ | ||
| pytz matplotlib setuptools mpmath bottleneck jplephem asdf bintrees |
There was a problem hiding this comment.
Why still install bintrees when we warn that it is no longer maintained above?
There was a problem hiding this comment.
Yeah, I thought about that. It is still supported in the code and listed as an optional dependency above, so it seems like it belongs in this list. In any case this is just a small package with no other dependencies.
There was a problem hiding this comment.
I think we have an unspoken policy to not actively advertise deprecated things. I would prefer if it is removed, as people usually blindly copy-paste, but if you insist it should stay on the command, then so be it.
There was a problem hiding this comment.
I'll change, I was on the fence.
|
|
||
| To install all of the optional dependencies using ``conda`` enter the following:: | ||
|
|
||
| conda install -c pkgs/main -c conda-forge \ |
There was a problem hiding this comment.
I think defaults is the user facing name for the main channel.
There was a problem hiding this comment.
I was thinking that users can override the default channels, but I guess if they have gone to that length then they know what they are doing.
9cc91a5 to
767a0df
Compare
|
@pllim - I pushed changes with your suggestions. I went one step further and put in the command line to optionally install |
|
This is failing html-docs in a way that makes no sense to me. Ideas @pllim?? |
|
I see the failures at my other PR too. And Travis CI is not reporting back. I don't have time to investigate today. I am hoping it is going to magically go away tomorrow. |
|
@taldcroft , @astrofrog has a fix. Might need rebase after #10347 is merged. |
|
@taldcroft - can you rebase now? |
dc351da to
21b59cb
Compare
|
I rebased and made a minor new addition in 21b59cb. |
| Installing ``astropy`` | ||
| ====================== | ||
|
|
||
| If you are new to Python and/or do not have familiarity with `Python virtual |
There was a problem hiding this comment.
I'm thinking of the new user that just comes to this page wanting to install astropy. What they'll likely run is the first command they see, which means opening a terminal window and typing pip install astropy. That will generally fail unless they have a non-root Python in their path.
astrofrog
left a comment
There was a problem hiding this comment.
Looks good to me, small question below about defaults, but don't mind either way if this is addressed or not.
|
|
||
| It is highly recommended that you install all of the optional dependencies with:: | ||
|
|
||
| conda install -c astropy -c defaults \ |
There was a problem hiding this comment.
if -c defaults actually needed?
There was a problem hiding this comment.
Also as an aside, this is why we need conda to support optional extra dependencies. See conda/conda#7502 for a possible approach (using 'outputs'). We should really just be able to do conda install -c astropy astropy.all or something like that.
There was a problem hiding this comment.
I worry that users will set up their .condarc in a way that might prefer other channels in particular conda-forge. I think it is relatively easy to accidentally get in that situation and start pulling core packages from conda-forge instead of defaults.
There was a problem hiding this comment.
As a specific example, if a user does this seemingly innocuous command to add conda-forge to channels, then bad things happen:
conda config --add channels conda-forge
conda update jplephem
The following packages will be SUPERSEDED by a higher-priority channel:
attrs pkgs/main --> conda-forge
certifi pkgs/main::certifi-2020.4.5.1-py37_0 --> conda-forge::certifi-2020.4.5.1-py37hc8dfbb8_0
importlib-metadata pkgs/main::importlib-metadata-1.6.0-p~ --> conda-forge::importlib-metadata-1.6.0-py37hc8dfbb8_0
importlib_metadata pkgs/main --> conda-forge
jplephem astropy --> conda-forge
kiwisolver pkgs/main::kiwisolver-1.2.0-py37h04f5~ --> conda-forge::kiwisolver-1.2.0-py37ha1cc60f_0
libgfortran pkgs/main::libgfortran-3.0.1-h93005f0~ --> conda-forge::libgfortran-3.0.1-0
libiconv pkgs/main::libiconv-1.16-h1de35cc_0 --> conda-forge::libiconv-1.15-h0b31af3_1006
mkl-service pkgs/main::mkl-service-2.3.0-py37hfbe~ --> conda-forge::mkl-service-2.3.0-py37h0b31af3_0
ncurses pkgs/main::ncurses-6.2-h0a44026_1 --> conda-forge::ncurses-6.1-h0a44026_1002
openssl pkgs/main::openssl-1.1.1g-h1de35cc_0 --> conda-forge::openssl-1.1.1g-h0b31af3_0
py pkgs/main --> conda-forge
pyparsing pkgs/main::pyparsing-2.4.7-py_0 --> conda-forge::pyparsing-2.4.7-pyh9f0ad1d_0
pytest-arraydiff astropy --> conda-forge
pytest-astropy-he~ astropy --> conda-forge
pytest-doctestplus astropy --> conda-forge
pytest-openfiles astropy --> conda-forge
pytest-remotedata astropy --> conda-forge
python pkgs/main::python-3.7.7-hc70fcce_0_cp~ --> conda-forge::python-3.7.6-cpython_h1fd5dd1_6
python-dateutil pkgs/main --> conda-forge
readline pkgs/main::readline-8.0-h1de35cc_0 --> conda-forge::readline-8.0-hcfe32e1_0
soupsieve pkgs/main/noarch::soupsieve-2.0.1-py_0 --> conda-forge/osx-64::soupsieve-2.0.1-py37hc8dfbb8_0
sqlite pkgs/main::sqlite-3.31.1-h5c1f38d_1 --> conda-forge::sqlite-3.30.1-h93121df_0
tornado pkgs/main::tornado-6.0.4-py37h1de35cc~ --> conda-forge::tornado-6.0.4-py37h9bfed18_1
webencodings pkgs/main/osx-64::webencodings-0.5.1-~ --> conda-forge/noarch::webencodings-0.5.1-py_1
xz pkgs/main::xz-5.2.5-h1de35cc_0 --> conda-forge::xz-5.2.5-h0b31af3_0
zipp pkgs/main --> conda-forge
zstd pkgs/main::zstd-1.4.4-h1990bb4_3 --> conda-forge::zstd-1.4.4-h4b3e974_3
Update install docs for conda optional dependencies
Update install docs for conda optional dependencies
Description
This pull request is to add explicit instructions for installing all the optional Python package
dependencies using conda. The instructions include specifying the conda channels
pkgs/mainand thenconda-forge. I think this improves reproducibility in case users have messed with channel order in their.condarc. I've had problems in the past with getting confused by non-standard packages. I thinkpkgs/mainis the right thing, but if someone knows better please chime in.It also adds a comment about
bintreesnow being deprecated.I'm not exactly sure how to milestone a docs update like this so I just picked 4.0.2.