-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds py2-pippkgs to manage pip based python packages
- Loading branch information
1 parent
42b33d0
commit e9f1a8a
Showing
4 changed files
with
52 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
### RPM external py2-pippkgs-toolfile 1.0 | ||
Requires: py2-pippkgs | ||
BuildRequires: python | ||
%prep | ||
|
||
%build | ||
|
||
%install | ||
|
||
mkdir -p %{i}/etc/scram.d | ||
cat << \EOF_TOOLFILE >%{i}/etc/scram.d/py2-pippkgs.xml | ||
<tool name="py2-pippkgs" version="@TOOL_VERSION@"> | ||
<client> | ||
<environment name="PY2_PIPPKGS" default="@TOOL_ROOT@"/> | ||
</client> | ||
<runtime name="PYTHONPATH" value="$PY2_PIPPKGS/@PYTHON_LIB_SITE_PACKAGES@" type="path"/> | ||
</tool> | ||
EOF_TOOLFILE | ||
|
||
export PYTHON_LIB_SITE_PACKAGES | ||
|
||
## IMPORT scram-tools-post |
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,29 @@ | ||
### RPM external py2-pippkgs 1.0 | ||
## INITENV +PATH PYTHONPATH %{i}/$PYTHON_LIB_SITE_PACKAGES | ||
Source: none | ||
|
||
BuildRequires: py2-rootpy | ||
BuildRequires: py2-configparser | ||
BuildRequires: py2-entrypoints | ||
|
||
%prep | ||
|
||
%build | ||
|
||
%install | ||
mkdir -p %{i}/$PYTHON_LIB_SITE_PACKAGES | ||
for pkg in %builddirectpkgreqs ; do | ||
SOURCE=%{cmsroot}/%{cmsplatf}/${pkg}/$PYTHON_LIB_SITE_PACKAGES | ||
if [ -d $SOURCE ] ; then | ||
echo "Checking for duplicates ...." | ||
for f in $(ls $SOURCE) ; do | ||
if [ -e %{i}/$PYTHON_LIB_SITE_PACKAGES/$f ] ; then | ||
echo " Duplicate file found: $f" | ||
exit 1 | ||
fi | ||
done | ||
echo "Copying $SOURCE in %{pkgrel}" | ||
rsync -av $SOURCE/ %{i}/$PYTHON_LIB_SITE_PACKAGES/ | ||
fi | ||
done | ||
|
This file was deleted.
Oops, something went wrong.