vericast / conda-mirror

Mirror upstream conda channels
BSD 3-Clause "New" or "Revised" License
71 stars 59 forks source link

Fetching necessary dependencies for the whitelist. #83

Open minhoryang opened 5 years ago

minhoryang commented 5 years ago

I'm using conda-mirror for air-gapped computers. (I know it's a special use case rather than just mirroring.)

Config look like:

blacklist:
- name: '*'
platform: osx-64
target_directory: mirrored
upstream_channel: https://repo.continuum.io/pkgs/main/
whitelist:
- build: mkl
  name: _tflow_select
  version: 2.3.0
- build: py36_0
  name: absl-py
  version: 0.7.0
- build: py36_0
  name: astor
  version: 0.7.1
- ...

But after conda-mirroring, I can't install whitelisted packages via mirrored, which weren't covered the dependencies.

minhoryang commented 5 years ago

Here is a snippet for generating a conda-mirror.config.yaml with dependencies