@classmethod
def setup_class(cls):
    os.environ['MAMBA_ROOT_PREFIX'] = TestInstall.root_prefix
    os.environ['CONDA_PREFIX'] = TestInstall.prefix
    os.environ['CONDA_PKGS_DIRS'] = TestInstall.new_cache
    os.makedirs(TestInstall.new_cache, exist_ok=True)
    root_pkgs = glob.glob(os.path.join(TestInstall.current_root_prefix, 'pkgs', 'x*.tar.bz2'))
    urls = []
    for pkg in root_pkgs:
        shutil.copy(pkg, TestInstall.new_cache)
        urls.append((('http://testurl.com/conda-forge/linux-64/' + os.path.basename(pkg)) + '#123412341234'))
    cls.pkgs = [os.path.basename(pkg) for pkg in root_pkgs]
    with open(os.path.join(TestInstall.new_cache, 'urls'), 'w') as furls:
        furls.write('\n'.join(urls))
@classmethod
def setup_class(cls):
    os.environ['MAMBA_ROOT_PREFIX'] = TestInstall.root_prefix
    os.environ['CONDA_PREFIX'] = TestInstall.prefix
    os.environ['CONDA_PKGS_DIRS'] = TestInstall.new_cache
    os.makedirs(TestInstall.new_cache, exist_ok=True)
    root_pkgs = glob.glob(os.path.join(TestInstall.current_root_prefix, 'pkgs', 'x*.tar.bz2'))
    urls = []
    for pkg in root_pkgs:
        shutil.copy(pkg, TestInstall.new_cache)
        urls.append((('http://testurl.com/conda-forge/linux-64/' + os.path.basename(pkg)) + '#123412341234'))
    cls.pkgs = [os.path.basename(pkg) for pkg in root_pkgs]
    with open(os.path.join(TestInstall.new_cache, 'urls'), 'w') as furls:
        furls.write('\n'.join(urls))