diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-02-10 14:04:41 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-02-12 20:00:41 +0100 |
commit | c1405fe40bb8125c2f3be9cef107b1a06b8ae1fd (patch) | |
tree | d46d0c085e62d9ff96a5aed62b1d4b7bfc080b10 /eclass | |
parent | profiles: Unmask more sys-libs/compiler-rt-sanitizer flags on >=16 (diff) | |
download | gentoo-c1405fe40bb8125c2f3be9cef107b1a06b8ae1fd.tar.gz gentoo-c1405fe40bb8125c2f3be9cef107b1a06b8ae1fd.tar.bz2 gentoo-c1405fe40bb8125c2f3be9cef107b1a06b8ae1fd.zip |
pypi.eclass: Use pypi_sdist_url to generate the default SRC_URI
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/pypi.eclass | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/eclass/pypi.eclass b/eclass/pypi.eclass index e9d3eec1268b..d00b1171fd16 100644 --- a/eclass/pypi.eclass +++ b/eclass/pypi.eclass @@ -34,10 +34,6 @@ esac if [[ ! ${_PYPI_ECLASS} ]]; then _PYPI_ECLASS=1 -SRC_URI=" - https://files.pythonhosted.org/packages/source/${PN::1}/${PN}/${P}.tar.gz -" - # @FUNCTION: pypi_sdist_url # @USAGE: [<project> [<version> [<suffix>]]] # @DESCRIPTION: @@ -132,4 +128,6 @@ pypi_wheel_url() { fi } +SRC_URI="$(pypi_sdist_url)" + fi |