Discussion:
[conda] Using conda index on a local directory
Paul Madden
2018-10-02 18:34:51 UTC
Permalink
I build local packages and install them into environments with the
--use-local switch. In the past, when I've deleted a package file from e.g.
<miniconda>/conda-bld/linux-64, I've done a "conda index" in that directory
to update the index. But now, of course:

% conda index
The update_index function has changed to index all subdirs at once. You're
pointing it at a single subdir. Please update your code to point it at the
channel root, rather than a subdir.
WARNING:conda_build.index:The update_index function has changed to index
all subdirs at once. You're pointing it at a single subdir. Please update
your code to point it at the channel root, rather than a subdir.


What is the correct syntax for doing this now? I can't figure it out from
the output of "conda index --help".

thanks,
paul
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/da32b6f3-d148-4db4-bc6c-663a646beceb%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Paul Madden
2018-10-02 22:51:24 UTC
Permalink
Someone wrote to me (but apparently not to the list)
Run conda index one directory up, in <mini conda>/conda-bld in your
example.

Please let me know if I'm missing something, but that appears not to work:

/tmp/foo % conda search --use-local foo
Loading channels: done

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

- foo

Current channels:

- https://repo.anaconda.com/pkgs/main/linux-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/free/linux-64
- https://repo.anaconda.com/pkgs/free/noarch
- https://repo.anaconda.com/pkgs/r/linux-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/pro/linux-64
- https://repo.anaconda.com/pkgs/pro/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.

/tmp/foo % conda build . >out 2>&1

/tmp/foo % conda search --use-local foo
Loading channels: done
# Name Version Build Channel
foo 0.0.1 0 tmp/miniconda/conda-bld

/tmp/foo % rm -v /tmp/miniconda/conda-bld/linux-64/foo-0.0.1-0.tar.bz2
removed '/tmp/miniconda/conda-bld/linux-64/foo-0.0.1-0.tar.bz2'

/tmp/foo % cd /tmp/miniconda/conda-bld/

/tmp/miniconda/conda-bld % conda index --no-progress

/tmp/miniconda/conda-bld % conda search --use-local foo
Loading channels: done
# Name Version Build Channel
foo 0.0.1 0 tmp/miniconda/conda-bld
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/6b637430-bdd8-40e2-8b22-a586a737b329%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Paul Madden
2018-10-02 23:12:34 UTC
Permalink
This seems to be a bug. I've filed an issue
here: https://github.com/conda/conda/issues/7825
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/2ffc0d99-b49a-4ecc-a468-ada68725b808%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Loading...