From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id cDW+Hiqc615dWgAA0tVLHw (envelope-from ) for ; Thu, 18 Jun 2020 16:54:02 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 8CikGiqc6163ewAA1q6Kng (envelope-from ) for ; Thu, 18 Jun 2020 16:54:02 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4065794051B for ; Thu, 18 Jun 2020 16:54:01 +0000 (UTC) Received: from localhost ([::1]:57166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlxnb-0002zf-0W for larch@yhetil.org; Thu, 18 Jun 2020 12:53:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jlxnT-0002zV-Lj for help-guix@gnu.org; Thu, 18 Jun 2020 12:53:51 -0400 Received: from mout01.posteo.de ([185.67.36.65]:48142) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jlxnR-0006dX-AM for help-guix@gnu.org; Thu, 18 Jun 2020 12:53:51 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id E90DC16005F for ; Thu, 18 Jun 2020 18:53:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1592499225; bh=mZ05oQbOm1aIEWq/BPvsuhYTcqr5YHKgItVd+xw2YBE=; h=To:From:Subject:Date:From; b=Is5tAScX+v5KC8ShkLcsgMoj5P0tXEQQXs9T70oXEW9GWTqXurije0+G31TSMkFZb 4VgQ7AulkV0e9YYEKbzm2JLm4GMIFi3naYs5brJSTNFtCYC7M4WHBigZndrEsCY0bm HgyAk79+qSArKR3hoF0NBrqQ4YIxctmD3Gc3hQLm15451cI3olYNvFIYtJ/ed5q9Le Dy8/ScldhwQuwIu+ceO7kUmxURKatn8KE9WHcLdC2GRffCcfWk9DijrfFPgmuh2pGt OxTm8ZN1tmxxAmLG6r6TGucFZ4PYxzDd8rhagNzB/yfoRAIrSRlxm5ZXNXwfDqh/oD BfkPCPRwd7izg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 49np152jGfz6tmN for ; Thu, 18 Jun 2020 18:53:45 +0200 (CEST) To: help-guix From: Zelphir Kaltstahl Subject: Profiles for Python projects Message-ID: Date: Thu, 18 Jun 2020 18:53:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Icedove/68.8.0 MIME-Version: 1.0 Content-Language: en-US Received-SPF: pass client-ip=185.67.36.65; envelope-from=zelphirkaltstahl@posteo.de; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/18 08:15:37 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=posteo.de header.s=2017 header.b=Is5tAScX; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.de (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: cPzpXl9pCJhL Hi Guix Users! Today I experimented a little with creating profiles from manifest.scm file for Python projects. I have the following manifest.scm: (specifications->manifest '("python@3.8.2" "python-falcon@2.0.0" "python-levenshtein@0.12.0" "python-jsonschema@3.2.0" "python-pytest@5.3.5")) I create a profile with that and it works fine: guix package --manifest="manifest.scm" --profile="${GUIX_EXTRA_PROFILES}"/my-env/my-env Then I do the sourcing: GUIX_PROFILE="${GUIX_EXTRA_PROFILES}/my-env/my-env"; source "${GUIX_PROFILE}/etc/profile" This also works fine and when I do: which python3 # which pytest I also get a path in the profile I created. So far all seems to just work. However, then I hit a snag when trying to run the tests of the project: LOG_LEVEL="DEBUG" PYTHONPATH="$(pwd)/my_project" python3 -m pytest -m "my_test_marker" -s -vvv I now get the error: No module named pytest So it seems, that somehow modules mentioned with -m Are not found. If I use PyTest without python3 -m in front, it also does not find libraries and I get errors for the dependencies of the actual project. Perhaps there is an easy fix for this. Has anyone used a Guix profile like this before and knows how to make it work? Regards, Zelphir