doc/relnotes: add #1000 and #1005 to the v3.6 release notes draft
[git-cola.git] / extras / build_helpers.py
blobedc341983c95d3a0f369d44815b5f9f782a59604
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
6 import os
7 import sys
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.
15 helpers = []
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