diff options
author | Benda Xu <heroxbd@gentoo.org> | 2017-02-14 20:32:43 +0900 |
---|---|---|
committer | Benda Xu <heroxbd@gentoo.org> | 2017-02-14 20:32:59 +0900 |
commit | 7bcb0eb7500285331e1539812462d8155a2939b0 (patch) | |
tree | 0f953d637eec49ebb1dc3e0363a796929d7cb24b /sci-libs | |
parent | dev-ros/mavlink-gbp-release: Re-add missing dev-python/future dep for 2017.2.... (diff) | |
download | gentoo-7bcb0eb7500285331e1539812462d8155a2939b0.tar.gz gentoo-7bcb0eb7500285331e1539812462d8155a2939b0.tar.bz2 gentoo-7bcb0eb7500285331e1539812462d8155a2939b0.zip |
sci-libs/scikits_learn: sed to counter more bundled imports
e.g. from sklearn.externals import joblib
Package-Manager: portage-2.3.3
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/scikits_learn/scikits_learn-0.18.1.ebuild | 3 |
1 files changed, 2 insertions, 1 deletions
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 8f668c735b58..865735d2a028 100644 --- 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 |