Skip to content

Commit

Permalink
Merge pull request #3111 from davidlange6/pythonUpdate170620
Browse files Browse the repository at this point in the history
Python package updates
  • Loading branch information
cmsbuild authored Jun 22, 2017
2 parents f03987e + 777b2ef commit 1f46154
Show file tree
Hide file tree
Showing 50 changed files with 131 additions and 60 deletions.
2 changes: 1 addition & 1 deletion cmssw-tool-conf.spec
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Requires: py2-pippkgs-toolfile
Requires: py2-pippkgs_depscipy-toolfile
Requires: dasgoclient
Requires: OpenBLAS-toolfile
Requires: py2-pip
Requires: py2-pip-toolfile

# Only for Linux platform.
%if %islinux
Expand Down
2 changes: 1 addition & 1 deletion py2-Jinja2.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-Jinja2 2.9.5
### RPM external py2-Jinja2 2.9.6
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
2 changes: 1 addition & 1 deletion py2-Keras.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-Keras 1.2.2
### RPM external py2-Keras 2.0.5
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
2 changes: 1 addition & 1 deletion py2-MarkupSafe.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-MarkupSafe 0.23
### RPM external py2-MarkupSafe 1.0
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
2 changes: 1 addition & 1 deletion py2-appdirs.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-appdirs 1.4.0
### RPM external py2-appdirs 1.4.3
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
2 changes: 1 addition & 1 deletion py2-bleach.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-bleach 1.5.0
### RPM external py2-bleach 2.0.0
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
2 changes: 1 addition & 1 deletion py2-bottleneck.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-bottleneck 1.2.0
### RPM external py2-bottleneck 1.2.1
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}

%define pip_name bottleneck
Expand Down
2 changes: 1 addition & 1 deletion py2-certifi.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-certifi 2017.1.23
### RPM external py2-certifi 2017.4.17
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
11 changes: 11 additions & 0 deletions py2-chardet.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### RPM external py2-chardet 3.0.4
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


%define pip_name chardet


## IMPORT build-with-pip

