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

Add conda list export. #7232

Closed
wants to merge 1 commit into from
Closed

Add conda list export. #7232

wants to merge 1 commit into from

Conversation

sklam
Copy link
Member

@sklam sklam commented Jul 21, 2021

Since conda env export is currently not working.

Since conda env export is currently not working.
@sklam sklam marked this pull request as ready for review July 21, 2021 23:13
@sklam sklam added 3 - Ready for Review Effort - short Short size effort needed labels Jul 21, 2021
Copy link
Member

@esc esc left a comment

Choose a reason for hiding this comment

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

functionally fine, but a bit crooked on how the output is created, left a comment to describe what I mean.

@@ -101,4 +101,5 @@ if [ "$RUN_TYPEGUARD" == "yes" ]; then $CONDA_INSTALL conda-forge::typeguard; fi
# echo "DEBUG ENV:"
# echo "-------------------------------------------------------------------------"
# conda env export
conda list --export --explicit
Copy link
Member

Choose a reason for hiding this comment

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

Can you comment in the echos also please, it's hard to find otherwise.

Copy link
Member

Choose a reason for hiding this comment

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

OK, hang on, there is a set -x(?) somewhere, because the log lists:


https://repo.anaconda.com/pkgs/main/linux-64/certifi-2021.5.30-py37h06a4308_0.conda
https://repo.anaconda.com/pkgs/main/noarch/decorator-5.0.9-pyhd3eb1b0_0.conda
https://repo.anaconda.com/pkgs/main/noarch/ipython_genutils-0.2.0-pyhd3eb1b0_1.conda
https://conda.anaconda.org/numba/label/dev/linux-64/llvmlite-0.38.0dev0-py37hf484d3e_0.tar.bz2
https://repo.anaconda.com/pkgs/main/linux-64/markupsafe-2.0.1-py37h27cfd23_0.conda
https://repo.anaconda.com/pkgs/r/linux-64/numpy-base-1.17.0-py37h2f8d375_0.tar.bz2
https://repo.anaconda.com/pkgs/main/noarch/parso-0.8.2-pyhd3eb1b0_0.conda
https://repo.anaconda.com/pkgs/main/noarch/pickleshare-0.7.5-pyhd3eb1b0_1003.conda
https://repo.anaconda.com/pkgs/main/noarch/ptyprocess-0.7.0-pyhd3eb1b0_2.conda
https://repo.anaconda.com/pkgs/main/noarch/pycparser-2.20-py_2.conda
https://repo.anaconda.com/pkgs/main/linux-64/pyyaml-5.4.1-py37h27cfd23_1.conda
https://repo.anaconda.com/pkgs/main/noarch/smmap-4.0.0-pyhd3eb1b0_0.conda
https://repo.anaconda.com/pkgs/main/noarch/typing_extensions-3.10.0.0-pyh06a4308_0.conda
https://repo.anaconda.com/pkgs/main/noarch/wcwidth-0.2.5-py_0.conda
https://repo.anaconda.com/pkgs/main/noarch/wheel-0.36.2-pyhd3eb1b0_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/cffi-1.14.6-py37h400218f_0.conda
https://repo.anaconda.com/pkgs/main/noarch/gitdb-4.0.7-pyhd3eb1b0_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/jedi-0.17.0-py37_0.conda
https://repo.anaconda.com/pkgs/r/linux-64/numpy-1.17.0-py37h99e49ec_0.tar.bz2
https://repo.anaconda.com/pkgs/main/noarch/pexpect-4.8.0-pyhd3eb1b0_3.conda
https://repo.anaconda.com/pkgs/main/noarch/prompt-toolkit-3.0.17-pyh06a4308_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/setuptools-52.0.0-py37h06a4308_0.conda
https://repo.anaconda.com/pkgs/main/noarch/traitlets-5.0.5-pyhd3eb1b0_0.tar.bz2
https://repo.anaconda.com/pkgs/main/noarch/typing-extensions-3.10.0.0-hd3eb1b0_0.conda
https://repo.anaconda.com/pkgs/main/noarch/gitpython-3.1.18-pyhd3eb1b0_1.conda
https://repo.anaconda.com/pkgs/main/noarch/jinja2-3.0.1-pyhd3eb1b0_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/pip-21.1.3-py37h06a4308_0.conda
https://repo.anaconda.com/pkgs/main/noarch/pygments-2.9.0-pyhd3eb1b0_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/scipy-1.6.2-py37hf56f3a7_1.conda
https://repo.anaconda.com/pkgs/main/linux-64/ipython-7.22.0-py37hb070fc8_0.conda
# echo "-------------------------------------------------------------------------"
Finishing: Before Install

Copy link
Member

Choose a reason for hiding this comment

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

I was no longer able to copy and paste from Azure, i think the service is degraded. So here is a screenshot instead:

Screen Shot 2021-07-22 at 12 12 58

Copy link
Member

Choose a reason for hiding this comment

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

So yeah, I dunno, it doesn't really make any difference if you comment them in or not?

@stuartarchibald
Copy link
Contributor

I think CONDA_PYTHON_SYSCONFIGDATA_NAME= conda env export should make it work ok.

@sklam
Copy link
Member Author

sklam commented Jul 22, 2021

the problem with conda env export is that a human reader doesn't know which package is from which channel, but the conda list --export --explicit doesn't list the pip packages.

In fact, conda list --json is probably more readable; example:

  {
    "base_url": "https://conda.anaconda.org/<develop>",
    "build_number": 0,
    "build_string": "dev_0",
    "channel": "<develop>",
    "dist_name": "llvmlite-0.37.0rc2-dev_0",
    "name": "llvmlite",
    "platform": "pypi",
    "version": "0.37.0rc2"
  },
  {
    "base_url": "https://repo.anaconda.com/pkgs/main",
    "build_number": 269,
    "build_string": "hecd8cb5_269",
    "channel": "pkgs/main",
    "dist_name": "mkl-2021.2.0-hecd8cb5_269",
    "name": "mkl",
    "platform": "osx-64",
    "version": "2021.2.0"
  },

@sklam sklam added abandoned PR is abandoned (no reason required) and removed 3 - Ready for Review labels Jul 27, 2021
@sklam sklam closed this Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
abandoned PR is abandoned (no reason required) Effort - short Short size effort needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants