Package distutils :: Package command :: Module install_egg_info
[hide private]
[frames] | no frames]

Module install_egg_info

distutils.command.install_egg_info

Implements the Distutils 'install_egg_info' command, for installing a package's PKG-INFO metadata.

Classes [hide private]
install_egg_info
Install an .egg-info file for the package
Functions [hide private]
 
safe_name(name)
Convert an arbitrary string to a standard distribution name
 
safe_version(version)
Convert an arbitrary string to a standard version string
 
to_filename(name)
Convert a project or version name to its filename-escaped form

Imports: Command, log, dir_util, os, sys, re


Function Details [hide private]

safe_name(name)

 

Convert an arbitrary string to a standard distribution name

Any runs of non-alphanumeric/. characters are replaced with a single '-'.

safe_version(version)

 

Convert an arbitrary string to a standard version string

Spaces become dots, and all other non-alphanumeric characters become dashes, with runs of multiple dashes condensed to a single dash.

to_filename(name)

 

Convert a project or version name to its filename-escaped form

Any '-' characters are currently replaced with '_'.