-
-
Notifications
You must be signed in to change notification settings - Fork 607
/
BUILD
61 lines (58 loc) · 2 KB
/
BUILD
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
python_library(
name = 'bin',
sources = ['goal_runner.py', 'pants_exe.py'],
dependencies = [
'3rdparty/python:setuptools',
'src/python/pants/backend/core/tasks:task',
'src/python/pants/backend/jvm/tasks:nailgun_task',
'src/python/pants/base:build_environment',
'src/python/pants/base:build_file',
'src/python/pants/base:build_file_address_mapper',
'src/python/pants/base:build_file_parser',
'src/python/pants/base:build_graph',
'src/python/pants/base:cmd_line_spec_parser',
'src/python/pants/base:config',
'src/python/pants/base:extension_loader',
'src/python/pants/base:workunit',
'src/python/pants/engine',
'src/python/pants/goal',
'src/python/pants/goal:context',
'src/python/pants/goal:initialize_reporting',
'src/python/pants/goal:run_tracker',
'src/python/pants/logging',
'src/python/pants/option',
'src/python/pants/reporting',
],
)
# This binary's entry_point is used by the pantsbuild.pants sdist to setup a binary for
# pip installers, ie: it is why this works to get `pants` on your PATH:
# $ pip install pantsbuild.pants
# $ pants
# NB: The platforms below are _only_ used when building a pex from this target. They are
# not used in the sdist generation.
python_binary(
name = 'pants',
entry_point = 'pants.bin.pants_exe:main',
# TODO(John Sirois): Nuke this - we don't publish pexes so we need not build cross-platform pexes.
platforms=[
'current',
'linux-x86_64',
'macosx-10.4-x86_64',
],
compatibility='CPython>=2.7,<3',
dependencies = [
':bin',
],
)
# This binary is for internal use only. It adds a dep on internal_backends not meant for
# publishing in the `pantsbuild.pants` sdist.
python_binary(
name = 'pants_local_binary',
entry_point = 'pants.bin.pants_exe:main',
dependencies = [
':bin',
'pants-plugins/src/python/internal_backend:plugins',
],
)