Python pip._vendor.pkg_resources.find_distributions() Examples
The following are 30
code examples of pip._vendor.pkg_resources.find_distributions().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
pip._vendor.pkg_resources
, or try the search function
.
Example #1
Source File: prepare.py From coffeegrindsize with MIT License | 5 votes |
def dist(self): # type: () -> pkg_resources.Distribution return list(pkg_resources.find_distributions( self.req.source_dir))[0]
Example #2
Source File: req_set.py From Flask-P2P with MIT License | 5 votes |
def dist(self, finder): return list(pkg_resources.find_distributions( self.req_to_install.source_dir))[0]
Example #3
Source File: prepare.py From Weapon-Detection-And-Classification with MIT License | 5 votes |
def dist(self): # type: () -> pkg_resources.Distribution return list(pkg_resources.find_distributions( self.req.source_dir))[0]
Example #4
Source File: req_set.py From planespotter with MIT License | 5 votes |
def dist(self, finder): return list(pkg_resources.find_distributions( self.req_to_install.source_dir))[0]
Example #5
Source File: req_set.py From ImageFusion with MIT License | 5 votes |
def dist(self, finder): return list(pkg_resources.find_distributions( self.req_to_install.source_dir))[0]
Example #6
Source File: req_set.py From ImageFusion with MIT License | 5 votes |
def dist(self, finder): return list(pkg_resources.find_distributions( self.req_to_install.source_dir))[0]
Example #7
Source File: req_set.py From python2017 with MIT License | 5 votes |
def dist(self, finder): return list(pkg_resources.find_distributions( self.req_to_install.source_dir))[0]
Example #8
Source File: req_set.py From Ansible with MIT License | 5 votes |
def dist(self, finder): return list(pkg_resources.find_distributions( self.req_to_install.source_dir))[0]
Example #9
Source File: req_set.py From datafari with Apache License 2.0 | 5 votes |
def dist(self, finder): return list(pkg_resources.find_distributions( self.req_to_install.source_dir))[0]
Example #10
Source File: req_set.py From Splunking-Crime with GNU Affero General Public License v3.0 | 5 votes |
def dist(self, finder): return list(pkg_resources.find_distributions( self.req_to_install.source_dir))[0]
Example #11
Source File: req_set.py From PhonePi_SampleServer with MIT License | 5 votes |
def dist(self, finder): return list(pkg_resources.find_distributions( self.req_to_install.source_dir))[0]
Example #12
Source File: req_set.py From syntheticmass with Apache License 2.0 | 5 votes |
def dist(self, finder): return list(pkg_resources.find_distributions( self.req_to_install.source_dir))[0]
Example #13
Source File: req_set.py From CTFCrackTools-V2 with GNU General Public License v3.0 | 5 votes |
def dist(self, finder): return list(pkg_resources.find_distributions( self.req_to_install.source_dir))[0]
Example #14
Source File: prepare.py From guildai with Apache License 2.0 | 5 votes |
def dist(self, finder): return list(pkg_resources.find_distributions( self.req.source_dir))[0]
Example #15
Source File: req_set.py From python with Apache License 2.0 | 5 votes |
def dist(self, finder): return list(pkg_resources.find_distributions( self.req_to_install.source_dir))[0]
Example #16
Source File: pip_faster.py From venv-update with MIT License | 5 votes |
def fresh_working_set(): """return a pkg_resources "working set", representing the *currently* installed packages""" class WorkingSetPlusEditableInstalls(pkg_resources.WorkingSet): def __init__(self, *args, **kwargs): self._normalized_name_mapping = {} super(WorkingSetPlusEditableInstalls, self).__init__(*args, **kwargs) def add_entry(self, entry): """Same as the original .add_entry, but sets only=False, so that egg-links are honored.""" logger.debug('working-set entry: %r', entry) self.entry_keys.setdefault(entry, []) self.entries.append(entry) for dist in pkg_resources.find_distributions(entry, False): # eggs override anything that's installed normally # fun fact: pkg_resources.working_set's results depend on the # ordering of os.listdir since the order of os.listdir is # entirely arbitrary (an implemenation detail of file system), # without calling site.main(), an .egg-link file may or may not # be honored, depending on the filesystem replace = (dist.precedence == pkg_resources.EGG_DIST) self._normalized_name_mapping[normalize_name(dist.key)] = dist.key self.add(dist, entry, False, replace=replace) def find_normalized(self, req): req = _package_req_to_pkg_resources_req(str(req)) req.key = self._normalized_name_mapping.get(normalize_name(req.key), req.key) return self.find(req) return WorkingSetPlusEditableInstalls()
Example #17
Source File: wheel.py From CogAlg with MIT License | 5 votes |
def get_pkg_resources_distribution(self): return list(pkg_resources.find_distributions( self.req.source_dir))[0]
Example #18
Source File: prepare.py From Carnets with BSD 3-Clause "New" or "Revised" License | 5 votes |
def dist(self): # type: () -> pkg_resources.Distribution return list(pkg_resources.find_distributions( self.req.source_dir))[0]
Example #19
Source File: wheel.py From V1EngineeringInc-Docs with Creative Commons Attribution Share Alike 4.0 International | 5 votes |
def get_pkg_resources_distribution(self): return list(pkg_resources.find_distributions( self.req.source_dir))[0]
Example #20
Source File: req_set.py From Hands-On-Deep-Learning-for-Games with MIT License | 5 votes |
def dist(self, finder): return list(pkg_resources.find_distributions( self.req_to_install.source_dir))[0]
Example #21
Source File: prepare.py From android_universal with MIT License | 5 votes |
def dist(self): # type: () -> pkg_resources.Distribution return list(pkg_resources.find_distributions( self.req.source_dir))[0]
Example #22
Source File: req_set.py From CTFCrackTools with GNU General Public License v3.0 | 5 votes |
def dist(self, finder): return list(pkg_resources.find_distributions( self.req_to_install.source_dir))[0]
Example #23
Source File: prepare.py From fxxkpython with GNU General Public License v3.0 | 5 votes |
def dist(self): # type: () -> pkg_resources.Distribution return list(pkg_resources.find_distributions( self.req.source_dir))[0]
Example #24
Source File: prepare.py From fxxkpython with GNU General Public License v3.0 | 5 votes |
def dist(self): # type: () -> pkg_resources.Distribution return list(pkg_resources.find_distributions( self.req.source_dir))[0]
Example #25
Source File: prepare.py From fxxkpython with GNU General Public License v3.0 | 5 votes |
def dist(self): # type: () -> pkg_resources.Distribution return list(pkg_resources.find_distributions( self.req.source_dir))[0]
Example #26
Source File: prepare.py From fxxkpython with GNU General Public License v3.0 | 5 votes |
def dist(self): # type: () -> pkg_resources.Distribution return list(pkg_resources.find_distributions( self.req.source_dir))[0]
Example #27
Source File: prepare.py From twitter-stock-recommendation with MIT License | 5 votes |
def dist(self, finder): return list(pkg_resources.find_distributions( self.req.source_dir))[0]
Example #28
Source File: prepare.py From deepWordBug with Apache License 2.0 | 5 votes |
def dist(self): # type: () -> pkg_resources.Distribution return list(pkg_resources.find_distributions( self.req.source_dir))[0]
Example #29
Source File: req_set.py From jbox with MIT License | 5 votes |
def dist(self, finder): return list(pkg_resources.find_distributions( self.req_to_install.source_dir))[0]
Example #30
Source File: req_set.py From python-netsurv with MIT License | 5 votes |
def dist(self, finder): return list(pkg_resources.find_distributions( self.req_to_install.source_dir))[0]