"""distutils.command.install_scripts Implements the Distutils 'install_scripts' command, for installing Python scripts.""" # contributed by Bastian Kleineidam __revision__ = "$Id$" import os from distutils.core import Command from distutils import log from stat import ST_MODE class install_scripts(Command): description = "install scripts (Python or otherwise)" user_options = [ ('install-dir=', 'd', "directory to install scripts to"), ('build-dir=','b', "build directory (where to install from)"), ('force', 'f', "force installation (overwrite existing files)"), ('skip-build', None, "skip the build steps"), ] boolean_options = ['force', 'skip-build'] def initialize_options(self): self.install_dir = None self.force = 0 self.build_dir = None self.skip_build = None def finalize_options(self): self.set_undefined_options('build', ('build_scripts', 'build_dir')) self.set_undefined_options('install', ('install_scripts', 'install_dir'), ('force', 'force'), ('skip_build', 'skip_build'), ) def run(self): if not self.skip_build: self.run_command('build_scripts') self.outfiles = self.copy_tree(self.build_dir, self.install_dir) if os.name == 'posix': # Set the executable bits (owner, group, and world) on # all the scripts we just installed. for file in self.get_outputs(): if self.dry_run: log.info("changing mode of %s", file) else: mode = ((os.stat(file)[ST_MODE]) | 0o555) & 0o7777 log.info("changing mode of %s to %o", file, mode) os.chmod(file, mode) def get_inputs(self): return self.distribution.scripts or [] def get_outputs(self): return self.outfiles or [] c_pipe'>aspect_async_pipe Tcl is a high-level, general-purpose, interpreted, dynamic programming language. It was designed with the goal of being very simple but powerful.
summaryrefslogtreecommitdiffstats
path: root/unix
Commit message (Expand)AuthorAgeFilesLines
* merge to RCcore_8_5_10core_8_5_10_rcdgp2011-06-231-2/+2
|\
| * Merged from core-8-4-branch: Updated to platform 1.0.10. Added handling of th...andreask2011-06-221-2/+2
| |\
* | \ merge to RCdgp2011-06-211-2/+2
|\ \ \ | |/ /
| * | Backport tcltest 2.3.3 for release with Tcl 8.5.*dgp2011-06-211-2/+2
* | | Release candidate branch for Tcl 8.5.10.dgp2011-05-263-3/+3
|/ /
* | Bump to msgcat 1.4.4.dgp2011-05-251-2/+2
* | [Bug 2715421] fix backported from 8.6 to remove extra newline from POSTs.patthoyts2011-05-121-2/+2
* | fix USE_TCLALLOC so that it can be enabled without editing the Makefilemig2011-05-071-4/+1
|\ \ | |/
| * fix USE_TCLALLOC so that it can be enabled without editing the Makefilemig2011-05-071-4/+1
* | More isspace() callers.dgp2011-04-281-1/+1
* | minor comment fixjan.nijtmans2011-04-281-1/+1
|\ \ | |/
| * minor comment fixjan.nijtmans2011-04-281-1/+1
* | minor nits, taken over from TEA (tclconfig)jan.nijtmans2011-04-121-7/+5
* | restore exec perms on unix/ldAix, accidentally clearedmig2011-04-071-0/+0
* | * generic/tclExecute.c (TclCompEvalObj): earlier return if Tip280 gymnastics ...mig2011-04-071-0/+0
* | [3202030] Updated README files, repairing broken URLs and other rot.dgp2011-04-041-5/+0
|\ \ | |/
| * Updated README files, repairing broken URLs and other rot.dgp2011-04-041-5/+0
* | Fixed execute permission for unix/ldAix on this branch. core-8-4-branch and t...andreask2011-03-301-1/+1
* | fix genStubs.tcl in one place where it generated "void *" in stead of "VOID *"jan.nijtmans2011-03-251-24/+4
|\ \ | |/
| * Remove Tclp(Local|Gm)time_unix forwarders, the same can be done directlyjan.nijtmans2011-03-251-145/+136
| * SHLIB_LD_LIBS='${LIBS}' for OSF1-V*.jan.nijtmans2011-03-162-47/+50
* | [Bug #3216070] Loading extension libraries from embedded Tcl applications.jan.nijtmans2011-03-222-9/+21
|\ \
| * | bug-3216070bug_3216070jan.nijtmans2011-03-164-27/+27
|/ /
* | Make SHLIB_LD_LIBS='${LIBS}' the default and set to "" on per-platform necess...jan.nijtmans2011-03-162-66/+8
* | [Bug 3205320]: stack space detection defeated by inliningjan.nijtmans2011-03-102-6/+10
* | Fix [Bug 3166410]: "out of stack space" on AIXjan.nijtmans2011-03-071-0/+10
* | Now that we are no longer on CVS, the .cvsignore files serve no purposejan.nijtmans2011-03-072-12/+0
|\ \ | |/
| * Now that we are no longer on CVS, the .cvsignore files serve no purposejan.nijtmans2011-03-072-8/+0
* | Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-02