File: compile.py

package info (click to toggle)
python-rcssmin 1%3A1.1.2-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,196 kB
  • sloc: python: 2,379; ansic: 1,216; sh: 110; makefile: 20
file content (18 lines) | stat: -rw-r--r-- 357 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# -*- encoding: ascii -*-
"""
Compile tasks
~~~~~~~~~~~~~

"""

import os as _os

import invoke as _invoke


@_invoke.task(default=True)
def compile(ctx):  # pylint: disable = redefined-builtin
    """ Compile the package """
    with ctx.shell.root_dir():
        ctx.run('pip install -e .',
                env=dict(_os.environ, SETUP_CEXT_REQUIRED="1"))