class documentation

A command spec for a #! header, specified as a list of arguments akin to those passed to Popen.

Class Method best Choose the best CommandSpec class based on environmental conditions.
Class Method from_environment Undocumented
Class Method from_param Construct a CommandSpec from a parameter to build_scripts, which may be None.
Class Method from_string Construct a command spec from a simple string representing a command line parseable by shlex.split.
Method as_header Undocumented
Method install_options Undocumented
Class Variable split_args Undocumented
Instance Variable options Undocumented
Class Method _sys_executable Undocumented
Static Method _extract_options Extract any options from the first line of the script.
Static Method _render Undocumented
Static Method _strip_quotes Undocumented

Choose the best CommandSpec class based on environmental conditions.

@classmethod
def from_environment(cls): (source)

Undocumented

@classmethod
def from_param(cls, param): (source)

Construct a CommandSpec from a parameter to build_scripts, which may be None.

@classmethod
def from_string(cls, string): (source)

Construct a command spec from a simple string representing a command line parseable by shlex.split.

def as_header(self): (source)

Undocumented

def install_options(self, script_text): (source)

Undocumented

Undocumented

@classmethod
def _sys_executable(cls): (source)

Undocumented

@staticmethod
def _extract_options(orig_script): (source)

Extract any options from the first line of the script.

@staticmethod
def _render(items): (source)

Undocumented

@staticmethod
def _strip_quotes(item): (source)

Undocumented