MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / get_other_dists

Function get_other_dists

etc/scripts/utils_thirdparty.py:2012–2017  ·  view source on GitHub ↗

Return a list of all the dists from `_package` that are not the `_dist` object

(_package, _dist)

Source from the content-addressed store, hash-verified

2010 """
2011
2012 def get_other_dists(_package, _dist):
2013 """
2014 Return a list of all the dists from `_package` that are not the `_dist`
2015 object
2016 """
2017 return [d for d in _package.get_distributions() if d != _dist]
2018
2019 local_packages = get_local_packages(directory=dest_dir)
2020 packages_by_name = defaultdict(list)

Callers 1

Calls 1

get_distributionsMethod · 0.80

Tested by

no test coverage detected