mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +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.)
14 lines
349 B
Python
14 lines
349 B
Python
from distutils.cmd import install_misc
|
|
|
|
class install_data (install_misc):
|
|
|
|
description = "install data files"
|
|
|
|
def finalize_options (self):
|
|
self._install_dir_from('install_data')
|
|
|
|
def run (self):
|
|
self._copydata(self.distribution.data)
|
|
|
|
def get_outputs (self):
|
|
return self._outputdata(self.distribution.data)
|