Skip to content

conda install cannot install from local #41

@beachdweller

Description

@beachdweller

Dear all,

May I have your opinion on installing Slycot using conda after conda build?

Q1: are these two lines equivalent ?

conda install --override-channels -c local slycot
conda install --use-local slycot

Q2 : if Q1 is yes, and the first line above is not working for python=2.7, is a new Pull Request desirable?

If you are interested in how I became to have these questions :

I tried to fork from this repository (7f5dc1c) (again) and triggered Travis-CI. However, the conda install seems unable to install from the local build; you would be able to check my test result here → https://travis-ci.org/autodrive/Slycot/jobs/456615608.

So when I manually followed the commands in .travis.yml for python=2.7 && TEST_CONDA==1.

      conda config --append channels conda-forge;
      conda build --python "$TRAVIS_PYTHON_VERSION" conda-recipe;
      conda install -c conda-forge lapack;
      conda install --override-channels -c local slycot;

The result of the last line was as follows

Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - slycot
  - libgfortran-ng[version='>=7,<8.0a0']
  - slycot
  - numpy

Current channels:

  - file:///home/jonwood/miniconda/conda-bld/linux-64
  - file:///home/jonwood/miniconda/conda-bld/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

Then I retried the following command: (Q1: is this equivalent to the original intention of 05f3ba1 ?)

conda install --use-local slycot

This time the conda seemingly could install as follows:

Solving environment: done

## Package Plan ##

  environment location: /home/jonwood/miniconda

  added / updated specs: 
    - slycot


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    cryptography-2.4.1         |   py27h1ba5d50_0         606 KB
    xz-5.2.4                   |       h14c3975_4         366 KB
    libxml2-2.9.8              |       h26e45fe_1         2.0 MB
    icu-58.2                   |       h9c2bf20_1        22.5 MB
    lz4-c-1.8.1.2              |       h14c3975_0         158 KB
    lzo-2.10                   |       h49e0be7_2         313 KB
    zstd-1.3.7                 |       h0b5b093_0         887 KB
    libarchive-3.3.3           |       h5d8350f_4         1.5 MB
    ------------------------------------------------------------
                                           Total:        28.3 MB

The following NEW packages will be INSTALLED:

    blas:            1.0-mkl                            
    icu:             58.2-h9c2bf20_1                    
    intel-openmp:    2019.0-118                         
    libedit:         3.1.20170329-h6b74fdf_2            
    libgfortran-ng:  7.3.0-hdf63c60_0                   
    libxml2:         2.9.8-h26e45fe_1                   
    lz4-c:           1.8.1.2-h14c3975_0                 
    lzo:             2.10-h49e0be7_2                    
    mkl:             2019.0-118                         
    mkl_fft:         1.0.6-py27h7dd41cf_0               
    mkl_random:      1.0.1-py27h4414c95_1               
    ncurses:         6.1-hf484d3e_0                     
    numpy:           1.15.4-py27h1d66e8a_0              
    numpy-base:      1.15.4-py27h81de0dd_0              
    slycot:          0.3.3-ha62df28_0        local      
    xz:              5.2.4-h14c3975_4                   
    zstd:            1.3.7-h0b5b093_0                   

The following packages will be UPDATED:

    cryptography:    1.8.1-py27_0                        --> 2.4.1-py27h1ba5d50_0
    libarchive:      3.3.2-ha7923ee_0                    --> 3.3.3-h5d8350f_4    
    openssl:         1.0.2p-h470a237_1       conda-forge --> 1.1.1-h7b6447c_0    
    python:          2.7.13-0                            --> 2.7.15-h9bab390_4   
    readline:        6.2-2                               --> 7.0-h7b6447c_5      
    sqlite:          3.13.0-0                            --> 3.25.3-h7b6447c_0   
    tk:              8.5.18-0                            --> 8.6.8-hbc83047_0    
    zlib:            1.2.8-0                             --> 1.2.11-ha838bed_2   

The following packages will be DOWNGRADED:

    ca-certificates: 2018.10.15-ha4d7672_0   conda-forge --> 2018.03.07-0        


Downloading and Extracting Packages
cryptography-2.4.1   | 606 KB    | ##################################### | 100% 
xz-5.2.4             | 366 KB    | ##################################### | 100% 
libxml2-2.9.8        | 2.0 MB    | ##################################### | 100% 
icu-58.2             | 22.5 MB   | ##################################### | 100% 
lz4-c-1.8.1.2        | 158 KB    | ##################################### | 100% 
lzo-2.10             | 313 KB    | ##################################### | 100% 
zstd-1.3.7           | 887 KB    | ##################################### | 100% 
libarchive-3.3.3     | 1.5 MB    | ##################################### | 100% 
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

To me this seems a little odd because the conda install lines work fine for python 3.5 and 3.6.

So Q2 : Do you think it would be worth while to prepare a Pull Request?

Good day,

KW

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions