Skip to content

Commit

Permalink
Add a quick hack to rewrite some historical python dependencies
Browse files Browse the repository at this point in the history
I'm not sure why these didn't get flagged up as missing dependencies,
but using the now removed, obsoleted package name causes the solver to
want to uninstall anything which depends on these, whic isn't helpful
right now...
  • Loading branch information
jon-turney committed Jan 18, 2024
1 parent 74e7968 commit e89117d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion calm/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def process_package_constraint_list(pcl):
deplist[item] = item + ' ' + r
else:
item = r
deplist[item] = item
deplist[item] = past_mistakes.substitute_dependency.get(r, r)

# return a sorted list of package names with an optional version constraint.
return sorted(deplist.values())
Expand Down
17 changes: 17 additions & 0 deletions calm/past_mistakes.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,23 @@
r'tl_basic_\d+',
]

substitute_dependency = {
'python-gi': 'python27-gi',
'python2-avogadro': 'python27-avogadro',
'python2-dbus': 'python27-dbus',
'python2-gi': 'python27-gi',
'python2-ipaddr': 'python27-ipaddr',
'python2-libvirt': 'python27-libvirt',
'python2-libxml2': 'python27-libxml2',
'python2-magic': 'python27-magic',
'python2-nghttp2': 'python27-nghttp2',
'python2-numpy': 'python27-numpy',
'python2-pyqt5': 'python27-pyqt5',
'python2-request': 'python27-request',
'python2-six': 'python27-six',
'python2-xdg': 'python27-xdg',
}

# provides: which don't exist and packages which require them should be expired
expired_provides = [
'python2',
Expand Down

0 comments on commit e89117d

Please sign in to comment.