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 ms0.migadu.com with LMTPS id OJLIMECJJ2ExCwEAgWs5BA (envelope-from ) for ; Thu, 26 Aug 2021 14:29:52 +0200 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 sLKELECJJ2FoOgAA1q6Kng (envelope-from ) for ; Thu, 26 Aug 2021 12:29:52 +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 03B1F16809 for ; Thu, 26 Aug 2021 14:29:52 +0200 (CEST) Received: from localhost ([::1]:47440 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJEVy-0003OU-5o for larch@yhetil.org; Thu, 26 Aug 2021 08:29:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJEVo-0003O7-A9 for help-guix@gnu.org; Thu, 26 Aug 2021 08:29:40 -0400 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]:34560) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mJEVm-0005xt-4i for help-guix@gnu.org; Thu, 26 Aug 2021 08:29:40 -0400 Received: by mail-ej1-x634.google.com with SMTP id u3so5812910ejz.1 for ; Thu, 26 Aug 2021 05:29:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=yCo3XfwXa0ocHCq3ZbnZZED3zHNdCRXkWM853yxfffA=; b=NmVypyjYF6BwWtokaIYnlSGDIpyaf1CInB5Wnoa1/tAUVYabWZIrn8sPLiqG/DlDHi pSjousW9RH+9cj1csStExhy7UTtc10FNPe3wb9XF/Xdr8l77WPek4Cbr7/sxqfHRWws8 ZwxjAwcu8mWc89cQIfZO4QMY9d58dFyz8uCEjZQu2uzgp3HexHiw+c/06KB63IolKkcu j0iGfOQbjFYwdA6kIZwZ78uAVHnhmior7pq0fjE1M5nQaxMSeSUlHh4n5hp9koNHAUaB EpOXJJWDvu/bnKRw2cJvKpmnLfngq0KZ1u9lmgo9JokZ0kDPwVH2+eBTzSvtG70eUkLd a02A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=yCo3XfwXa0ocHCq3ZbnZZED3zHNdCRXkWM853yxfffA=; b=RlVKHSbD80gxj7UgycChS/59JNEmac8S1RBevJva3sFcbRcZyG4AdE9JVC8xtoFWpB zlZKfPyq66xUJQjHJ25LTSkqL0EswVA8LvwHMR8tKRzB8GZUEd/QWr9nasFLoIr7s+xd qDjuNZeyEQx12QQeqijiFq7bFZ0LfU/PwCHhI/Wl9XMZilJTpqHxADK9eWKXOVYStW2W 2RReQBWxY3Q67MB1aKvgY6usqsrPBU6OaDWpy8rmFXoXlyPrDlGPDJ+NZNQDQHVeV80m UXk/nF7D+x3rwepwyCY4PLcVgZOyRmWGJtmTW0sPJyNReKfpM3RLnW8PAAzTC13O757X hBmA== X-Gm-Message-State: AOAM5322dBDyjMUO5Lk2nnHcKwCwpUk1B+6CJ6J+6kaOPtxUmAdukiq6 CVyouUE3AAImfELAEALn6HhOFAMNANzCT0KmRqB+h8KqWh6UxQ== X-Google-Smtp-Source: ABdhPJw5tQqXxSj6UJTjoRNEUVAKS+mg9x+3o4tW0shvJrbNKXxFxFP9/ysMBe+uTz7yowlCwH+wmetjrwNnTOht4m8= X-Received: by 2002:a17:906:f15:: with SMTP id z21mr4042399eji.177.1629980975889; Thu, 26 Aug 2021 05:29:35 -0700 (PDT) MIME-Version: 1.0 From: Antwane Mason Date: Thu, 26 Aug 2021 08:29:24 -0400 Message-ID: Subject: Python Tox Dependencies Invisible to Pip To: help-guix@gnu.org Received-SPF: pass client-ip=2a00:1450:4864:20::634; envelope-from=ad.mason1413@gmail.com; helo=mail-ej1-x634.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset="UTF-8" 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-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629980992; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=kFUTBktO2SGkQMpMN770SJXvS8qn2ZC6DTm2hQab/HY=; b=Vk9vmkUB4AcytcnOIhJpe44CRLb/XEhn1TOnrYD2ppF2djAIv/Fis26b+kHxK3pQ1Dlhml E3QwY49945TtvXr9K/Hb1gTpS+sL1GXG495wa7w8VDxHLGe2jo6Qjpu3XXxyVxjfL+EKAD LPK3fodc0yQIVIh9m8xbPpw4ZVUWcw9j3DjXSK7rid2UJYv/Ei92G3BvLKAaqQnmu9pgC3 zbd7/OHDIzJj5TCbejL4Qo95n8CKDDPxIGWA1068OpeB6uZoxC9hRUPLpXiy0sMwBV1hDs Aqsh2SWl5Bx5naMmBof/W4dt0na2f38wrpFbRnOr8dTj9++S6i2nM+KR61j6AA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629980992; a=rsa-sha256; cv=none; b=mySsendRhHBsPS5kaAxbhaRVm/Kf+rd/7Df7e2AWY4CGYsN4RjtIITDxpolRRHWSpoKsMn slQGEQxnnKlrZq5LfXCxBLnw/shlIQ0guC4TNSGMbZ+TEf2l0JmXskIM1v0vTLV1CyVsbI JuFUigaSq96Y3AAqhxIP4ytDcAP6OOW2P3RUirzmK+QIDIx5Q1BbePZ1cLEI4yKXtDkJxB 3te79aZ4OvOjXHmoAIh68EEPrpXM2U9m1Lokp17JsxR81KTfVKwVh5X+EZ2dq/i/pu3YIE 251T3kgTXpkIow0cwIkQ1f35tOY+fMoAjL3PD4yJMe7q/ecwCFw+/KLs5fFAqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=NmVypyjY; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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-Migadu-Spam-Score: -1.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=NmVypyjY; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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-Migadu-Queue-Id: 03B1F16809 X-Spam-Score: -1.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: SGN976DP1msK I am currently trying to build a package for python-virtualenv-clone with the eventual goal of submitting a patch. While building the package, tox is used to perform tests and it needs but cannot find pytest and virtualenv despite being included as build dependencies. I suspect that tox has done something to the environment variables guix uses to expose python packages from store. However, I have no experience with tox and need some guidance on how to fix this. Any help would be appreciated. I still haven't been able to build onlykey-cli package due to chasing down dependencies such as this package. Here is a tox log showing that pip cannot find pytest dependency. ------------------------------------------------ action: py38, msg: getenv cwd: /tmp/guix-build-python-virtualenv-clone-0.5.6.drv-0/source cmd: /tmp/guix-build-python-virtualenv-clone-0.5.6.drv-0/source/.tox/py38/bin/python -m pip install pytest virtualenv WARNING: The directory '/homeless-shelter/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/pytest/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/pytest/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/pytest/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/pytest/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/pytest/ ERROR: Could not find a version that satisfies the requirement pytest (from versions: none) ERROR: No matching distribution found for pytest ----------------------------------------------- Here is a snippet from build output that makes me think tox is discarding the environment variable that points to python packages in guix store. ----------------------------------------------- py38 installdeps: pytest, virtualenv WARNING: Discarding $PYTHONPATH from environment, to override specify PYTHONPATH in 'passenv' in your configuration. ----------------------------------------------- Here is the package definition. I had to change the usual style of using pypi to get code because the tarball in pypi is missing tox.ini that can be found in the github tarball for the same version. This can be verified by checking the contents and you can also see a difference in hashes between github and pypi. I plan on opening an issue on their github repo soon on this. ------------------------------------------------ (define-public python-virtualenv-clone (package (name "python-virtualenv-clone") (version "0.5.6") (source (origin (method git-fetch) (uri (git-reference (url " https://github.com/edwardgeorge/virtualenv-clone") (commit version))) (sha256 (base32 "0xb20fhl99dw5vnyb43sjpj9628nbdnwp5g7m8f2id7w8kpwzvfw")))) (native-inputs `(("python-pytest" ,python-pytest) ("python-tox" ,python-tox) ("python-virtualenv" ,python-virtualenv))) (build-system python-build-system) (home-page "https://github.com/edwardgeorge/virtualenv-clone") (synopsis "script to clone virtualenvs.") (description "script to clone virtualenvs.") (license license:expat))) ------------------------------------------------ Regards, Antwane