Prefer matching dev packages.
This commit is contained in:
parent
3dd8e6d814
commit
19ca52908e
1 changed files with 3 additions and 0 deletions
|
@ -22,6 +22,7 @@ __all__ = [
|
|||
from functools import partial
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
import sys
|
||||
from typing import List, Set, Optional, Type
|
||||
|
@ -304,6 +305,8 @@ def python_tie_breaker(tree, subpath, reqs):
|
|||
return True
|
||||
if pkg.startswith("lib%s-" % python_version):
|
||||
return True
|
||||
if re.match('lib%s\.[0-9]-dev' % python_version, pkg):
|
||||
return True
|
||||
return False
|
||||
|
||||
for python_version in targeted:
|
||||
|
|
Loading…
Add table
Reference in a new issue