all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Michael Zappa" <me@michzappa.com>
To: help-guix@gnu.org
Subject: setuptools in dependencies of rewritten Python package
Date: Thu, 19 Dec 2024 20:20:35 -0500	[thread overview]
Message-ID: <b7e7bfdf-b701-4527-91b2-ca5c24d7b26a@app.fastmail.com> (raw)

Hello all,
I have an interesting problem regarding substituting out a different version of Python.

Guix Generation
---------------------------
````
   guix 91f5036
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 91f50366e5bc54951851e99f5600f9abb628b6ec
````

Scenario
---------------
I am trying to write a Guix package for a Python project which needs v3.12. Thus, I am using `(package-input-rewriting `((,python . ,python-next)) #:deep? #t)` to rewrite the package definition.

However, this fails in the build phase for the dependency `python-pip` - where it cannot find `setuptools`. 
```
starting phase `build'
running "python setup.py" with command "build" and parameters ()
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'setuptools'
```

Root Cause Analysis
--------------------------------
This error is reproducible via the CLI. `guix build python-pip` succeeds as expected. But `guix build --with-input=python=python-next python-pip` fails with the same error.

Re: `guix shell --container -D python-pip`. In `$GUIX_ENVIRONMENT/lib/python3.10/site-packages/` setuptools is present.

Re: `guix shell --container --with-input=python=python-next -D python-pip`. In `$GUIX_ENVIRONMENT/lib/python3.12/site-packages/` setuptools is not present. 

Where did it go?? Am I misunderstanding the effect of package-input-rewriting or is there a knock-on effect from the substitution? I see the changing usage of `--with-ensurepip` in the various python definitions but it is turned on in `python-next` so I don't see how that's the problem.

Thank you,
Michael




             reply	other threads:[~2024-12-20  1:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-20  1:20 Michael Zappa [this message]
2024-12-20 19:58 ` setuptools in dependencies of rewritten Python package Hartmut Goebel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b7e7bfdf-b701-4527-91b2-ca5c24d7b26a@app.fastmail.com \
    --to=me@michzappa.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.