Setup-miniconda: conda.lock νŒŒμΌμ„ μ‚¬μš©ν•  λ•Œ μΊμ‹œν•  수 μžˆμŠ΅λ‹ˆκΉŒ?

에 λ§Œλ“  2020λ…„ 12μ›” 10일  Β·  9μ½”λ©˜νŠΈ  Β·  좜처: conda-incubator/setup-miniconda

쒅속성을 μ„€μΉ˜ν•˜κΈ° μœ„ν•΄ conda.lock νŒŒμΌμ„ μ‚¬μš©ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€. μΊμ‹œν•  수 μžˆλŠ” 방법이 μžˆλŠ”μ§€ κΆκΈˆν•©λ‹ˆλ‹€. ν˜„μž¬ 일반 캐싱이 μž‘λ™ν•˜μ§€ μ•ŠλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€.

λͺ¨λ“  9 λŒ“κΈ€

흠... 잠금 νŒŒμΌμ„ 많이 μ‚¬μš©ν•˜κ³  있으며 캐싱은 Linux 및 osxμ—μ„œ μž‘λ™ν•©λ‹ˆλ‹€.

https://github.com/robots-from-jupyter/robotframework-jupyterlibrary/runs/1493514408?check_suite_focus=true

Windowsμ—μ„œλŠ” μž‘λ™ν•˜μ§€ μ•ŠμœΌλ©° λ‚˜λ₯Ό μŠ¬ν”„κ²Œ ν•˜μ§€λ§Œ λ†€λžμ§€λ„ μ•ŠμŠ΅λ‹ˆλ‹€.

문제의 리포지토리에 λŒ€ν•œ 링크, 둜그 λ˜λŠ” "μž‘λ™ν•˜μ§€ μ•ŠμŒ" μ΄μ™Έμ˜ μΆ”κ°€ 정보가 있으면 도움이 될 κ²ƒμž…λ‹ˆλ‹€!

λΉ λ₯Έ 닡변에 @bollwyvl μ—κ²Œ κ°μ‚¬λ“œλ¦½λ‹ˆλ‹€.

더 일찍 더 μžμ„Έν•œ 정보λ₯Ό μ œκ³΅ν•˜μ§€ λͺ»ν•΄ μ£„μ†‘ν•©λ‹ˆλ‹€. μ €λŠ” μž₯λ‚œκ° λ¦¬ν¬μ§€ν† λ¦¬μ—μ„œ μ‹€ν—˜ μ€‘μž…λ‹ˆλ‹€. μ—¬κΈ°μ—μ„œ 졜근 둜그λ₯Ό 찾을 수 μžˆμŠ΅λ‹ˆλ‹€.

https://github.com/ma-sadeghi/xyztest/runs/1534789528?check_suite_focus=true

μΊμ‹œ ν¬κΈ°λŠ” ~0MB둜 λ³΄κ³ λ©λ‹ˆλ‹€.

μΆ”μ‹ . λ‚˜λŠ” 이 리포지토리에 setup-miniconda λ₯Ό μ‚¬μš©ν•˜μ§€ μ•Šκ³  CI 머신에 λ‚΄μž₯된 conda 와 ν•¨κ»˜ μž‘λ™ν•˜λ„λ‘ ν•˜λ €κ³  ν–ˆμŠ΅λ‹ˆλ‹€.

@bollwyvl

μ—…λ°μ΄νŠΈ 1

yml νŒŒμΌμ„ μ•½κ°„ 파고 setup-miniconda μ‚΄νŽ΄λ³΄λ©΄ λ‚΄κ°€ λ§Žμ€ 일을 잘λͺ»ν•˜κ³  μžˆλ‹€λŠ” 것이 λ°ν˜€μ‘ŒμŠ΅λ‹ˆλ‹€. μΊμ‹œ 폴더( ~/conda_pkgs_dir )κ°€ μ‘΄μž¬ν•˜μ§€ μ•Šμ•„ μˆ˜λ™μœΌλ‘œ λ§Œλ“€μ–΄μ•Ό ν–ˆμœΌλ©° ~/conda_pkgs_dir λ₯Ό 가리킀도둝 CONDA_PKGS_DIRS ν™˜κ²½ λ³€μˆ˜λ₯Ό μ„€μ •ν•˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€. κ°€μž₯ 졜근의 λ°˜λ³΅μ€ λ‹€μŒκ³Ό κ°™μŠ΅λ‹ˆλ‹€.

https://github.com/ma-sadeghi/xyztest/runs/1535236467?check_suite_focus=true

캐싱이 μ œλŒ€λ‘œ μž‘λ™ν•˜κ³  "쒅속성 μ„€μΉ˜" 단계가 훨씬 빨라진 것 κ°™μŠ΅λ‹ˆλ‹€.

톡찰λ ₯ μ£Όμ…”μ„œ κ°μ‚¬ν•©λ‹ˆλ‹€.

ν›„μž! λͺ¨λ‘λ₯Ό μœ„ν•œ μΊμ‹œ!

전체 폴더λ₯Ό μΊμ‹±ν•˜λ©΄ μ œλŒ€λ‘œ μž‘λ™ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.
μΊμ‹œμ—λŠ” tarball _및_ μ••μΆ• ν•΄μ œλœ λ‚΄μš©μ΄ λͺ¨λ‘ ν¬ν•¨λ˜μ–΄ μžˆμŠ΅λ‹ˆλ‹€.
포슀트 단계 단계 μš°λ¦¬λŠ” (μ‹œλ„) κ·Έ 쀑 일뢀λ₯Ό μ •λ¦¬ν•©λ‹ˆλ‹€.

