git_remote_helpers / setup.pyon commit Merge git://ozlabs.org/~paulus/gitk (e86d0a3)
   1#!/usr/bin/env python
   2
   3"""Distutils build/install script for the git_remote_helpers package."""
   4
   5from distutils.core import setup
   6
   7# If building under Python3 we need to run 2to3 on the code, do this by
   8# trying to import distutils' 2to3 builder, which is only available in
   9# Python3.
  10try:
  11    from distutils.command.build_py import build_py_2to3 as build_py
  12except ImportError:
  13    # 2.x
  14    from distutils.command.build_py import build_py
  15
  16setup(
  17    name = 'git_remote_helpers',
  18    version = '0.1.0',
  19    description = 'Git remote helper program for non-git repositories',
  20    license = 'GPLv2',
  21    author = 'The Git Community',
  22    author_email = 'git@vger.kernel.org',
  23    url = 'http://www.git-scm.com/',
  24    package_dir = {'git_remote_helpers': ''},
  25    packages = ['git_remote_helpers', 'git_remote_helpers.git'],
  26    cmdclass = {'build_py': build_py},
  27)