summaryrefslogtreecommitdiff
path: root/pbr/d2to1/tests/testpackage/d2to1_testpackage/_setup_hooks.py
blob: 453d70798c5b51e3563c93a769eaa40fa124f7ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from distutils.command.build_py import build_py


def test_hook_1(config):
    print 'test_hook_1'


def test_hook_2(config):
    print 'test_hook_2'


class test_command(build_py):
    command_name = 'build_py'

    def run(self):
        print 'Running custom build_py command.'
        return build_py.run(self)


def test_pre_hook(cmdobj):
    print 'build_ext pre-hook'


def test_post_hook(cmdobj):
    print 'build_ext post-hook'