diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-12-15 18:09:03 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-12-15 18:09:03 +0000 |
commit | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (patch) | |
tree | 4a67d50a439e9af63947e5f8b6ba3719af98b6c9 /dev-python/setuptools | |
parent | b284a3168fa91a038925d2ecf5e4791011ea5e7d (diff) |
gentoo resync : 15.12.2019
Diffstat (limited to 'dev-python/setuptools')
-rw-r--r-- | dev-python/setuptools/Manifest | 13 | ||||
-rw-r--r-- | dev-python/setuptools/files/setuptools-42.0.0-imp-fix.patch | 51 | ||||
-rw-r--r-- | dev-python/setuptools/setuptools-40.6.3.ebuild | 1 | ||||
-rw-r--r-- | dev-python/setuptools/setuptools-41.5.1.ebuild | 1 | ||||
-rw-r--r-- | dev-python/setuptools/setuptools-42.0.0.ebuild | 90 | ||||
-rw-r--r-- | dev-python/setuptools/setuptools-42.0.1.ebuild | 90 | ||||
-rw-r--r-- | dev-python/setuptools/setuptools-42.0.2.ebuild | 90 | ||||
-rw-r--r-- | dev-python/setuptools/setuptools-9999.ebuild | 1 |
8 files changed, 334 insertions, 3 deletions
diff --git a/dev-python/setuptools/Manifest b/dev-python/setuptools/Manifest index 784b7e2b6d04..3a877f175302 100644 --- a/dev-python/setuptools/Manifest +++ b/dev-python/setuptools/Manifest @@ -1,6 +1,13 @@ +AUX setuptools-42.0.0-imp-fix.patch 1839 BLAKE2B a11f8fe053a4b0ad8d326be339ba9cc95e3b90441b8fdeb4ad589d8e8248abf63a11f97ff1917aea73d3f3daf054d9fa831e805ad6823f31d474e25d67e15eb9 SHA512 c93a5b24f0169ab64ba3c80aa9c64a70609d89c776ee491de3088dc6dc7149d709836f79affde03aa58e2065e014318182a2359bae753fbb47c98d05fa9bcab3 DIST setuptools-40.6.3.zip 839328 BLAKE2B ddc87213439ce2ad96ba54218bd5b3e41a7c31d670bddb9e4ea058b8ee7dffbe6fcb0e5fd24baf3fb38f5e824fde36aa8dc1e09d7ac37f9375ee351406389cd6 SHA512 6c628b8fc67645bca96ddcd016ec9a685e91690bf98dff077e842cfbd0d8d24de76ac51b3ff238d31551a48819d8f694fee6e9bb422ca954e54c22b4bda0038c DIST setuptools-41.5.1.zip 851097 BLAKE2B 2411db77cffb24190c1510c7fab623ae0fb2a248994eae01e1a79427d35d8bf6a2f065de0d95dc11105df0bb42962a57c914486b48dc91115ec32e4dbcbc059d SHA512 eb6e944c80448873f8970477aaf474e75879e2b81b91fdc7a308670fed231d52880c3be3452e7ed3f094f20d4afe54b1db24ec4d98845ed47ee5e71dbf66261d -EBUILD setuptools-40.6.3.ebuild 2062 BLAKE2B 2a438f56c0ba34c5434b464721d93b2e19358f32d4e11b02184b32cc3888ccb372825e5a85de32317654b7fe1e011d70ce9601091b01a6a843ee078eba832992 SHA512 086fd3a1bf75826de20f0feb448f9d42c960ceb3ebc6abc9aed73d09c235547b671fc69eecfc2dedebed257f8c4d10ea90f57a52483ce23c3270931614e39343 -EBUILD setuptools-41.5.1.ebuild 2591 BLAKE2B e48a3837c1e1a12004e8a49f3c0d9de92d6264c07e0ceaeb0a8e6d5cc9f0e38252759191fa168d86149ca997b6c814cbdafea4fcc6cb8564ca114224ad29ca3d SHA512 5dd491de4214be46f1fe9da214a158618c3582dbf117e3bbf88cb46a6ae09a674073929709beec92a88556397c6e05147461445c529b88fa2db447653a54aa9c -EBUILD setuptools-9999.ebuild 2052 BLAKE2B b04dd89a6902692fa11323e0fcb4223f2aaf1adeec9b8c6254d7e559bfb61e1ff0d5d3014b03d538233799a01911210a86fd0c3379ed7f2a4b53b76ab16b9d86 SHA512 05b79921883851b4536505409bc9389c2ad6bdcf17d5e840c8b49fe625aaf3b662be8c108211f8ad478cf76679b130641869f812a89914a1d2a32aaeb3861e05 +DIST setuptools-42.0.0.zip 852125 BLAKE2B b3cbba2eb97f7d6d0bb1a1d582c927680ada8d4589c4a196886f95cddd5b8c8b14fb5f0a2397ab7bcdc4ddd5fe6d4eddfab53bf9f43e0781a666f3d88efb8117 SHA512 d430605f8da3820b8d902d339b63bc382b9ec1bb0187385f792226bdfa8c191634df69881e1c43ffa8900599307d0ba202cfcb2d30df12d061f8220b9eae854a +DIST setuptools-42.0.1.zip 852264 BLAKE2B fac352a9d87245655f8183a8037552d454441ca5d18be60986d3d7883472a8be6af83614cb73896b76a251eadb09c1a67db9789ddbc5beb1dd9c3e1ddadd671a SHA512 d8eea952dc3cd925ddf3aaf059e9042dcb2684fd841446d92f309fcf8ad1869a380784d137006ca1b46ee539b4e1867e5b61eae80553295897df702966447232 +DIST setuptools-42.0.2.zip 858444 BLAKE2B 2b77dbeeb9a3b4138810a96fe7ac0a7800717b4b68d6e9db2d146ca176127d5bfd5e4ef07adfa98758f8c4d05396152ca08e1707caf3d91703c7b268bd291f28 SHA512 ab623fd69b92111d3ab19a3ad9de9c07b4316f4130f3db4068a436d3c13c971d97506f7307c9f64d9cc9ca24a5f3800b68748455e70418d0c0cd240c93ebae35 +EBUILD setuptools-40.6.3.ebuild 2090 BLAKE2B 3d5b2b7f6793664885627b739f456aca0b5903fd9dc4af6604b2e3d9dbb40aab227c5f1619a47aec82759b9e0aa60214bf2ce27a4bdb8ff3631f24cd81a694b9 SHA512 ac07fdd5b84a305f16c1105ecce8288ab69c8c7032538cbf8bfec41ae3c4eaa7ef52706d7068d1135bc3e73b9be8d2a010bc9ac8397ebd4cb20921c7c9da290b +EBUILD setuptools-41.5.1.ebuild 2619 BLAKE2B 684e57f73715d975d9152a214b6b896f001be4274448ce8618abe4a0cb29f432dbd3b8add384a1a7419dfecd67c295cd0f6199abc6efc3439c622ece4a485757 SHA512 0f0a9a8b1e7faf816d51121103a65b2e9f20676e2a3417cab29e68c0c0557d3ec31244e771b9bb7f454e4d94539908af7a76e1b1f09c86ec6b0c9767263cb91d +EBUILD setuptools-42.0.0.ebuild 2767 BLAKE2B f04ab6f1810e19600eaceb55a991652a4fac4020a56d0ad1f4d7d092a09c59cff00034cab007afdd7774b74b2db10932ff8c3d36683f4cc81ef9b1f2f026af80 SHA512 28aa998f85729d19569161fadfd56a4a80b55bd8229bb0b2ead0ac7eef6735bd7a83e9241dd379ac5d322db3243b76ee80a5f1380eb2bb99889448cd6193818c +EBUILD setuptools-42.0.1.ebuild 2767 BLAKE2B da3518f4d491659e511749dabc8247c5271a3076054a6bfb622ffb68168daae439b702c298b6dac92132ec0a9c51e3ecdcd3d87ddc5720421330245d72c12677 SHA512 4ab7c7ba69b5b8fdcbb6e717c6ba470d31994b0baa6634be70291c13c7260f9c586e475caf3dcfda0ac671f0769ed7c65c325fcbd49833f6069dacfcef88c1eb +EBUILD setuptools-42.0.2.ebuild 2767 BLAKE2B 2a57c2994d54eec7b5f36b7ffb1f32a832cfc9c6549ac44d6a8c8be3a56ea2802de7c850ffe7f7d34f93d5ee7f00c9acf1a99281e1f20b627895c2c792dee93f SHA512 cb7de930f97de13a666097963ca39e342716e40d4e186b4a4dce40d37451dc2b64637304f812ba20d04ac3da4046beb27b080f5b8bb30964ee9afdb2be3265d9 +EBUILD setuptools-9999.ebuild 2080 BLAKE2B 173232a16d3d5fe048b479b021145045960224c4fff9ccafc84e9c7747c4d32cc6f7b1ebadcf399bf52a75db5614fcee32f6c30f26c1c9f6842b422be094bb07 SHA512 e64c7bc081d53057788661659218d82a788c949668bf95e6d4606587da5ab629560a667b39b696dd59f57dfc0906b6dfacd8c8bc5fb483f4b9d8c71a46235acd MISC metadata.xml 380 BLAKE2B e6c532ce30c0def7dde2f2ca91e1663f290954f1f099fc837247540c31979a215be5550bc42d4d841f62d3a81554ae5377c148ec34dc2e92bbca3daaa1021fb1 SHA512 70bfa11a90dc1bae499e235e01c05ff1b0ed2960062fcef46ed07095b59309c4a0c3adcd47f7b0131ff1035c8e77c5bdf75975ac1eaccaa1a9fbd06a3f868f94 diff --git a/dev-python/setuptools/files/setuptools-42.0.0-imp-fix.patch b/dev-python/setuptools/files/setuptools-42.0.0-imp-fix.patch new file mode 100644 index 000000000000..5c96016c92c3 --- /dev/null +++ b/dev-python/setuptools/files/setuptools-42.0.0-imp-fix.patch @@ -0,0 +1,51 @@ +From bbf825eee764cae0bc44077ccc957a733d53d095 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= + <mimi1vx@users.noreply.github.com> +Date: Fri, 15 Nov 2019 08:52:35 +0100 +Subject: [PATCH] Fix _imp module behaviour if is defined paths in find_spec + call + +fixes #1896 +--- + setuptools/_imp.py | 15 ++++++++++++--- + 1 file changed, 12 insertions(+), 3 deletions(-) + +diff --git a/setuptools/_imp.py b/setuptools/_imp.py +index a3cce9b28..6ccec5799 100644 +--- a/setuptools/_imp.py ++++ b/setuptools/_imp.py +@@ -19,7 +19,10 @@ + + def find_module(module, paths=None): + """Just like 'imp.find_module()', but with package support""" +- spec = importlib.util.find_spec(module, paths) ++ if isinstance(paths, list): ++ spec = importlib.machinery.PathFinder().find_spec(module, paths) ++ else: ++ spec = importlib.util.find_spec(module, paths) + if spec is None: + raise ImportError("Can't find %s" % module) + if not spec.has_location and hasattr(spec, 'submodule_search_locations'): +@@ -60,14 +63,20 @@ def find_module(module, paths=None): + + + def get_frozen_object(module, paths=None): +- spec = importlib.util.find_spec(module, paths) ++ if isinstance(paths, list): ++ spec = importlib.machinery.PathFinder().find_spec(module, paths) ++ else: ++ spec = importlib.util.find_spec(module, paths) + if not spec: + raise ImportError("Can't find %s" % module) + return spec.loader.get_code(module) + + + def get_module(module, paths, info): +- spec = importlib.util.find_spec(module, paths) ++ if isinstance(paths, list): ++ spec = importlib.machinery.PathFinder().find_spec(module, paths) ++ else: ++ spec = importlib.util.find_spec(module, paths) + if not spec: + raise ImportError("Can't find %s" % module) + return module_from_spec(spec) diff --git a/dev-python/setuptools/setuptools-40.6.3.ebuild b/dev-python/setuptools/setuptools-40.6.3.ebuild index d5d482efd58e..a21883a89f89 100644 --- a/dev-python/setuptools/setuptools-40.6.3.ebuild +++ b/dev-python/setuptools/setuptools-40.6.3.ebuild @@ -2,6 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=6 +DISTUTILS_USE_SETUPTOOLS=no PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy{,3} ) PYTHON_REQ_USE="xml(+)" diff --git a/dev-python/setuptools/setuptools-41.5.1.ebuild b/dev-python/setuptools/setuptools-41.5.1.ebuild index ff4a7aa54630..a7b9022b6a0c 100644 --- a/dev-python/setuptools/setuptools-41.5.1.ebuild +++ b/dev-python/setuptools/setuptools-41.5.1.ebuild @@ -2,6 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 +DISTUTILS_USE_SETUPTOOLS=no PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy{,3} ) PYTHON_REQ_USE="xml(+)" diff --git a/dev-python/setuptools/setuptools-42.0.0.ebuild b/dev-python/setuptools/setuptools-42.0.0.ebuild new file mode 100644 index 000000000000..8c33401e75bd --- /dev/null +++ b/dev-python/setuptools/setuptools-42.0.0.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +DISTUTILS_USE_SETUPTOOLS=no +PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy{,3} ) +PYTHON_REQ_USE="xml(+)" + +inherit distutils-r1 + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="https://github.com/pypa/setuptools.git" + inherit git-r3 +else + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +fi + +DESCRIPTION="Collection of extensions to Distutils" +HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/" + +LICENSE="MIT" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +# Temporary hack to avoid py38 keywording hell. Please remove when +# the test deps all have py38. Also setuptools' test pass with py38, +# so you need to hack them all in locally before bumping and test. +TEST_USEDEP=$(python_gen_usedep python2_7 python3_{5,6,7} pypy{,3}) +BDEPEND=" + app-arch/unzip + test? ( + dev-python/mock[${TEST_USEDEP}] + dev-python/pip[${TEST_USEDEP}] + >=dev-python/pytest-3.7.0[${TEST_USEDEP}] + dev-python/pytest-fixture-config[${TEST_USEDEP}] + dev-python/pytest-virtualenv[${TEST_USEDEP}] + dev-python/wheel[${TEST_USEDEP}] + virtual/python-futures[${PYTHON_USEDEP}] + ) +" +PDEPEND=" + >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]" + +# Force in-source build because build system modifies sources. +DISTUTILS_IN_SOURCE_BUILD=1 + +DOCS=( {CHANGES,README}.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} ) + +PATCHES=( + # fix regression introduced by reinventing deprecated 'imp' + # https://github.com/pypa/setuptools/pull/1905 + "${FILESDIR}"/setuptools-42.0.0-imp-fix.patch +) + +python_prepare_all() { + if [[ ${PV} == "9999" ]]; then + python_setup + ${EPYTHON} bootstrap.py || die + fi + + # disable tests requiring a network connection + rm setuptools/tests/test_packageindex.py || die + + # don't run integration tests + rm setuptools/tests/test_integration.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + if [[ ${EPYTHON} == python3.8 ]]; then + if [[ ${PV} != 42.0.0 ]]; then + eerror "Please disable py38 hacks and test locally, then update this." + die "Python 3.8 support untested for ${PV}" + fi + einfo "Skipping testing on ${EPYTHON} due to unkeyworded deps" + return + fi + + # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg + # It tries to sandbox the test in a tempdir + HOME="${PWD}" pytest -vv ${PN} || die "Tests failed under ${EPYTHON}" +} + +python_install() { + export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1 + distutils-r1_python_install +} diff --git a/dev-python/setuptools/setuptools-42.0.1.ebuild b/dev-python/setuptools/setuptools-42.0.1.ebuild new file mode 100644 index 000000000000..58369bab16cb --- /dev/null +++ b/dev-python/setuptools/setuptools-42.0.1.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +DISTUTILS_USE_SETUPTOOLS=no +PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy{,3} ) +PYTHON_REQ_USE="xml(+)" + +inherit distutils-r1 + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="https://github.com/pypa/setuptools.git" + inherit git-r3 +else + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +fi + +DESCRIPTION="Collection of extensions to Distutils" +HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/" + +LICENSE="MIT" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +# Temporary hack to avoid py38 keywording hell. Please remove when +# the test deps all have py38. Also setuptools' test pass with py38, +# so you need to hack them all in locally before bumping and test. +TEST_USEDEP=$(python_gen_usedep python2_7 python3_{5,6,7} pypy{,3}) +BDEPEND=" + app-arch/unzip + test? ( + dev-python/mock[${TEST_USEDEP}] + dev-python/pip[${TEST_USEDEP}] + >=dev-python/pytest-3.7.0[${TEST_USEDEP}] + dev-python/pytest-fixture-config[${TEST_USEDEP}] + dev-python/pytest-virtualenv[${TEST_USEDEP}] + dev-python/wheel[${TEST_USEDEP}] + virtual/python-futures[${PYTHON_USEDEP}] + ) +" +PDEPEND=" + >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]" + +# Force in-source build because build system modifies sources. +DISTUTILS_IN_SOURCE_BUILD=1 + +DOCS=( {CHANGES,README}.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} ) + +PATCHES=( + # fix regression introduced by reinventing deprecated 'imp' + # https://github.com/pypa/setuptools/pull/1905 + "${FILESDIR}"/setuptools-42.0.0-imp-fix.patch +) + +python_prepare_all() { + if [[ ${PV} == "9999" ]]; then + python_setup + ${EPYTHON} bootstrap.py || die + fi + + # disable tests requiring a network connection + rm setuptools/tests/test_packageindex.py || die + + # don't run integration tests + rm setuptools/tests/test_integration.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + if [[ ${EPYTHON} == python3.8 ]]; then + if [[ ${PV} != 42.0.1 ]]; then + eerror "Please disable py38 hacks and test locally, then update this." + die "Python 3.8 support untested for ${PV}" + fi + einfo "Skipping testing on ${EPYTHON} due to unkeyworded deps" + return + fi + + # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg + # It tries to sandbox the test in a tempdir + HOME="${PWD}" pytest -vv ${PN} || die "Tests failed under ${EPYTHON}" +} + +python_install() { + export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1 + distutils-r1_python_install +} diff --git a/dev-python/setuptools/setuptools-42.0.2.ebuild b/dev-python/setuptools/setuptools-42.0.2.ebuild new file mode 100644 index 000000000000..98b924808219 --- /dev/null +++ b/dev-python/setuptools/setuptools-42.0.2.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +DISTUTILS_USE_SETUPTOOLS=no +PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy{,3} ) +PYTHON_REQ_USE="xml(+)" + +inherit distutils-r1 + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="https://github.com/pypa/setuptools.git" + inherit git-r3 +else + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +fi + +DESCRIPTION="Collection of extensions to Distutils" +HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/" + +LICENSE="MIT" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +# Temporary hack to avoid py38 keywording hell. Please remove when +# the test deps all have py38. Also setuptools' test pass with py38, +# so you need to hack them all in locally before bumping and test. +TEST_USEDEP=$(python_gen_usedep python2_7 python3_{5,6,7} pypy{,3}) +BDEPEND=" + app-arch/unzip + test? ( + dev-python/mock[${TEST_USEDEP}] + dev-python/pip[${TEST_USEDEP}] + >=dev-python/pytest-3.7.0[${TEST_USEDEP}] + dev-python/pytest-fixture-config[${TEST_USEDEP}] + dev-python/pytest-virtualenv[${TEST_USEDEP}] + dev-python/wheel[${TEST_USEDEP}] + virtual/python-futures[${PYTHON_USEDEP}] + ) +" +PDEPEND=" + >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]" + +# Force in-source build because build system modifies sources. +DISTUTILS_IN_SOURCE_BUILD=1 + +DOCS=( {CHANGES,README}.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} ) + +PATCHES=( + # fix regression introduced by reinventing deprecated 'imp' + # https://github.com/pypa/setuptools/pull/1905 + "${FILESDIR}"/setuptools-42.0.0-imp-fix.patch +) + +python_prepare_all() { + if [[ ${PV} == "9999" ]]; then + python_setup + ${EPYTHON} bootstrap.py || die + fi + + # disable tests requiring a network connection + rm setuptools/tests/test_packageindex.py || die + + # don't run integration tests + rm setuptools/tests/test_integration.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + if [[ ${EPYTHON} == python3.8 ]]; then + if [[ ${PV} != 42.0.2 ]]; then + eerror "Please disable py38 hacks and test locally, then update this." + die "Python 3.8 support untested for ${PV}" + fi + einfo "Skipping testing on ${EPYTHON} due to unkeyworded deps" + return + fi + + # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg + # It tries to sandbox the test in a tempdir + HOME="${PWD}" pytest -vv ${PN} || die "Tests failed under ${EPYTHON}" +} + +python_install() { + export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1 + distutils-r1_python_install +} diff --git a/dev-python/setuptools/setuptools-9999.ebuild b/dev-python/setuptools/setuptools-9999.ebuild index 8d522c4213f5..34b0627c0728 100644 --- a/dev-python/setuptools/setuptools-9999.ebuild +++ b/dev-python/setuptools/setuptools-9999.ebuild @@ -2,6 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 +DISTUTILS_USE_SETUPTOOLS=no PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy{,3} ) PYTHON_REQ_USE="xml(+)" |