dev-python/archspec - 0.2.6 (gentoo-zh)

Search

Install

Install this version:

emerge -a =dev-python/archspec-0.2.6

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/archspec-0.2.6

Or alternatively:

emerge --autounmask-write -a =dev-python/archspec-0.2.6

Package Information

Description:
A library for detecting, labeling, and reasoning about microarchitectures
Homepage:
https://github.com/archspec/archspec
License:
Apache-2.0 MIT

Ebuild Details

Version EAPI Keywords Slot
0.2.6 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=poetry
PYTHON_COMPAT=( python3_{9..14} )

inherit distutils-r1

DESCRIPTION="A library for detecting, labeling, and reasoning about microarchitectures"
HOMEPAGE="https://github.com/archspec/archspec"

CPUID="5b381ed2af05ad9ead46a136b43c2f7021bd44bb"

SRC_URI="
	https://github.com/archspec/archspec/archive/v${PV}.tar.gz -> ${P}.tar.gz
	https://github.com/archspec/archspec-json/archive/v${PV}.tar.gz -> ${P}-json.tar.gz
	https://github.com/archspec/cpuid/archive/${CPUID}.tar.gz -> ${P}-cpuid.tar.gz"

LICENSE="Apache-2.0 MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"

distutils_enable_tests pytest

src_unpack() {
	default
	mv -u "${PN}-json-${PV}/cpu/" "${S}/${PN}/json" || die
	rm -r "${S}/${PN}/vendor/cpuid" || die
	mv -u "cpuid-${CPUID}" "${S}/${PN}/vendor/cpuid" || die
}

Inherited Eclasses

Manifest for 0.2.6

Type File Size Source URLs
DIST archspec-0.2.6-cpuid.tar.gz 4270 bytes https://github.com/archspec/cpuid/archive/5b381ed2af05ad9ead46a136b43c2f7021bd44bb.tar.gz
DIST archspec-0.2.6-json.tar.gz 25319 bytes https://github.com/archspec/archspec-json/archive/v0.2.6.tar.gz
DIST archspec-0.2.6.tar.gz 36475 bytes https://github.com/archspec/archspec/archive/v0.2.6.tar.gz