Debian Codegraph @

lib/Debian/Debhelper/Sequence/python_virtualenv.pm

raw
1 #! /usr/bin/perl
2 # debhelper sequence for wrapping packages inside virtualenvs
3
4 # Copyright (c) Spotify AB 2013
5
6 # This file is part of dh-virtualenv.
7
8 # dh-virtualenv is free software: you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundation, either version 2 of the
11 # License, or (at your option) any later version.
12
13 # dh-virtualenv is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
17
18 # You should have received a copy of the GNU General Public License
19 # along with dh-virtualenv. If not, see
20 # <http://www.gnu.org/licenses/>.
21
22 use warnings;
23 use strict;
24 use Debian::Debhelper::Dh_Lib;
25
26 insert_before("dh_installinit", "dh_virtualenv");
27
28 # dh_auto_test can cause system python to run 'python setup.py test',
29 # which will break due missing dependencies.
30 remove_command("dh_auto_test");
31
32 # dh_auto_build causes system python to run 'python setup.py build'
33 # which is unnecessary as we will run that inside the virtualenv
34 # anyway
35 remove_command("dh_auto_build");
36
37 # Same for dh_auto_install and dh_auto_clean
38 remove_command("dh_auto_install");
39 remove_command("dh_auto_clean");
40 remove_command("dh_python2");
41 remove_command("dh_pycentral");
42 remove_command("dh_pysupport");
43
44 1