mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +00:00

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.)
16 lines
444 B
Python
16 lines
444 B
Python
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)
|