κ³ μž₯λ‚œ 것이 μ—†μœΌλ©΄ 자유둭게 λ‹«μœΌμ‹­μ‹œμ˜€ ... 특히 λ‹€μŒκ³Ό 같이
이 μž‘μ—…μ— κ΄€μ—¬ν•˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€.

@bollwyvl μ£„μ†‘ν•©λ‹ˆλ‹€ 이것이 μ™„μ „νžˆ 이

λ„€ κ·Έ 정도 ν¬κΈ°μž…λ‹ˆλ‹€.

https://github.com/conda-incubator/setup-miniconda/blob/master/src/delete.ts

κ·Έ 밖에도 더 λ§Žμ€ 것듀이 μžˆμ§€λ§Œ, 그에 λΉ„ν•˜λ©΄ μ²œλ°•ν•œ κ²ƒλ“€μž…λ‹ˆλ‹€.
예λ₯Ό λ“€μ–΄ mkl λ˜λŠ” qt의 압좕을 ν’‰λ‹ˆλ‹€.

@bollwyvl λΉ λ₯Έ 질문: delete.ts 보면 .tar.bz2 μ••μΆ• 파일이 μ•„λ‹ˆλΌ μ••μΆ•λ˜μ§€ μ•Šμ€ 폴더λ₯Ό μ‚­μ œν•˜λŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. λ‚΄κ°€ λ­”κ°€λ₯Ό λ†“μΉ˜κ³  μžˆλŠ” 것 κ°™μ§€λ§Œ, κ·Έλ ‡κ²Œ ν•¨μœΌλ‘œμ¨ condaλŠ” μΆ”κ°€ "μ••μΆ• ν•΄μ œ" 단계λ₯Ό μˆ˜ν–‰ν•΄μ•Ό ν•˜λŠ” 반면, .tar.bz2 κ°€ μ‚­μ œλ˜λ©΄ conda λŠ” 이미 μ••μΆ• ν•΄μ œλœ 것을 λ‹¨μˆœνžˆ μž¬μ‚¬μš©ν•  수 μžˆμŠ΅λ‹ˆλ‹€. 폴더. λ‚˜λŠ” λ‚΄ μ»΄ν“¨ν„°μ—μ„œ 그것을 μ‹œλ„ν–ˆκ³  ν›„μžκ°€ 더 λΉ λ₯Έ μ„€μΉ˜λ‘œ μ΄μ–΄μ§€λŠ” κ²ƒμ²˜λŸΌ λ³΄μ˜€μŠ΅λ‹ˆλ‹€.

λ‚˜λŠ” 당신이 conda clean을 μ‹€ν–‰ν•  수 μžˆλ‹€κ³  μƒκ°ν•©λ‹ˆλ‹€. @bollwyvl μ•„λ§ˆλ„ delete.ts λŒ€μ‹ μ— 그것을 μ‚¬μš©ν•  수 μžˆμ„ κ²ƒμž…λ‹ˆλ‹€. κ·Έ μˆœκ°„μ— conda clean을 μΈμ‹ν•˜μ§€ λͺ»ν–ˆκΈ° λ•Œλ¬Έμ— κ·Έλ ‡κ²Œ ν–ˆμŠ΅λ‹ˆλ‹€.

$ conda clean --help



usage: conda clean [-h] [-a] [-i] [-p] [-t] [-f]
                   [-c TEMPFILES [TEMPFILES ...]] [-d] [--json] [-q] [-v] [-y]

Remove unused packages and caches.

Options:

optional arguments:
  -h, --help            Show this help message and exit.

Removal Targets:
  -a, --all             Remove index cache, lock files, unused cache packages,
                        and tarballs.
  -i, --index-cache     Remove index cache.
  -p, --packages        Remove unused packages from writable package caches.
                        WARNING: This does not check for packages installed
                        using symlinks back to the package cache.
  -t, --tarballs        Remove cached package tarballs.
  -f, --force-pkgs-dirs
                        Remove *all* writable package caches. This option is
                        not included with the --all flag. WARNING: This will
                        break environments with packages installed using
                        symlinks back to the package cache.
  -c TEMPFILES [TEMPFILES ...], --tempfiles TEMPFILES [TEMPFILES ...]
                        Remove temporary files that could not be deleted
                        earlier due to being in-use. Argument is path(s) to
                        prefix(es) where files should be found and removed.

Output, Prompt, and Flow Control Options:
  -d, --dry-run         Only display what would have been done.
  --json                Report all output as json. Suitable for using conda
                        programmatically.
  -q, --quiet           Do not display progress bar.
  -v, --verbose         Can be used multiple times. Once for INFO, twice for
                        DEBUG, three times for TRACE.
  -y, --yes             Do not ask for confirmation.

Examples:

    conda clean --tarballs

더 μž‘μ€ μΊμ‹œμ— λŒ€ν•œ λͺ‡ 가지 μΆ”κ°€ 아이디어:

이 νŽ˜μ΄μ§€κ°€ 도움이 λ˜μ—ˆλ‚˜μš”?
0 / 5 - 0 λ“±κΈ‰