From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id YDs8KJB/7F58VwAA0tVLHw (envelope-from ) for ; Fri, 19 Jun 2020 09:04:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wOAhJJB/7F5GLQAAB5/wlQ (envelope-from ) for ; Fri, 19 Jun 2020 09:04:16 +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 22D2A940AF6 for ; Fri, 19 Jun 2020 09:04:15 +0000 (UTC) Received: from localhost ([::1]:39706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmCwX-0003pV-5M for larch@yhetil.org; Fri, 19 Jun 2020 05:04:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33836) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmCwP-0003pK-Jy for help-guix@gnu.org; Fri, 19 Jun 2020 05:04:05 -0400 Received: from mout02.posteo.de ([185.67.36.66]:36605) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmCwN-00015K-FZ for help-guix@gnu.org; Fri, 19 Jun 2020 05:04:05 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id B404C2400FF for ; Fri, 19 Jun 2020 11:04:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1592557441; bh=54AlGIM5PT5albVLmij/DOm1sk0d4DbHAhZH5gqZEUs=; h=Subject:To:Cc:From:Date:From; b=iCw9kfOBZ1zCtJUpTaO5yz4bhbtkzq64YYdJoQscljJ0n0NZN2eWJRp7Tk3BnQolZ B9KOm5dTf9eRrLsRdxKqCkSqAf1FqaSsCCbptD+wgpKO+ncYRv+8qVbpMg9t4a564f QPUGVkbMOSQ59XD/IzdL2Lgbwm7Mr9aQDD9tn8VuRfmwrxFdugDOFozpLFhWPTVcUC 5ZgjLFxOVST/+tn1jDMvJfId18HkohQBzG+cfVqOK/+5hFP7+2uquIiwJOql/dqMwt 4c13FhiHzEczK3YRd8ifI8+L/uFkkzZMWUcce9oa+GrU1iPRVcw8DndgEKH7PlmCrx gW/uYUwgI9eMw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 49pCXd0VFYz9rxR; Fri, 19 Jun 2020 11:04:00 +0200 (CEST) Subject: Re: Profiles for Python projects To: Marius Bakke References: <875zbodnfy.fsf@gnu.org> From: Zelphir Kaltstahl Message-ID: <103bced2-86a5-9215-3ae8-38654f8d69e8@posteo.de> Date: Fri, 19 Jun 2020 11:04:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Icedove/68.8.0 MIME-Version: 1.0 In-Reply-To: <875zbodnfy.fsf@gnu.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Received-SPF: pass client-ip=185.67.36.66; envelope-from=zelphirkaltstahl@posteo.de; helo=mout02.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/19 05:00:25 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, 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 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: , Cc: help-guix Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=iCw9kfOB; dmarc=pass (policy=none) header.from=posteo.de; 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: -1.71 X-TUID: rxgbSKJICO8D Hi Marius! That makes sense! I guess the GUIX Python packages are each in their own location, so GUIX has to do this. I did not pay enough attention to the PYTHONPATH thing. … testing right now … And it works! Thanks! Regards, Zelphir On 19.06.20 00:22, Marius Bakke wrote: > Hi Zelphir, > > Zelphir Kaltstahl writes: > >> 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" > [...] > >> 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 > This is because you are overriding PYTHONPATH. If you run it as ... > > LOG_LEVEL="DEBUG" PYTHONPATH="$(pwd)/my_project:$PYTHONPATH" python3 -m pytest -m "my_test_marker" -s -vvv > > ... you might have better luck. Guix relies on PYTHONPATH to make > Python modules available because there is no single site-packages > directory like in some other distributions. > > HTH! > Marius