Easy Install ------------ A tool for doing automatic download/extract/build of distutils-based Python packages. For detailed documentation, see the accompanying EasyInstall.txt file, or visit the `EasyInstall home page`__. __ https://setuptools.pypa.io/en/latest/deprecated/easy_install.html
Class |
|
A command spec for a #! header, specified as a list of arguments akin to those passed to Popen. |
Class | easy |
Manage a download/build/install process |
Class |
|
A .pth file with Distribution paths in it |
Class |
|
Undocumented |
Class |
|
Encapsulates behavior around writing entry point scripts for console and gui apps. |
Class |
|
Undocumented |
Class |
|
No class docstring; 1/1 class method documented |
Class |
|
No class docstring; 1/1 static method, 3/4 class methods documented |
Exception |
|
Warning for EasyInstall deprecations, bypassing suppression. |
Function | auto |
Undocumented |
Function | chmod |
Undocumented |
Function | current |
Undocumented |
Function | expand |
Yield sys.path directories that might contain "old-style" packages |
Function | extract |
Extract configuration data from a bdist_wininst .exe |
Function | get |
Get exe->egg path translations for a given .exe file |
Function | get |
Return a list of 'site' dirs |
Function | get |
Load the Windows launcher (executable) suitable for launching a script. |
Function | is |
Undocumented |
Function | is |
Is this string a valid Python script? |
Function | is |
Is this text, as a whole, a Python script? (as opposed to shell/bat/etc. |
Function | is |
Determine if the specified executable is a .sh (contains a #! line) |
Function | isascii |
Undocumented |
Function | load |
Undocumented |
Function | nt |
Quote a command line argument according to Windows parsing rules |
Function | only |
Exclude non-str values. Ref #3063. |
Function | rmtree |
Undocumented |
Function | update |
Fix any globally cached `dist_path` related data |
Variable | sys |
Undocumented |
Function | _collect |
Return zipimporter cache entry keys related to a given normalized path. |
Function | _first |
Return a regular expression based on first_line_re suitable for matching strings. |
Function | _one |
Undocumented |
Function | _pythonpath |
Undocumented |
Function | _remove |
Undocumented |
Function | _to |
Undocumented |
Function | _uncache |
Undocumented |
Function | _update |
Update zipimporter cache data for a given normalized path. |
Extract configuration data from a bdist_wininst .exe Returns a configparser.RawConfigParser, or None
Load the Windows launcher (executable) suitable for launching a script. `type` should be either 'cli' or 'gui' Returns the executable as a byte string.
Fix any globally cached `dist_path` related data `dist_path` should be a path of a newly installed egg distribution (zipped or unzipped). sys.path_importer_cache contains finder objects that have been cached when importing data from the original distribution. Any such finders need to be cleared since the replacement distribution might be packaged differently, e.g. a zipped egg distribution might get replaced with an unzipped egg folder or vice versa. Having the old finders cached may then cause Python to attempt loading modules from the replacement distribution using an incorrect loader. zipimport.zipimporter objects are Python loaders charged with importing data packaged inside zip archives. If stale loaders referencing the original distribution, are left behind, they can fail to load modules from the replacement distribution. E.g. if an old zipimport.zipimporter instance is used to load data from a new zipped egg archive, it may cause the operation to attempt to locate the requested data in the wrong location - one indicated by the original distribution's zip archive directory information. Such an operation may then fail outright, e.g. report having read a 'bad local file header', or even worse, it may fail silently & return invalid data. zipimport._zip_directory_cache contains cached zip archive directory information for all existing zipimport.zipimporter instances and all such instances connected to the same archive share the same cached directory information. If asked, and the underlying Python implementation allows it, we can fix all existing zipimport.zipimporter instances instead of having to track them down and remove them one by one, by updating their shared cached zip archive directory information. This, of course, assumes that the replacement distribution is packaged as a zipped egg. If not asked to fix existing zipimport.zipimporter instances, we still do our best to clear any remaining zipimport.zipimporter related cached data that might somehow later get used when attempting to load data from the new distribution and thus cause such load operations to fail. Note that when tracking down such remaining stale data, we can not catch every conceivable usage from here, and we clear only those that we know of and have found to cause problems if left alive. Any remaining caches should be updated by whomever is in charge of maintaining them, i.e. they should be ready to handle us replacing their zip archives with new distributions at runtime.
Return zipimporter cache entry keys related to a given normalized path. Alternative path spellings (e.g. those using different character case or those using alternative path separators) related to the same path are included. Any sub-path entries are included as well, i.e. those corresponding to zip archives embedded in other zip archives.
Update zipimporter cache data for a given normalized path. Any sub-path entries are processed as well, i.e. those corresponding to zip archives embedded in other zip archives. Given updater is a callable taking a cache entry key and the original entry (after already removing the entry from the cache), and expected to update the entry and possibly return a new one to be inserted in its place. Returning None indicates that the entry should not be replaced with a new one. If no updater is given, the cache entries are simply removed without any additional processing, the same as if the updater simply returned None.