Home | Trees | Indices | Help |
|
---|
|
distutils.cmd.Command --+ | distutils.command.build_scripts.build_scripts --+ | BuildScripts
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
|
|
|||
re_script_first_line = re.compile(r'^
|
|||
Inherited from Inherited from |
|
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.
|
Set final values for all the options that this command supports. This is always called as late as possible, ie. after any option assignments from the command-line or from other commands have been done. Thus, this is the place to code option dependencies: if 'foo' depends on 'bar', then it is safe to set 'foo' from 'bar' as long as 'foo' still has the same value it was assigned in 'initialize_options()'. This method must be implemented by all command classes.
|
Handle the given scripts to work for later installation :param scripts: paths to scripts to hanlde :param adjust_first_line: if True, the first line will receive the actual python version to match the version of the this python interpreter :param suffix: if given, the suffix is assumed to be a suffix for all scripts. If scripts want to execfile each other, the name of the script needs adjustment to actually work, which is unknown to the script in advance. Hence we fix the string ourselves. The suffix is assumed to be appended to all input script files, revealing the original script basename if the suffix is removed. The latter one is searched for in the script. |
Set default values for all the options that this command supports. Note that these defaults may be overridden by other commands, by the setup script, by config files, or by the command-line. Thus, this is not the place to code dependencies between options; generally, 'initialize_options()' implementations are just a bunch of "self.foo = None" assignments. This method must be implemented by all command classes.
|
|
re_script_first_line
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue May 18 21:01:11 2010 | http://epydoc.sourceforge.net |