OpenQuizz
Une application de gestion des contenus pédagogiques
easy_install Class Reference
Inheritance diagram for easy_install:
Collaboration diagram for easy_install:

Public Member Functions

def initialize_options (self)
 
def delete_blockers (self, blockers)
 
def finalize_options (self)
 
def expand_basedirs (self)
 
def expand_dirs (self)
 
def run (self, show_deprecation=True)
 
def pseudo_tempname (self)
 
def warn_deprecated_options (self)
 
def check_site_dir (self)
 
def cant_write_to_target (self)
 
def check_pth_processing (self)
 
def install_egg_scripts (self, dist)
 
def add_output (self, path)
 
def not_editable (self, spec)
 
def check_editable (self, spec)
 
def easy_install (self, spec, deps=False)
 
def install_item (self, spec, download, tmpdir, deps, install_needed=False)
 
def select_scheme (self, name)
 
def process_distribution (self, requirement, dist, deps=True, *info)
 
def should_unzip (self, dist)
 
def maybe_move (self, spec, dist_filename, setup_base)
 
def install_wrapper_scripts (self, dist)
 
def install_script (self, dist, script_name, script_text, dev_path=None)
 
def write_script (self, script_name, contents, mode="t", blockers=())
 
def install_eggs (self, spec, dist_filename, tmpdir)
 
def egg_distribution (self, egg_path)
 
def install_egg (self, egg_path, tmpdir)
 
def install_exe (self, dist_filename, tmpdir)
 
def exe_to_egg (self, dist_filename, egg_tmp)
 
def install_wheel (self, wheel_path, tmpdir)
 
def installation_report (self, req, dist, what="Installed")
 
def report_editable (self, spec, setup_script)
 
def run_setup (self, setup_script, setup_base, args)
 
def build_and_install (self, setup_script, setup_base)
 
def update_pth (self, dist)
 
def unpack_progress (self, src, dst)
 
def unpack_and_compile (self, egg_path, destination)
 
def byte_compile (self, to_compile)
 
def create_home_path (self)
 
- Public Member Functions inherited from Command
def __init__ (self, dist, **kw)
 
def ensure_string_list (self, option)
 
def reinitialize_command (self, command, reinit_subcommands=0, **kw)
 

Data Fields

 user
 
 zip_ok
 
 local_snapshots_ok
 
 exclude_scripts
 
 index_url
 
 find_links
 
 build_directory
 
 args
 
 optimize
 
 record
 
 upgrade
 
 always_copy
 
 multi_version
 
 editable
 
 no_deps
 
 allow_hosts
 
 root
 
 prefix
 
 no_report
 
 version
 
 install_purelib
 
 install_platlib
 
 install_headers
 
 install_lib
 
 install_scripts
 
 install_data
 
 install_base
 
 install_platbase
 
 install_userbase
 
 install_usersite
 
 no_find_links
 
 package_index
 
 pth_file
 
 always_copy_from
 
 site_dirs
 
 installed_projects
 
 verbose
 
 config_vars
 
 all_site_dirs
 
 shadow_path
 
 local_index
 
 outputs
 

Static Public Attributes

 description
 
 command_consumes_arguments
 
 user_options
 
 boolean_options
 
 negative_opt
 
 create_index
 
 INSTALL_SCHEMES
 
 posix
 
 install_dir
 
 script_dir
 
 DEFAULT_SCHEME
 
- Static Public Attributes inherited from Command
 command_consumes_arguments
 

Detailed Description

Manage a download/build/install process

Constructor & Destructor Documentation

◆ easy_install()

def easy_install (   self,
  spec,
  deps = False 
)

Member Function Documentation

◆ add_output()

def add_output (   self,
  path 
)

◆ build_and_install()

def build_and_install (   self,
  setup_script,
  setup_base 
)

◆ byte_compile()

def byte_compile (   self,
  to_compile 
)

◆ cant_write_to_target()

def cant_write_to_target (   self)

◆ check_editable()

def check_editable (   self,
  spec 
)

◆ check_pth_processing()

def check_pth_processing (   self)
Empirically verify whether .pth files are supported in inst. dir

◆ check_site_dir()

def check_site_dir (   self)
Verify that self.install_dir is .pth-capable dir, if needed

◆ create_home_path()

def create_home_path (   self)
Create directories under ~.

◆ delete_blockers()

def delete_blockers (   self,
  blockers 
)

◆ egg_distribution()

def egg_distribution (   self,
  egg_path 
)

◆ exe_to_egg()

def exe_to_egg (   self,
  dist_filename,
  egg_tmp 
)
Extract a bdist_wininst to the directories an egg would use

◆ expand_basedirs()

def expand_basedirs (   self)
Calls `os.path.expanduser` on install_base, install_platbase and
root.

