Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] ebuild für pysodium
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
schmidicom
Veteran
Veteran


Joined: 09 Mar 2006
Posts: 1924
Location: Schweiz

PostPosted: Mon Sep 20, 2021 1:41 pm    Post subject: [solved] ebuild für pysodium Reply with quote

Ich versuche gerade ein ebuild für pysodium zu erstellen (weil es eine Abhängigkeit für eine andere Software ist die gerne mal testen/nutzen würde) aber das klappt leider nicht wegen "Tests".
Code:
 * ERROR: dev-python/pysodium-0.7.9::schmidicom-overlay failed (install phase):
 *   Package installs 'test' package which is forbidden and likely a bug in the build system.

In anderen Fällen dieser Art konnte ich das mit einem Patch für die "setup.py" fixen (siehe unten) aber hier klappt das nicht mehr. Kann mir einer sagen was ich hier machen muss damit sich der Mist über Portage installieren lässt?

Der Patch für die setup.py-Datei:
--- ./setup.py  2021-09-15 16:35:03.918459829 +0200
+++ ./setup.py  2021-09-15 16:33:57.806341852 +0200
@@ -18,7 +18,7 @@
     license="BSD",
     keywords="cryptography API NaCl libsodium",
     url="https://github.com/stef/pysodium",
-    packages=find_packages(),
+    packages=find_packages(exclude=['tests*']),
     long_description=read('README.md'),
     requires=["libsodium"],
     classifiers=["Development Status :: 4 - Beta",
Das ebuild für pysodium:
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python3_{7..10} )
inherit distutils-r1

DESCRIPTION="wrapper for libsodium providing high level crypto primitives"
HOMEPAGE="https://github.com/stef/pysodium"
SRC_URI="https://github.com/stef/pysodium/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
S=${WORKDIR}/pysodium-${PV}
RESTRICT="mirror"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"

DEPEND="dev-libs/libsodium"
RDEPEND="${DEPEND}"
BDEPEND=""

_________________
Lenovo - ThinkPad P16s Gen 2 - 21K9CTO1WW


Last edited by schmidicom on Mon Sep 20, 2021 2:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30923
Location: here

PostPosted: Mon Sep 20, 2021 2:06 pm    Post subject: Reply with quote

Das Verzeichnis mit den Tests heißt test, so dass sie von
Code:
+    packages=find_packages(exclude=['tests*']),

nach
Code:
+    packages=find_packages(exclude=['test*']),

wechselt.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
schmidicom
Veteran
Veteran


Joined: 09 Mar 2006
Posts: 1924
Location: Schweiz

PostPosted: Mon Sep 20, 2021 2:18 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Das Verzeichnis mit den Tests heißt test, so dass sie von
Code:
+    packages=find_packages(exclude=['tests*']),

nach
Code:
+    packages=find_packages(exclude=['test*']),

wechselt.

Danke, damit haut es hin.
Jetzt kann ich daran machen für die nächsten Abhängigkeiten ein ebuild zu schreiben... :|
_________________
Lenovo - ThinkPad P16s Gen 2 - 21K9CTO1WW
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum