Skip to content

Commit

Permalink
python-utils-r1.eclass: Eliminate virtual/pypy
Browse files Browse the repository at this point in the history
Depend on dev-python/pypy directly, as that's the common package
with the new layout.

Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Dec 30, 2019
1 parent 6166905 commit 8f8b4af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions eclass/python-utils-r1.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -472,9 +472,9 @@ python_export() {
python*)
PYTHON_PKG_DEP="dev-lang/python:${impl#python}";;
pypy)
PYTHON_PKG_DEP='>=virtual/pypy-5:0=';;
PYTHON_PKG_DEP='>=dev-python/pypy-5:0=';;
pypy3)
PYTHON_PKG_DEP='>=virtual/pypy3-5:0=';;
PYTHON_PKG_DEP='>=dev-python/pypy3-5:0=';;
jython2.7)
PYTHON_PKG_DEP='dev-java/jython:2.7';;
*)
Expand Down
4 changes: 2 additions & 2 deletions eclass/tests/python-utils-r1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ if [[ -x /usr/bin/pypy ]]; then
test_var PYTHON_SITEDIR pypy "/usr/lib*/pypy2.7/site-packages"
test_var PYTHON_INCLUDEDIR pypy "/usr/lib*/pypy2.7/include"
fi
test_var PYTHON_PKG_DEP pypy '*virtual/pypy*:0='
test_var PYTHON_PKG_DEP pypy '*dev-python/pypy*:0='
test_var PYTHON_SCRIPTDIR pypy /usr/lib/python-exec/pypy

test_var EPYTHON pypy3 pypy3
Expand All @@ -118,7 +118,7 @@ if [[ -x /usr/bin/pypy3 ]]; then
test_var PYTHON_SITEDIR pypy3 "/usr/lib*/pypy3.?/site-packages"
test_var PYTHON_INCLUDEDIR pypy3 "/usr/lib*/pypy3.?/include"
fi
test_var PYTHON_PKG_DEP pypy3 '*virtual/pypy3*:0='
test_var PYTHON_PKG_DEP pypy3 '*dev-python/pypy3*:0='
test_var PYTHON_SCRIPTDIR pypy3 /usr/lib/python-exec/pypy3

test_is "python_is_python3 python2.7" 1
Expand Down

0 comments on commit 8f8b4af

Please sign in to comment.