1 """build_helpers command for setup.py"""
2 # pylint: disable=attribute-defined-outside-init
3 # pylint: disable=import-error,no-name-in-module
4 from __future__
import absolute_import
, division
, unicode_literals
5 from distutils
.command
.build_scripts
import build_scripts
10 class build_helpers(build_scripts
):
12 description
= "fixup #! lines for private share/git-cola/bin scripts"
14 # Private share/git-cola/bin scripts that are visible to cola only.
17 def finalize_options(self
):
18 """Set variables to copy/edit files to build/helpers-x.y"""
19 build_scripts
.finalize_options(self
)
21 self
.build_dir
= os
.path
.join(
22 'build', 'helpers-%s.%s' % sys
.version_info
[:2])
24 self
.scripts
= self
.helpers