projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
201f498
)
sci-libs/scikits_learn: sed to counter more bundled imports
author
Benda Xu
<heroxbd@gentoo.org>
Tue, 14 Feb 2017 11:32:43 +0000
(20:32 +0900)
committer
Benda Xu
<heroxbd@gentoo.org>
Tue, 14 Feb 2017 11:32:59 +0000
(20:32 +0900)
e.g. from sklearn.externals import joblib
Package-Manager: portage-2.3.3
sci-libs/scikits_learn/scikits_learn-0.18.1.ebuild
patch
|
blob
|
history
diff --git
a/sci-libs/scikits_learn/scikits_learn-0.18.1.ebuild
b/sci-libs/scikits_learn/scikits_learn-0.18.1.ebuild
index 8f668c735b589f23a061ee248a509f7e57692504..865735d2a028d08f8269e7738910055a7dd0abc7 100644
(file)
--- a/
sci-libs/scikits_learn/scikits_learn-0.18.1.ebuild
+++ b/
sci-libs/scikits_learn/scikits_learn-0.18.1.ebuild
@@
-59,7
+59,8
@@
python_prepare_all() {
rm -r sklearn/externals/joblib || die
sed -i -e '/joblib/d' sklearn/externals/setup.py || die
for f in sklearn/{*/,}*.py; do
- sed -r -e 's/from (sklearn|\.|)\.externals\.joblib/from joblib/' -i $f || die
+ sed -r -e '/^from/s/(sklearn|\.|)\.externals\.joblib/joblib/' \
+ -e 's/from (sklearn|\.|)\.externals import/import/' -i $f || die
done
rm sklearn/externals/funcsigs.py || die