all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Building packages with python-3.4
@ 2016-10-12 21:52 Leo Famulari
  2016-10-24 20:58 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Leo Famulari @ 2016-10-12 21:52 UTC (permalink / raw)
  To: guix-devel

On core-updates, we updated python to 3.5.2, but we kept 3.4.5 in case
we needed it.

I recently tried building python-cryptography with 3.4.5, like this:

    (arguments
     `(#:python ,python-3.4))

But, it fails like this:

patch-shebang: ./setup.py: warning: no binary for interpreter `python' found in $PATH
phase `patch-source-shebangs' succeeded after 0.2 seconds
starting phase `patch-generated-file-shebangs'
phase `patch-generated-file-shebangs' succeeded after 0.1 seconds
starting phase `build'
running "python setup.py" with command "build" and parameters ()
In execvp of python: No such file or directory
phase `build' failed after 0.0 seconds

I assume that python-wrapper needs to be adjusted somehow, but I'm not
sure. Any advice?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Building packages with python-3.4
  2016-10-12 21:52 Building packages with python-3.4 Leo Famulari
@ 2016-10-24 20:58 ` Ludovic Courtès
  2016-10-28 16:33   ` Leo Famulari
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2016-10-24 20:58 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

Leo Famulari <leo@famulari.name> skribis:

> On core-updates, we updated python to 3.5.2, but we kept 3.4.5 in case
> we needed it.
>
> I recently tried building python-cryptography with 3.4.5, like this:
>
>     (arguments
>      `(#:python ,python-3.4))
>
> But, it fails like this:
>
> patch-shebang: ./setup.py: warning: no binary for interpreter `python' found in $PATH

I think you need to write:

  (arguments
   `(#:python ,(wrap-python3 python-3.4)))

That will provide ‘python’ and other commands without the ‘3’ prefix.

HTH, and sorry for the delay!

Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Building packages with python-3.4
  2016-10-24 20:58 ` Ludovic Courtès
@ 2016-10-28 16:33   ` Leo Famulari
  2016-10-28 20:00     ` Ricardo Wurmus
  0 siblings, 1 reply; 4+ messages in thread
From: Leo Famulari @ 2016-10-28 16:33 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

On Mon, Oct 24, 2016 at 10:58:38PM +0200, Ludovic Courtès wrote:
> Leo Famulari <leo@famulari.name> skribis:
> 
> > On core-updates, we updated python to 3.5.2, but we kept 3.4.5 in case
> > we needed it.
> >
> > I recently tried building python-cryptography with 3.4.5, like this:
> >
> >     (arguments
> >      `(#:python ,python-3.4))
> >
> > But, it fails like this:
> >
> > patch-shebang: ./setup.py: warning: no binary for interpreter `python' found in $PATH
> 
> I think you need to write:
> 
>   (arguments
>    `(#:python ,(wrap-python3 python-3.4)))
> 
> That will provide ‘python’ and other commands without the ‘3’ prefix.

Thanks!

I tried this to fix the build failure of Blender on core-updates, and it
did work. But in the end I instead updated Blender to the latest
version, which supports Python 3.5.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Building packages with python-3.4
  2016-10-28 16:33   ` Leo Famulari
@ 2016-10-28 20:00     ` Ricardo Wurmus
  0 siblings, 0 replies; 4+ messages in thread
From: Ricardo Wurmus @ 2016-10-28 20:00 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel


Leo Famulari <leo@famulari.name> writes:

> On Mon, Oct 24, 2016 at 10:58:38PM +0200, Ludovic Courtès wrote:
>> Leo Famulari <leo@famulari.name> skribis:
>> 
>> > On core-updates, we updated python to 3.5.2, but we kept 3.4.5 in case
>> > we needed it.
>> >
>> > I recently tried building python-cryptography with 3.4.5, like this:
>> >
>> >     (arguments
>> >      `(#:python ,python-3.4))
>> >
>> > But, it fails like this:
>> >
>> > patch-shebang: ./setup.py: warning: no binary for interpreter `python' found in $PATH
>> 
>> I think you need to write:
>> 
>>   (arguments
>>    `(#:python ,(wrap-python3 python-3.4)))
>> 
>> That will provide ‘python’ and other commands without the ‘3’ prefix.
>
> Thanks!
>
> I tried this to fix the build failure of Blender on core-updates, and it
> did work. But in the end I instead updated Blender to the latest
> version, which supports Python 3.5.

Heh, I was waiting for the Python upgrade to upgrade Blender but didn’t
manage to do it without my laptop freezing.  Thanks for taking care of
this!

~~ Ricardo

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-10-28 20:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-12 21:52 Building packages with python-3.4 Leo Famulari
2016-10-24 20:58 ` Ludovic Courtès
2016-10-28 16:33   ` Leo Famulari
2016-10-28 20:00     ` Ricardo Wurmus

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.