mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Patch from Bastien Kleineidam:
adds the 'install_data' and 'install_scripts' commands; these two are trivial thanks to the 'install_misc' base class in cmd.py. (Minor tweaks and commentary by me; the code is untested so far.)
This commit is contained in:
parent
bb8c71d563
commit
b2e3bb3d6a
6 changed files with 68 additions and 1 deletions
16
Lib/distutils/command/install_scripts.py
Normal file
16
Lib/distutils/command/install_scripts.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
from distutils.cmd import install_misc
|
||||
|
||||
class install_scripts(install_misc):
|
||||
|
||||
description = "install scripts"
|
||||
# XXX needed?
|
||||
user_options = [('install-dir=', 'd', "directory to install to")]
|
||||
|
||||
def finalize_options (self):
|
||||
self._install_dir_from('install_scripts')
|
||||
|
||||
def run (self):
|
||||
self._copydata(self.distribution.scripts)
|
||||
|
||||
def get_outputs(self):
|
||||
return self._outputdata(self.distribution.scripts)
|
Loading…
Add table
Add a link
Reference in a new issue