File: compile.py

package info (click to toggle)
python-rcssmin 1%3A1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,172 kB
  • sloc: python: 2,264; ansic: 1,216; sh: 66; makefile: 19
file content (18 lines) | stat: -rw-r--r-- 357 bytes parent folder | download | duplicates (3)
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"))