Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2824 from davidlange6/tensorflow
add tensor flow package
- Loading branch information
Showing
11 changed files
with
73 additions
and
40 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
### RPM external py2-funcsigs 1.0.2 | ||
## INITENV +PATH PYTHONPATH %{i}/$PYTHON_LIB_SITE_PACKAGES | ||
|
||
|
||
%define pip_name funcsigs | ||
|
||
|
||
## IMPORT build-with-pip | ||
|
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
### RPM external py2-mock 2.0.0 | ||
## INITENV +PATH PYTHONPATH %{i}/$PYTHON_LIB_SITE_PACKAGES | ||
|
||
|
||
%define pip_name mock | ||
Requires: py2-six py2-funcsigs py2-pbr | ||
## IMPORT build-with-pip | ||
|
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
### RPM external py2-pbr 1.10.0 | ||
## INITENV +PATH PYTHONPATH %{i}/$PYTHON_LIB_SITE_PACKAGES | ||
|
||
|
||
%define pip_name pbr | ||
|
||
|
||
## IMPORT build-with-pip | ||
|
||
%define PipPostBuild \ | ||
perl -p -i -e "s|^#!.*python|#!/usr/bin/env python|" %{i}/bin/pbr |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
### RPM external py2-protobuf 3.2.0 | ||
## INITENV +PATH PYTHONPATH %{i}/$PYTHON_LIB_SITE_PACKAGES | ||
|
||
|
||
%define pip_name protobuf | ||
Requires: py2-six py2-packaging py2-setuptools py2-pyparsing py2-appdirs | ||
## IMPORT build-with-pip | ||
|
This file was deleted.
Oops, something went wrong.
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,16 +1,9 @@ | ||
### RPM external py2-pyparsing 2.0.3 | ||
### RPM external py2-pyparsing 2.1.10 | ||
## INITENV +PATH PYTHONPATH %{i}/$PYTHON_LIB_SITE_PACKAGES | ||
%define my_name %(echo %n | cut -f2 -d-) | ||
Source: http://downloads.sourceforge.net/project/%{my_name}/%{my_name}/%{my_name}-%{realversion}/%{my_name}-%{realversion}.zip | ||
Requires: python | ||
BuildRequires: py2-setuptools | ||
|
||
%prep | ||
%setup -n %{my_name}-%{realversion} | ||
|
||
%build | ||
python setup.py build | ||
%define pip_name pyparsing | ||
|
||
|
||
## IMPORT build-with-pip | ||
|
||
%install | ||
python setup.py install --skip-build --prefix=%{i} | ||
find %{i}/${PYTHON_LIB_SITE_PACKAGES} -name '*.egg-info' -type d -print0 | xargs -0 rm -rf |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
### RPM external py2-tensorflow 0.12.1 | ||
## INITENV +PATH PYTHONPATH %{i}/$PYTHON_LIB_SITE_PACKAGES | ||
|
||
# nothing on pypi is ok for tensorflow at this point | ||
%define tensorflowSource https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.1-cp27-none-linux_x86_64.whl | ||
%define PipDownloadOptions ALTSRC%%20%tensorflowSource%%20--no-deps%%20--no-binary%%3D:none: | ||
%define pip_name tensorflow | ||
Requires: py2-funcsigs py2-protobuf py2-pbr py2-six py2-packaging py2-appdirs py2-setuptools py2-pyparsing py2-numpy py2-mock | ||
## IMPORT build-with-pip | ||
|
||
%define PipPostBuild \ | ||
perl -p -i -e "s|^#!.*python|#!/usr/bin/env python|" %{i}/bin/tensorboard | ||
|