forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lionel Vital
authored and
Chris Livingston
committed
Jan 30, 2018
1 parent
c8a954e
commit 9cd32a4
Showing
10 changed files
with
36 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,5 +30,4 @@ setuptools==30.0.0 | |
subprocess32==3.2.7 | ||
six>=1.9.0,<2 | ||
thrift>=0.9.1 | ||
tensorflow==1.4.0 | ||
wheel==0.29.0 |
2 changes: 1 addition & 1 deletion
2
examples/src/python/example/python_distribution/hello/main/BUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
examples/src/python/example/python_distribution/hello/main/main.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 10 additions & 8 deletions
18
examples/src/python/example/python_distribution/hello/superhello/BUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). | ||
# Copyright 2017 Pants project contributors (see CONTRIBUTORS.md). | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
# Like Hello world, but built with Pants. This time, with both C++ and Py sources | ||
# Like Hello world, but built with a python_distribution. | ||
# python_distribution allows you to use setup.py to depend on C/C++ extensions. | ||
|
||
# The BUILD file must be in the directory of the Python Distribution, and there must | ||
# only be a single BUILD file in a given directory. | ||
# There must be a single BUILD file and a setup.py in a given python_distribution. | ||
|
||
# All you need to indicate is a name and any dependencies. | ||
# You are expected to define source locations in setup.py. | ||
# There should be a one-to-one mapping for the name of the python_distribution | ||
# and the name of the python_distribution's directory. In this case, it's superhello. | ||
|
||
python_distribution( | ||
name='superhello', | ||
dependencies=[ | ||
'3rdparty/python:tensorflow' | ||
] | ||
name='superhello' | ||
) |
1 change: 0 additions & 1 deletion
1
examples/src/python/example/python_distribution/hello/superhello/c/super_greet.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
#include <Python.h> | ||
|
||
static PyObject * super_greet(PyObject *self, PyObject *args) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
src/python/pants/backend/python/targets/python_distribution.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters