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

more than one python install per package #61

Closed
1 task done
beckermr opened this issue Dec 9, 2020 · 1 comment · Fixed by #62
Closed
1 task done

more than one python install per package #61

beckermr opened this issue Dec 9, 2020 · 1 comment · Fixed by #62

Comments

@beckermr
Copy link
Member

beckermr commented Dec 9, 2020

Issue: When I run conda list I get the following

pybind11                  2.6.1            py37h8ec247f_0    conda-forge
pybind11-global           2.6.1                    pypi_0    pypi

This happens even though I have not used pip to install anything and is due to conda/conda#10400. Note that a second pip install in the package is happening here in the recipe: https://github.com/conda-forge/pybind11-feedstock/blob/master/recipe/meta.yaml#L22

The issue is that when one exports an environment to a yaml file, you incorrectly get that pybind11-global should be installed from pip.

This can be fixed by moving the second pip install to a second output.


Environment (conda list):
$ conda list

                  __    __    __    __
                 /  \  /  \  /  \  /  \
                /    \/    \/    \/    \
███████████████/  /██/  /██/  /██/  /████████████████████████
              /  / \   / \   / \   / \  \____
             /  /   \_/   \_/   \_/   \    o \__,
            / _/                       \_____/  `
            |/
        ███╗   ███╗ █████╗ ███╗   ███╗██████╗  █████╗
        ████╗ ████║██╔══██╗████╗ ████║██╔══██╗██╔══██╗
        ██╔████╔██║███████║██╔████╔██║██████╔╝███████║
        ██║╚██╔╝██║██╔══██║██║╚██╔╝██║██╔══██╗██╔══██║
        ██║ ╚═╝ ██║██║  ██║██║ ╚═╝ ██║██████╔╝██║  ██║
        ╚═╝     ╚═╝╚═╝  ╚═╝╚═╝     ╚═╝╚═════╝ ╚═╝  ╚═╝

        mamba (0.7.4) supported by @QuantStack

        GitHub:  https://github.com/mamba-org/mamba
        Twitter: https://twitter.com/QuantStack

█████████████████████████████████████████████████████████████

# packages in environment at /Users/beckermr/miniconda3/envs/ngmix-dev:
#
# Name                    Version                   Build  Channel
appnope                   0.1.2            py37hf985489_0    conda-forge
argon2-cffi               20.1.0           py37h60d8a13_2    conda-forge
astropy                   4.2              py37he6e4e01_0    conda-forge
async_generator           1.10                       py_0    conda-forge
attrs                     20.3.0             pyhd3deb0d_0    conda-forge
backcall                  0.2.0              pyh9f0ad1d_0    conda-forge
backports                 1.0                        py_2    conda-forge
backports.functools_lru_cache 1.6.1                      py_0    conda-forge
bleach                    3.2.1              pyh9f0ad1d_0    conda-forge
ca-certificates           2020.12.5            h033912b_0    conda-forge
certifi                   2020.12.5        py37hf985489_0    conda-forge
cffi                      1.14.4           py37hc5b2277_1    conda-forge
coverage                  5.3              py37h60d8a13_1    conda-forge
cycler                    0.10.0                     py_2    conda-forge
dbus                      1.13.6               h1730f81_1    conda-forge
decorator                 4.4.2                      py_0    conda-forge
defusedxml                0.6.0                      py_0    conda-forge
eigen                     3.3.9                h926bf3e_0    conda-forge
entrypoints               0.3             py37hc8dfbb8_1002    conda-forge
expat                     2.2.9                hb1e8313_2    conda-forge
fftw                      3.3.8           nompi_hff78070_1114    conda-forge
flake8                    3.8.4                      py_0    conda-forge
freetype                  2.10.4               ha233b18_0    conda-forge
future                    0.18.2           py37hf985489_2    conda-forge
galsim                    2.2.4            py37h6769806_1    conda-forge
gettext                   0.19.8.1          h7937167_1005    conda-forge
glib                      2.66.3               h519c658_1    conda-forge
icu                       67.1                 hb1e8313_0    conda-forge
importlib-metadata        3.1.1              pyhd8ed1ab_0    conda-forge
importlib_metadata        3.1.1                hd8ed1ab_0    conda-forge
iniconfig                 1.1.1              pyh9f0ad1d_0    conda-forge
ipykernel                 5.3.4            py37he01cfaa_1    conda-forge
ipython                   7.19.0           py37he01cfaa_0    conda-forge
ipython_genutils          0.2.0                      py_1    conda-forge
ipywidgets                7.5.1              pyh9f0ad1d_1    conda-forge
jedi                      0.17.2           py37hf985489_1    conda-forge
jinja2                    2.11.2             pyh9f0ad1d_0    conda-forge
jpeg                      9d                   hbcb3906_0    conda-forge
jsonschema                3.2.0            py37hc8dfbb8_1    conda-forge
jupyter                   1.0.0                      py_2    conda-forge
jupyter_client            6.1.7                      py_0    conda-forge
jupyter_console           6.2.0                      py_0    conda-forge
jupyter_core              4.7.0            py37hf985489_0    conda-forge
jupyterlab_pygments       0.1.2              pyh9f0ad1d_0    conda-forge
kiwisolver                1.3.1            py37h8ec247f_0    conda-forge
krb5                      1.17.2               h60d9502_0    conda-forge
lcms2                     2.11                 hdc706ca_1    conda-forge
libblas                   3.9.0                3_openblas    conda-forge
libcblas                  3.9.0                3_openblas    conda-forge
libclang                  10.0.1          default_hf57f61e_1    conda-forge
libcxx                    11.0.0               h4c3b8ed_1    conda-forge
libedit                   3.1.20191231         hed1e85f_2    conda-forge
libffi                    3.3                  h046ec9c_2    conda-forge
libgfortran               5.0.0               h7cc5361_13    conda-forge
libgfortran4              7.5.0               h2d743fc_11    conda-forge
libgfortran5              9.3.0               h7cc5361_13    conda-forge
libglib                   2.66.3               h60154bc_1    conda-forge
libiconv                  1.16                 haf1e3a3_0    conda-forge
liblapack                 3.9.0                3_openblas    conda-forge
libllvm10                 10.0.1               h009f743_3    conda-forge
libopenblas               0.3.12          openmp_h54245bb_1    conda-forge
libpng                    1.6.37               hb0a8c7a_2    conda-forge
libpq                     12.3                 h0cb8f33_3    conda-forge
libsodium                 1.0.18               hbcb3906_1    conda-forge
libtiff                   4.1.0                hca7d577_6    conda-forge
libwebp-base              1.1.0                hbcb3906_3    conda-forge
llvm-openmp               11.0.0               h73239a0_1    conda-forge
llvmlite                  0.35.0           py37hd739bdf_0    conda-forge
lsstdesc.coord            1.2.1            py37hb449ec0_1    conda-forge
lz4-c                     1.9.2                hb1e8313_3    conda-forge
markupsafe                1.1.1            py37h395d20d_2    conda-forge
matplotlib                3.3.3            py37hf985489_0    conda-forge
matplotlib-base           3.3.3            py37hdacc966_0    conda-forge
mccabe                    0.6.1                      py_1    conda-forge
mistune                   0.8.4           py37h60d8a13_1002    conda-forge
more-itertools            8.6.0              pyhd8ed1ab_0    conda-forge
mysql-common              8.0.21                        2    conda-forge
mysql-libs                8.0.21               hfb8f7af_2    conda-forge
nb_conda_kernels          2.3.1            py37hf985489_0    conda-forge
nbclient                  0.5.1                      py_0    conda-forge
nbconvert                 6.0.7            py37hf985489_3    conda-forge
nbformat                  5.0.8                      py_0    conda-forge
ncurses                   6.2                  h2e338ed_4    conda-forge
nest-asyncio              1.4.3              pyhd8ed1ab_0    conda-forge
ngmix                     2.0.0                     dev_0    <develop>
notebook                  6.1.5            py37hf985489_0    conda-forge
nspr                      4.29                 hb1e8313_1    conda-forge
nss                       3.47                 hcec2283_0    conda-forge
numba                     0.52.0           py37h53bd85b_0    conda-forge
numpy                     1.19.4           py37h9ebeaaa_1    conda-forge
olefile                   0.46               pyh9f0ad1d_1    conda-forge
openssl                   1.1.1h               haf1e3a3_0    conda-forge
packaging                 20.7               pyhd3deb0d_0    conda-forge
pandas                    1.1.5            py37h010c265_0    conda-forge
pandoc                    2.11.2               hc929b4f_0    conda-forge
pandocfilters             1.4.2                      py_1    conda-forge
parso                     0.7.1              pyh9f0ad1d_0    conda-forge
patsy                     0.5.1                      py_0    conda-forge
pcre                      8.44                 hb1e8313_0    conda-forge
pexpect                   4.8.0            py37hc8dfbb8_1    conda-forge
pickleshare               0.7.5           py37hc8dfbb8_1002    conda-forge
pillow                    8.0.1            py37hf860fee_0    conda-forge
pip                       20.3.1             pyhd8ed1ab_0    conda-forge
pluggy                    0.13.1           py37hc8dfbb8_3    conda-forge
prometheus_client         0.9.0              pyhd3deb0d_0    conda-forge
prompt-toolkit            3.0.8              pyha770c72_0    conda-forge
prompt_toolkit            3.0.8                         0    conda-forge
proplot                   0.6.4                      py_0    conda-forge
ptyprocess                0.6.0                 py37_1000    conda-forge
py                        1.9.0              pyh9f0ad1d_0    conda-forge
pybind11                  2.6.1            py37h8ec247f_0    conda-forge
pybind11-global           2.6.1                    pypi_0    pypi
pycodestyle               2.6.0              pyh9f0ad1d_0    conda-forge
pycparser                 2.20               pyh9f0ad1d_2    conda-forge
pyerfa                    1.7.1.1          py37he6e4e01_1    conda-forge
pyflakes                  2.2.0              pyh9f0ad1d_0    conda-forge
pygments                  2.7.3              pyhd8ed1ab_0    conda-forge
pyparsing                 2.4.7              pyh9f0ad1d_0    conda-forge
pyqt                      5.12.3           py37hf985489_6    conda-forge
pyqt-impl                 5.12.3           py37h5ae2165_6    conda-forge
pyqt5-sip                 4.19.18          py37h5ab9d7d_6    conda-forge
pyqtchart                 5.12             py37h5ae2165_6    conda-forge
pyqtwebengine             5.12.1           py37h5ae2165_6    conda-forge
pyrsistent                0.17.3           py37h60d8a13_1    conda-forge
pytest                    6.1.2            py37hf985489_0    conda-forge
pytest-cov                2.10.1             pyh9f0ad1d_0    conda-forge
python                    3.7.8           h4f09611_3_cpython    conda-forge
python-dateutil           2.8.1                      py_0    conda-forge
python_abi                3.7                     1_cp37m    conda-forge
pytz                      2020.4             pyhd8ed1ab_0    conda-forge
pyzmq                     20.0.0           py37h47fd9b3_1    conda-forge
qt                        5.12.9               h717870c_0    conda-forge
qtconsole                 5.0.1              pyhd8ed1ab_0    conda-forge
qtpy                      1.9.0                      py_0    conda-forge
readline                  8.0                  h0678c8f_2    conda-forge
scipy                     1.5.3            py37h821cff1_0    conda-forge
seaborn                   0.11.0               h694c41f_1    conda-forge
seaborn-base              0.11.0             pyhd8ed1ab_1    conda-forge
send2trash                1.5.0                      py_0    conda-forge
setuptools                49.6.0           py37h2987424_2    conda-forge
simplegeneric             0.8.1                      py_1    conda-forge
six                       1.15.0             pyh9f0ad1d_0    conda-forge
sqlite                    3.34.0               h17101e1_0    conda-forge
statsmodels               0.12.1           py37h8ba3199_1    conda-forge
terminado                 0.9.1            py37hf985489_1    conda-forge
testpath                  0.4.4                      py_0    conda-forge
tk                        8.6.10               hb0a8c7a_1    conda-forge
toml                      0.10.2             pyhd8ed1ab_0    conda-forge
tornado                   6.1              py37h4b544eb_0    conda-forge
traitlets                 5.0.5                      py_0    conda-forge
wcwidth                   0.2.5              pyh9f0ad1d_2    conda-forge
webencodings              0.5.1                      py_1    conda-forge
wheel                     0.36.1             pyhd3deb0d_0    conda-forge
widgetsnbextension        3.5.1            py37hf985489_4    conda-forge
xz                        5.2.5                haf1e3a3_1    conda-forge
zeromq                    4.3.3                h74dc148_3    conda-forge
zipp                      3.4.0                      py_0    conda-forge
zlib                      1.2.11            h7795811_1010    conda-forge
zstd                      1.4.5                h0384e3a_2    conda-forge


Details about conda and system ( conda info ):
$ conda info

     active environment : ngmix-dev
    active env location : /Users/beckermr/miniconda3/envs/ngmix-dev
            shell level : 2
       user config file : /Users/beckermr/.condarc
 populated config files : /Users/beckermr/.condarc
          conda version : 4.9.2
    conda-build version : 3.20.5
         python version : 3.8.6.final.0
       virtual packages : __osx=10.14.6=0
                          __unix=0=0
                          __archspec=1=skylake
       base environment : /Users/beckermr/miniconda3  (writable)
           channel URLs : https://conda.anaconda.org/conda-forge/osx-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /Users/beckermr/miniconda3/pkgs
                          /Users/beckermr/.conda/pkgs
       envs directories : /Users/beckermr/miniconda3/envs
                          /Users/beckermr/.conda/envs
               platform : osx-64
             user-agent : conda/4.9.2 requests/2.25.0 CPython/3.8.6 Darwin/18.7.0 OSX/10.14.6
                UID:GID : 501:20
             netrc file : /Users/beckermr/.netrc
           offline mode : False

@henryiii
Copy link
Contributor

henryiii commented Dec 9, 2020

+1, thanks for tackling this!

@beckermr beckermr mentioned this issue Dec 9, 2020
5 tasks
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 a pull request may close this issue.

2 participants