[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem trying to install python module in python virtual environmen
From: |
Georgios Athanasiou |
Subject: |
Re: problem trying to install python module in python virtual environment on top of Guix |
Date: |
Tue, 15 Aug 2023 20:04:51 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 |
Hi Andy,
I think that it may be possible to build the package with a little
effort. You'll have to emulate the FHS as Maxim suggested. But you'll
also have to expose the standard C/C++ libraries (they are currently
hidden, see https://issues.guix.gnu.org/63267).
Save the following Scheme code as gcc-unhidden.scm in a directory:
(define-module (gcc-unhidden)
#:use-module (gnu packages gcc)
#:use-module (guix packages)
#:use-module (srfi srfi-1))
(define-public gcc-12-unhidden
(package
(inherit gcc-12)
(properties (alist-delete 'hidden? (package-properties gcc-12)))))
That will make the gcc:lib output available. You can use it in a Guix
container along with the necessary tools. This is how I'd do it:
guix shell --load-path=. --container --emulate-fhs --network \
bash coreutils gcc-toolchain gcc:lib make python
You can now create a Python virtual environment inside the Guix
container and continue as usual.
Kind regards,
George