Pip: μƒˆ ν•΄κ²° ν”„λ‘œκ·Έλž¨μ€ 사전 릴리슀 λ§ŒμžˆλŠ” λ°°ν¬νŒμ„ μ„€μΉ˜ν•  수 μ—†μŠ΅λ‹ˆλ‹€.

에 λ§Œλ“  2020λ…„ 04μ›” 18일  Β·  3μ½”λ©˜νŠΈ  Β·  좜처: pypa/pip

ν™˜κ²½

  • pip 버전 : λ§ˆμŠ€ν„°, 였늘
  • Python 버전 : 3
  • OS : λ¦¬λˆ…μŠ€

기술

μ‹œν—˜νŒ λ§ŒμžˆλŠ” λ°°ν¬νŒμ„ μ„€μΉ˜ν•˜κ³  μ‹ΆμŠ΅λ‹ˆλ‹€. λ ˆκ±°μ‹œ λ¦¬μ‘Έλ²„λŠ”μ΄λ₯Ό μ§€μ›ν•©λ‹ˆλ‹€. μƒˆλ‘œμš΄ 것은 그렇지 μ•ŠμŠ΅λ‹ˆλ‹€.

μ°Έκ³  : --pre 은 결과에 영ν–₯을 λ―ΈμΉ˜μ§€ μ•ŠλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. λ ˆκ±°μ‹œ λ¦¬μ‘Έλ²„λŠ” --pre λ₯Ό μ‚¬μš©ν•˜μ§€ μ•Šκ³  μ΄λŸ¬ν•œ 배포λ₯Ό μ„€μΉ˜ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

μ˜ˆμƒλ˜λŠ” 행동

μ„€μΉ˜κ°€ μ„±κ³΅ν•΄μ•Όν•©λ‹ˆλ‹€.

μž¬ν˜„ 방법

$ pip install --no-deps odoo13-addon-date-range --unstable-feature=resolver
ERROR: Exception:
Traceback (most recent call last):
  File "/home/me/pip/src/pip/_internal/cli/base_command.py", line 199, in _main
    status = self.run(options, args)
  File "/home/me/pip/src/pip/_internal/cli/req_command.py", line 185, in wrapper
    return func(self, options, args)
  File "/home/me/pip/src/pip/_internal/commands/install.py", line 333, in run
    reqs, check_supported_wheels=not options.target_dir
  File "/home/me/pip/src/pip/_internal/resolution/resolvelib/resolver.py", line 80, in resolve
    self._result = resolver.resolve(requirements)
  File "/home/me/pip/src/pip/_vendor/resolvelib/resolvers.py", line 413, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "/home/me/pip/src/pip/_vendor/resolvelib/resolvers.py", line 310, in resolve
    failure_causes = self._attempt_to_pin_criterion(name, criterion)
  File "/home/me/pip/src/pip/_vendor/resolvelib/resolvers.py", line 240, in _attempt_to_pin_criterion
    raise InconsistentCandidate(candidate, criterion)
pip._vendor.resolvelib.resolvers.InconsistentCandidate: Provided candidate LinkCandidate('https://files.pythonhosted.org/packages/1f/0b/945335a37082b6b013cc1331f49e3f5b6a18cdd0b693475e6ca9e9a7df6e/odoo13_addon_date_range-13.0.1.0.1.dev8-py3-none-any.whl#sha256=3883bbe87db8d5db4364e8a42e86546e19e8e4f123d98c4e9454587dfa9401df (from https://pypi.org/simple/odoo13-addon-date-range/) (requires-python:>=3.5)') does not satisfy SpecifierRequirement('odoo13-addon-date-range')

μ°Έκ³  : 쒅속성이 pypi에 μžˆμ§€ μ•ŠκΈ° λ•Œλ¬Έμ— --no-deps ν–ˆμ§€λ§Œ κ²°κ³Όμ—λŠ” 영ν–₯을주지 μ•ŠμŠ΅λ‹ˆλ‹€.

new resolver auto-locked bug

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

InconsistentCandidate μ—μ„œ μΌμΉ˜ν•˜λŠ” κ²½μš°μ— λ°œμƒν•©λ‹ˆλ‹€ find_matches() 에 λŒ€ν•œ μ§„μ •ν•œ λ°˜ν™˜ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€ is_satisfied_by() . κ·Έλž˜μ„œ λ‚΄ 생각 μ—” 프리 릴리즈λ₯Ό 받아듀이 κΈ° μœ„ν•΄ is_satisfied_by() λ₯Ό μˆ˜μ •ν•΄μ•Όν•©λ‹ˆλ‹€.

쒋은 캐치 @sbidoul! ^> ^

λ‚˜λŠ” 이것이 pip 20.1의 베타 이전에 μ§€κΈˆ λ°”λ‘œ 고쳐질 ν•„μš”κ°€ μ—†λ‹€κ³  μƒκ°ν•˜μ§€λ§Œ, κ·Έλ ‡μŠ΅λ‹ˆλ‹€, μš°λ¦¬λŠ” 이것을 κ²°κ΅­ κ΅¬ν˜„ν•΄μ•Όν•©λ‹ˆλ‹€. :)

μ„ νƒν•œ 버전이 μ‹œν—˜νŒ 인 경우 --pre 와 ν•¨κ»˜ μ‹€νŒ¨ν•©λ‹ˆλ‹€. λͺ¨λ“  μ‹œν—˜νŒμ΄ μ‹€νŒ¨ν•˜λŠ” 것은 μ•„λ‹ˆμ§€λ§Œ μ§€μ •μžμ— μ‹œν—˜νŒμ΄ ν¬ν•¨λ˜μ–΄ μžˆμ§€ μ•Šμ€ κ²½μš°μ—λ§Œ κ°€λŠ₯ν•©λ‹ˆλ‹€. λ‚΄κ°€ 고쳐진 것 κ°™μ•„μš”.

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