◆ expand_dirs()

def expand_dirs (   self)
Calls `os.path.expanduser` on install dirs.

◆ finalize_options()

def finalize_options (   self)

Reimplemented in develop.

◆ initialize_options()

def initialize_options (   self)

Reimplemented in develop.

◆ install_egg()

def install_egg (   self,
  egg_path,
  tmpdir 
)

◆ install_egg_scripts()

def install_egg_scripts (   self,
  dist 
)
Write all the scripts for `dist`, unless scripts are excluded

Reimplemented in develop.

◆ install_eggs()

def install_eggs (   self,
  spec,
  dist_filename,
  tmpdir 
)

◆ install_exe()

def install_exe (   self,
  dist_filename,
  tmpdir 
)

◆ install_item()

def install_item (   self,
  spec,
  download,
  tmpdir,
  deps,
  install_needed = False 
)

◆ install_script()

def install_script (   self,
  dist,
  script_name,
  script_text,
  dev_path = None 
)
Generate a legacy script wrapper and install it

◆ install_wheel()

def install_wheel (   self,
  wheel_path,
  tmpdir 
)

◆ install_wrapper_scripts()

def install_wrapper_scripts (   self,
  dist 
)

Reimplemented in develop.

◆ installation_report()

def installation_report (   self,
  req,
  dist,
  what = "Installed" 
)
Helpful installation message for display to package users

◆ maybe_move()

def maybe_move (   self,
  spec,
  dist_filename,
  setup_base 
)

◆ not_editable()

def not_editable (   self,
  spec 
)

◆ process_distribution()

def process_distribution (   self,
  requirement,
  dist,
  deps = True,
info 
)

◆ pseudo_tempname()

def pseudo_tempname (   self)
Return a pseudo-tempname base in the install directory.
This code is intentionally naive; if a malicious party can write to
the target directory you're already in deep doodoo.

◆ report_editable()

def report_editable (   self,
  spec,
  setup_script 
)

◆ run()

def run (   self,
  show_deprecation = True 
)

◆ run_setup()

def run_setup (   self,
  setup_script,
  setup_base,
  args 
)

◆ select_scheme()

def select_scheme (   self,
  name 
)
Sets the install directories by applying the install schemes.

◆ should_unzip()

def should_unzip (   self,
  dist 
)

◆ unpack_and_compile()

def unpack_and_compile (   self,
  egg_path,
  destination 
)

◆ unpack_progress()

def unpack_progress (   self,
  src,
  dst 
)

◆ update_pth()

def update_pth (   self,
  dist 
)

◆ warn_deprecated_options()

def warn_deprecated_options (   self)

◆ write_script()

def write_script (   self,
  script_name,
  contents,
  mode = "t",
  blockers = () 
)
Write an executable file to the scripts directory

Field Documentation

◆ all_site_dirs

all_site_dirs

◆ allow_hosts

allow_hosts

◆ always_copy

always_copy

◆ always_copy_from

always_copy_from

◆ args

args

◆ boolean_options

boolean_options
static

◆ build_directory

build_directory

◆ command_consumes_arguments

command_consumes_arguments
static

◆ config_vars

config_vars

◆ create_index

create_index
static

◆ DEFAULT_SCHEME

DEFAULT_SCHEME
static

◆ description

description
static
Manage a download/build/install process

◆ editable

editable

◆ exclude_scripts

exclude_scripts

◆ find_links

find_links

◆ index_url

index_url

◆ install_base

install_base

◆ install_data

install_data

◆ install_dir

install_dir
static

◆ install_headers

install_headers

◆ install_lib

install_lib

◆ install_platbase

install_platbase

◆ install_platlib

install_platlib

◆ install_purelib

install_purelib

◆ INSTALL_SCHEMES

INSTALL_SCHEMES
static

◆ install_scripts

install_scripts

◆ install_userbase

install_userbase

◆ install_usersite

install_usersite

◆ installed_projects

installed_projects

◆ local_index

local_index

◆ local_snapshots_ok

local_snapshots_ok

◆ multi_version

multi_version

◆ negative_opt

negative_opt
static

◆ no_deps

no_deps

◆ no_find_links

no_find_links

◆ no_report

no_report

◆ optimize

optimize

◆ outputs

outputs

◆ package_index

package_index

◆ posix

posix
static

◆ prefix

prefix

◆ pth_file

pth_file

◆ record

record

◆ root

root

◆ script_dir

script_dir
static

◆ shadow_path

shadow_path

◆ site_dirs

site_dirs

◆ upgrade

upgrade

◆ user

user

◆ user_options

user_options
static

◆ verbose

verbose

◆ version

version

◆ zip_ok

zip_ok

The documentation for this class was generated from the following file: