crash.software
Projects
Pull Requests
Issues
Builds
protobuf-decoder
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
protobuf-decoder
Files
🤬
Sign In
f8be237a
ROOT
/
Lib
/
pkg_resources.py
Search
History
2730 lines
|
ISO-8859-1
|
87 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
sys
os
open
zipimport
time
re
imp
types
urlparse
urlunparse
frozenset
utime
mkdir
rename
unlink
WRITE_SUPPORT
os_open
isdir
split
_bypass_ensure_directory
(name,mode=0777)
_declare_state
(vartype,**kw)
__getstate__
()
__setstate__
(state)
_sget_dict
(val)
_sset_dict
(key,ob,state)
_sget_object
(val)
_sset_object
(key,ob,state)
get_supported_platform
()
ResolutionError
(Exception)
__repr__
(self)
VersionConflict
(ResolutionError)
DistributionNotFound
(ResolutionError)
UnknownExtra
(ResolutionError)
PY_MAJOR
EGG_DIST
BINARY_DIST
SOURCE_DIST
CHECKOUT_DIST
DEVELOP_DIST
register_loader_type
(loader_type,provider_factory)
get_provider
(moduleOrReq)
_macosx_vers
(_cache=[])
platform
plistlib
_macosx_arch
(machine)
get_build_platform
()
get_platform
get_platform
macosVersionString
darwinVersionString
get_platform
compatible_platforms
(provided,required)
run_script
(dist_spec,script_name)
run_main
get_distribution
(dist)
load_entry_point
(dist,group,name)
get_entry_map
(dist,group=None)
get_entry_info
(dist,group,name)
IMetadataProvider
has_metadata
(name)
get_metadata
(name)
get_metadata_lines
(name)
metadata_isdir
(name)
metadata_listdir
(name)
run_script
(script_name,namespace)
IResourceProvider
(IMetadataProvider)
get_resource_filename
(manager,resource_name)
get_resource_stream
(manager,resource_name)
get_resource_string
(manager,resource_name)
has_resource
(resource_name)
resource_isdir
(resource_name)
resource_listdir
(resource_name)
WorkingSet
(object)
entries
entry_keys
by_key
callbacks
__init__
(self,entries=None)
add_entry
(self,entry)
__contains__
(self,dist)
find
(self,req)
iter_entry_points
(self,group,name=None)
run_script
(self,requires,script_name)
__iter__
(self)
add
(self,dist,entry=None,insert=True)
resolve
(self,requirements,env=None,installer=None,replacement=True)
find_plugins
(self,plugin_env,full_env=None,installer=None,fallback=True)
distributions
require
(self,*requirements)
subscribe
(self,callback)
_added_new
(self,dist)
__getstate__
(self)
__setstate__
(self,
self
entries
entry_keys
by_key
callbacks
Environment
(object)
_distmap
_cache
platform
python
__init__
(self,search_path=None,platform=get_supported_platform(),python=PY_MAJOR)
can_add
(self,dist)
remove
(self,dist)
scan
(self,search_path=None)
__getitem__
(self,project_name)
add
(self,dist)
best_match
(self,req,working_set,installer=None)
obtain
(self,requirement,installer=None)
__iter__
(self)
__iadd__
(self,other)
__add__
(self,other)
AvailableDistributions
ExtractionError
(RuntimeError)
ResourceManager
extraction_path
cached_files
__init__
(self)
resource_exists
(self,package_or_requirement,resource_name)
resource_isdir
(self,package_or_requirement,resource_name)
resource_filename
(self,package_or_requirement,resource_name)
resource_stream
(self,package_or_requirement,resource_name)
resource_string
(self,package_or_requirement,resource_name)
resource_listdir
(self,package_or_requirement,resource_name)
extraction_error
(self)
get_cache_path
(self,archive_name,names=())
postprocess
(self,tempname,filename)
set_extraction_path
(self,path)
cleanup_resources
(self,force=False)
get_default_cache
()
safe_name
(name)
safe_version
(version)
safe_extra
(extra)
to_filename
(name)
NullProvider
egg_name
egg_info
loader
module_path
__init__
(self,module)
get_resource_filename
(self,manager,resource_name)
get_resource_stream
(self,manager,resource_name)
get_resource_string
(self,manager,resource_name)
has_resource
(self,resource_name)
has_metadata
(self,name)
get_metadata
(self,name)
get_metadata
(self,name)
get_metadata_lines
(self,name)
resource_isdir
(self,resource_name)
metadata_isdir
(self,name)
resource_listdir
(self,resource_name)
metadata_listdir
(self,name)
run_script
(self,script_name,namespace)
_has
(self,path)
_isdir
(self,path)
_listdir
(self,path)
_fn
(self,base,resource_name)
_get
(self,path)
EggProvider
(NullProvider)
egg_name
egg_info
egg_root
__init__
(self,module)
_setup_prefix
(self)
DefaultProvider
(EggProvider)
_has
(self,path)
_isdir
(self,path)
_listdir
(self,path)
get_resource_stream
(self,manager,resource_name)
_get
(self,path)
EmptyProvider
(NullProvider)
_isdir
_has
_get
_listdir
module_path
__init__
(self)
empty_provider
ZipProvider
(EggProvider)
eagers
zipinfo
zip_pre
_dirindex
__init__
(self,module)
_zipinfo_name
(self,fspath)
_parts
(self,zip_path)
get_resource_filename
(self,manager,resource_name)
_extract_resource
(self,manager,zip_path)
_get_eager_resources
(self)
_index
(self)
_has
(self,fspath)
_isdir
(self,fspath)
_listdir
(self,fspath)
_eager_to_zip
(self,resource_name)
_resource_to_zip
(self,resource_name)
FileMetadata
(EmptyProvider)
path
__init__
(self,path)
has_metadata
(self,name)
get_metadata
(self,name)
get_metadata_lines
(self,name)
PathMetadata
(DefaultProvider)
module_path
egg_info
__init__
(self,path,egg_info)
EggMetadata
(ZipProvider)
zipinfo
zip_pre
loader
module_path
__init__
(self,importer)
ImpWrapper
path
__init__
(self,path=None)
find_module
(self,fullname,path=None)
ImpLoader
file
filename
etc
__init__
(self,file,filename,etc)
load_module
(self,fullname)
get_importer
(path_item)
get_importer
ImpImporter
register_finder
(importer_type,distribution_finder)
find_distributions
(path_item,only=False)
find_in_zip
(importer,path_item,only=False)
StringIO
(*args,**kw)
StringIO
StringIO
find_nothing
(importer,path_item,only=False)
find_on_path
(importer,path_item,only=False)
register_namespace_handler
(importer_type,namespace_handler)
_handle_ns
(packageName,path_item)
module
declare_namespace
(packageName)
fixup_namespace_packages
(path_item,parent=None)
file_ns_handler
(importer,path_item,packageName,module)
null_ns_handler
(importer,path_item,packageName,module)
normalize_path
(filename)
_normalize_cached
(filename,_cache={})
_set_parent_ns
(packageName)
yield_lines
(strs)
LINE_END
CONTINUE
DISTRO
VERSION
COMMA
OBRACKET
CBRACKET
MODULE
EGG_NAME
component_re
replace
_parse_version_parts
(s)
parse_version
(s)
EntryPoint
(object)
name
module_name
attrs
extras
dist
__init__
(self,name,module_name,attrs=(),extras=(),dist=None)
__str__
(self)
__repr__
(self)
load
(self,require=True,env=None,installer=None)
require
(self,env=None,installer=None)
parse
(cls,src,dist=None)
parse_group
(cls,group,lines,dist=None)
parse_map
(cls,data,dist=None)
_remove_md5_fragment
(location)
Distribution
(object)
project_name
_version
py_version
platform
location
precedence
_provider
_key
_parsed_version
__dep_map
_ep_map
__init__
(self,location=None,metadata=None,project_name=None,version=None,py_version=PY_MAJOR,platform=None,precedence=EGG_DIST)
from_location
(cls,location,basename,metadata=None,**kw)
hashcmp
__hash__
(self)
__lt__
(self,other)
__le__
(self,other)
__gt__
(self,other)
__ge__
(self,other)
__eq__
(self,other)
__ne__
(self,other)
key
(self)
parsed_version
(self)
version
(self)
_dep_map
(self)
requires
(self,extras=())
_get_metadata
(self,name)
activate
(self,path=None)
egg_name
(self)
__repr__
(self)
__str__
(self)
__getattr__
(self,attr)
from_filename
(cls,filename,metadata=None,**kw)
as_requirement
(self)
load_entry_point
(self,group,name)
get_entry_map
(self,group=None)
get_entry_info
(self,group,name)
insert_on
(self,path,loc=None)
check_version_conflict
(self)
has_version
(self)
clone
(self,**kw)
extras
(self)
issue_warning
(*args,**kw)
warn
parse_requirements
(strs)
scan_list
(ITEM,TERMINATOR,line,p,groups,item_name)
_sort_dists
(dists)
Requirement
specs
hashCmp
__hash
__init__
(self,project_name,specs,extras)
__str__
(self)
__eq__
(self,other)
__contains__
(self,item)
__hash__
(self)
__repr__
(self)
parse
(s,replacement=True)
state_machine
_override_setuptools
(req)
_get_mro
(cls)
cls
(cls,object)
_find_adapter
(registry,ob)
ensure_directory
(path)
split_sections
(s)
_mkstemp
(*args,**kw)
mkstemp
_initialize
(g)
__requires__
working_set
entries
iter_entry_points
add_activation_listener
All occurrences
Please wait...
Page is in error, reload to recover