%define PipPostBuild \
perl -p -i -e "s|^#!.*python|#!/usr/bin/env python|" %{i}/bin/*
2 changes: 1 addition & 1 deletion py2-cjson.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-cjson 1.1.0
### RPM external py2-cjson 1.2.1
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
9 changes: 9 additions & 0 deletions py2-climate.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### RPM external py2-climate 0.4.6
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


%define pip_name climate


## IMPORT build-with-pip

2 changes: 1 addition & 1 deletion py2-entrypoints.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-entrypoints 0.2.2
### RPM external py2-entrypoints 0.2.3
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}

%define PipDownloadOptions --no-deps%%20--no-binary%%3D:none:
Expand Down
2 changes: 1 addition & 1 deletion py2-futures.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-futures 3.0.5
### RPM external py2-futures 3.1.1
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
9 changes: 9 additions & 0 deletions py2-idna.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### RPM external py2-idna 2.5
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


%define pip_name idna


## IMPORT build-with-pip

4 changes: 2 additions & 2 deletions py2-ipykernel.spec
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
### RPM external py2-ipykernel 4.5.2
### RPM external py2-ipykernel 4.6.1
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


%define pip_name ipykernel
Requires: py2-ordereddict py2-packaging py2-backports_abc py2-singledispatch py2-pyparsing py2-appdirs py2-pexpect py2-six py2-ptyprocess py2-traitlets py2-ipython_genutils py2-pyzmq py2-pathlib2 py2-tornado py2-jupyter_core py2-ipython py2-certifi py2-pickleshare py2-decorator py2-prompt_toolkit py2-jupyter_client py2-wcwidth py2-Pygments py2-setuptools py2-backportsssl_match_hostname py2-simplegeneric py2-scandir
Requires: py2-ordereddict py2-packaging py2-backports_abc py2-singledispatch py2-pyparsing py2-appdirs py2-pexpect py2-six py2-ptyprocess py2-traitlets py2-ipython_genutils py2-pyzmq py2-pathlib2 py2-tornado py2-jupyter_core py2-ipython py2-certifi py2-pickleshare py2-decorator py2-prompt_toolkit py2-jupyter_client py2-wcwidth py2-Pygments py2-setuptools py2-backportsssl_match_hostname py2-simplegeneric py2-scandir py2-enum34 py2-shutil_get_terminal_size py2-python-dateutil

## IMPORT build-with-pip

2 changes: 1 addition & 1 deletion py2-ipython.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-ipython 5.2.0
### RPM external py2-ipython 5.3.0
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
2 changes: 1 addition & 1 deletion py2-ipython_genutils.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-ipython_genutils 0.1.0
### RPM external py2-ipython_genutils 0.2.0
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
2 changes: 1 addition & 1 deletion py2-jsonschema.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-jsonschema 2.5.1
### RPM external py2-jsonschema 2.6.0
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
4 changes: 2 additions & 2 deletions py2-jupyter_client.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-jupyter_client 4.4.0
### RPM external py2-jupyter_client 5.0.1
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand All @@ -7,5 +7,5 @@ Requires: py2-jupyter_core py2-six py2-traitlets py2-decorator py2-ipython_genut

## IMPORT build-with-pip
%define PipPostBuild \
perl -p -i -e "s|^#!.*python|#!/usr/bin/env python|" %{i}/bin/jupyter-kernelspec
perl -p -i -e "s|^#!.*python|#!/usr/bin/env python|" %{i}/bin/*

2 changes: 1 addition & 1 deletion py2-jupyter_console.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-jupyter_console 5.0.0
### RPM external py2-jupyter_console 5.1.0
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
2 changes: 1 addition & 1 deletion py2-jupyter_core.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-jupyter_core 4.2.1
### RPM external py2-jupyter_core 4.3.0
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
2 changes: 1 addition & 1 deletion py2-mistune.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-mistune 0.7.3
### RPM external py2-mistune 0.7.4
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
2 changes: 1 addition & 1 deletion py2-nbconvert.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-nbconvert 5.1.1
### RPM external py2-nbconvert 5.2.1
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
2 changes: 1 addition & 1 deletion py2-nbformat.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-nbformat 4.2.0
### RPM external py2-nbformat 4.3.0
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
2 changes: 1 addition & 1 deletion py2-numba.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-numba 0.32.0
### RPM external py2-numba 0.33.0
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
2 changes: 1 addition & 1 deletion py2-pandas.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-pandas 0.20.1
### RPM external py2-pandas 0.20.2
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}

%define pip_name pandas
Expand Down
2 changes: 1 addition & 1 deletion py2-pathlib2.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-pathlib2 2.2.1
### RPM external py2-pathlib2 2.3.0
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
2 changes: 1 addition & 1 deletion py2-pbr.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-pbr 1.10.0
### RPM external py2-pbr 3.0.1
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
24 changes: 24 additions & 0 deletions py2-pip-toolfile.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
### RPM external py2-pip-toolfile 1.0
Requires: py2-pip
%prep

%build

%install

mkdir -p %{i}/etc/scram.d
cat << \EOF_TOOLFILE >%{i}/etc/scram.d/py2-pip.xml
<tool name="py2-pip" version="@TOOL_VERSION@">
<info url="https://pypi.python.org/pypi/pip"/>
<client>
<environment name="PY2_PIP" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$PY2_PIP/lib"/>
<runtime name="PYTHONPATH" value="$PY2_PIP/lib/python@PYTHONV@/site-packages" type="path"/>
<runtime name="PATH" value="$PY2_PIP/bin" type="path"/>
</client>
</tool>
EOF_TOOLFILE

export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)

## IMPORT scram-tools-post
5 changes: 5 additions & 0 deletions py2-pippkgs.spec
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ BuildRequires: py2-click
BuildRequires: py2-jsonpickle
BuildRequires: py2-prwlock
BuildRequires: py2-virtualenv
BuildRequires: py2-climate
BuildRequires: py2-urllib3
BuildRequires: py2-chardet
BuildRequires: py2-idna

%prep

%build
Expand Down
2 changes: 1 addition & 1 deletion py2-prompt_toolkit.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-prompt_toolkit 1.0.10
### RPM external py2-prompt_toolkit 1.0.14
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
2 changes: 1 addition & 1 deletion py2-psutil.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-psutil 5.0.1
### RPM external py2-psutil 5.2.2
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
2 changes: 1 addition & 1 deletion py2-pyparsing.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-pyparsing 2.1.10
### RPM external py2-pyparsing 2.2.0
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
2 changes: 1 addition & 1 deletion py2-python-dateutil.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-python-dateutil 1.5
### RPM external py2-python-dateutil 2.6.0
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}

## IMPORT build-with-pip
2 changes: 1 addition & 1 deletion py2-pytz.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-pytz 2016.10
### RPM external py2-pytz 2017.2
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
2 changes: 1 addition & 1 deletion py2-qtconsole.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-qtconsole 4.2.1
### RPM external py2-qtconsole 4.3.0
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
3 changes: 2 additions & 1 deletion py2-requests.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
### RPM external py2-requests 2.13.0
### RPM external py2-requests 2.18.1
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}

Requires: py2-urllib3 py2-chardet py2-idna py2-certifi

%define pip_name requests

Expand Down
2 changes: 1 addition & 1 deletion py2-rootpy.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-rootpy 0.8.0
### RPM external py2-rootpy 0.9.0
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
2 changes: 1 addition & 1 deletion py2-scandir.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-scandir 1.4
### RPM external py2-scandir 1.5
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
2 changes: 1 addition & 1 deletion py2-schema.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-schema 0.6.5
### RPM external py2-schema 0.6.6
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
15 changes: 0 additions & 15 deletions py2-tables-fix-for-aarch64.patch

This file was deleted.

18 changes: 18 additions & 0 deletions py2-tables-fix-for-aarch64_v2.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
--- a/setup.py 2017-06-19 15:04:52.000000000 +0200
+++ b/setup.py 2017-06-19 15:05:52.000000000 +0200
@@ -32,13 +32,8 @@
from setuptools.command.build_ext import build_ext

# For guessing the capabilities of the CPU for C-Blosc
-try:
- import cpuinfo
- cpu_info = cpuinfo.get_cpu_info()
- cpu_flags = cpu_info['flags']
-except Exception as e:
- print('cpuinfo failed, assuming no CPU features:', e)
- cpu_flags = []
+# avoid guessing for CMS
+cpu_flags = []

# The name for the pkg-config utility
PKG_CONFIG = 'pkg-config'
4 changes: 2 additions & 2 deletions py2-tables.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### RPM external py2-tables 3.3.0
### RPM external py2-tables 3.4.2
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}
Patch0: py2-tables-fix-for-aarch64
Patch0: py2-tables-fix-for-aarch64_v2
%define pip_name tables
Requires: py2-numexpr py2-six py2-numpy hdf5 bz2lib

Expand Down
2 changes: 1 addition & 1 deletion py2-testpath.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-testpath 0.3
### RPM external py2-testpath 0.3.1
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}

%define PipDownloadOptions --no-deps%%20--no-binary%%3D:none:
Expand Down
2 changes: 1 addition & 1 deletion py2-theanets.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}

%define pip_name theanets
Requires: py2-numpy py2-Theano py2-downhill
Requires: py2-numpy py2-Theano py2-downhill py2-climate

## IMPORT build-with-pip

Expand Down
2 changes: 1 addition & 1 deletion py2-tqdm.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-tqdm 4.11.2
### RPM external py2-tqdm 4.14.0
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
2 changes: 1 addition & 1 deletion py2-traitlets.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-traitlets 4.3.1
### RPM external py2-traitlets 4.3.2
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
9 changes: 9 additions & 0 deletions py2-urllib3.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### RPM external py2-urllib3 1.21.1
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


%define pip_name urllib3


## IMPORT build-with-pip

2 changes: 1 addition & 1 deletion py2-webencodings.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-webencodings 0.5
### RPM external py2-webencodings 0.5.1
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}


Expand Down
2 changes: 1 addition & 1 deletion py2-xrootdpyfs.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external py2-xrootdpyfs 0.1.3
### RPM external py2-xrootdpyfs 0.1.4
## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}

Requires: xrootd
Expand Down

0 comments on commit 1f46154

Please sign in to comment.