![]() |
Qucs-S S-parameter Viewer & RF Synthesis Tools
|


Public Member Functions | |
| __init__ (self, source_dir, target_dir, add_launchers=True, dry_run=False, fileop=None) | |
| get_manifest (self, exename) | |
| get_script_filenames (self, name) | |
| dry_run (self) | |
| dry_run (self, value) | |
| make (self, specification, options=None) | |
| make_multiple (self, specifications, options=None) | |
Public Attributes | |
| source_dir | |
| target_dir | |
| add_launchers | |
| force | |
| clobber | |
| set_mode | |
| variants | |
| version_info | |
| variant_separator | |
Static Public Attributes | |
| script_template = SCRIPT_TEMPLATE | |
| executable = None | |
| manifest = _DEFAULT_MANIFEST | |
| str | variant_separator = '-' |
Protected Member Functions | |
| _get_alternate_executable (self, executable, options) | |
| _is_shell (self, executable) | |
| _fix_jython_executable (self, executable) | |
| _build_shebang (self, executable, post_interp) | |
| _get_shebang (self, encoding, post_interp=b'', options=None) | |
| _get_script_text (self, entry) | |
| _write_script (self, names, shebang, script_bytes, filenames, ext) | |
| _make_script (self, entry, filenames, options=None) | |
| _copy_script (self, script, filenames) | |
| _get_launcher (self, kind) | |
Protected Attributes | |
| _fileop | |
| _is_nt | |
A class to copy or create scripts from source scripts or callable specifications.
|
protected |
Build a shebang line. In the simple case (on Windows, or a shebang line
which is not too long or contains spaces) use a simple formulation for
the shebang. Otherwise, use /bin/sh as the executable, with a contrived
shebang which allows the script to run either under Python or sh, using
suitable quoting. Thanks to Harald Nordgren for his input.
See also: http://www.in-ulm.de/~mascheck/various/shebang/#length
https://hg.mozilla.org/mozilla-central/file/tip/mach
|
protected |
Determine if the specified executable is a script (contains a #! line)
| pip._vendor.distlib.scripts.ScriptMaker.make | ( | self, | |
| specification, | |||
options = None |
|||
| ) |
Make a script.
:param specification: The specification, which is either a valid export
entry specification (to make a script from a
callable) or a filename (to make a script by
copying from a source location).
:param options: A dictionary of options controlling script generation.
:return: A list of all absolute pathnames written to.
Reimplemented in pip._internal.operations.install.wheel.PipScriptMaker.
| pip._vendor.distlib.scripts.ScriptMaker.make_multiple | ( | self, | |
| specifications, | |||
options = None |
|||
| ) |
Take a list of specifications and make scripts from them, :param specifications: A list of specifications. :return: A list of all absolute pathnames written to,