Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Public Attributes
distutils.command.build_scripts.build_scripts_2to3 Class Reference
Inheritance diagram for distutils.command.build_scripts.build_scripts_2to3:
Inheritance graph
[legend]
Collaboration diagram for distutils.command.build_scripts.build_scripts_2to3:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def copy_scripts
def initialize_options
def finalize_options
def get_source_files
def run
def run_2to3

Public Attributes

 build_dir
 scripts
 force
 executable
 outfiles

Static Public Attributes

string description = "\"build\" scripts (copy and fixup #! line)"
list user_options
list boolean_options = ['force']
 fixer_names = None
 options = None
 explicit = None

Detailed Description

Definition at line 155 of file build_scripts.py.


Member Function Documentation

Copy each script listed in 'self.scripts'; if it's marked as a
Python script in the Unix way (first line matches 'first_line_re',
ie. starts with "\#!" and contains "python"), then adjust the first
line to refer to the current Python interpreter as we copy.

Reimplemented from distutils.command.build_scripts.build_scripts.

Definition at line 157 of file build_scripts.py.

00157 
00158     def copy_scripts(self):
00159         outfiles, updated_files = build_scripts.copy_scripts(self)
00160         if not self.dry_run:
00161             self.run_2to3(updated_files)
00162         return outfiles, updated_files

Here is the call graph for this function:

Definition at line 37 of file build_scripts.py.

00037 
00038     def finalize_options(self):
00039         self.set_undefined_options('build',
00040                                    ('build_scripts', 'build_dir'),
00041                                    ('force', 'force'),
00042                                    ('executable', 'executable'))
00043         self.scripts = self.distribution.scripts

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 44 of file build_scripts.py.

00044 
00045     def get_source_files(self):
00046         return self.scripts

Definition at line 30 of file build_scripts.py.

00030 
00031     def initialize_options(self):
00032         self.build_dir = None
00033         self.scripts = None
00034         self.force = None
00035         self.executable = None
00036         self.outfiles = None

Definition at line 47 of file build_scripts.py.

00047 
00048     def run(self):
00049         if not self.scripts:
00050             return
00051         self.copy_scripts()
00052 

Here is the call graph for this function:

Here is the caller graph for this function:

def distutils.util.Mixin2to3.run_2to3 (   self,
  files 
) [inherited]

Definition at line 640 of file util.py.

00640 
00641     def run_2to3(self, files):
00642         return run_2to3(files, self.fixer_names, self.options, self.explicit)

Here is the caller graph for this function:


Member Data Documentation

Definition at line 27 of file build_scripts.py.

Definition at line 31 of file build_scripts.py.

string distutils.command.build_scripts.build_scripts.description = "\"build\" scripts (copy and fixup #! line)" [static, inherited]

Definition at line 19 of file build_scripts.py.

Definition at line 34 of file build_scripts.py.

distutils.util.Mixin2to3.explicit = None [static, inherited]

Definition at line 638 of file util.py.

distutils.util.Mixin2to3.fixer_names = None [static, inherited]

Definition at line 632 of file util.py.

Definition at line 33 of file build_scripts.py.

distutils.util.Mixin2to3.options = None [static, inherited]

Definition at line 635 of file util.py.

Definition at line 35 of file build_scripts.py.

Definition at line 32 of file build_scripts.py.

Initial value:
[
        ('build-dir=', 'd', "directory to \"build\" (copy) to"),
        ('force', 'f', "forcibly build everything (ignore file timestamps"),
        ('executable=', 'e', "specify final destination interpreter path"),
        ]

Definition at line 21 of file build_scripts.py.


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