unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* python2 in git
@ 2020-03-03 12:43 Ricardo Wurmus
  2020-03-03 12:53 ` Maxim Cournoyer
  2020-03-03 13:32 ` Tobias Geerinckx-Rice
  0 siblings, 2 replies; 3+ messages in thread
From: Ricardo Wurmus @ 2020-03-03 12:43 UTC (permalink / raw)
  To: guix-devel

Hi Guix,

our “git” package has python-2 among its inputs.  It says this:

    ("python" ,python-2) ; CAVEAT: incompatible with python-3 according to INSTALL

The INSTALL file for git 2.25.1 says this about Python:

	- Python version 2.4 or later (but not 3.x, which is not
	  supported by Perforce) is needed to use the git-p4 interface
	  to Perforce.

The git-p4 script does, however, contain conditionals to accomodate
Python 3.  Here’s an example:

--8<---------------cut here---------------start------------->8---
# support basestring in python3
try:
    unicode = unicode
except NameError:
    # 'unicode' is undefined, must be Python 3
    str = str
    unicode = str
    bytes = bytes
    basestring = (str,bytes)
else:
    # 'unicode' exists, must be Python 2
    str = str
    unicode = unicode
    bytes = str
    basestring = basestring
--8<---------------cut here---------------end--------------->8---

It also uses the Python 3 style “print” call instead of the Python 2
style statement.

I would like to build git with the latest version of Python.  Any
objections?

--
Ricardo

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

* Re: python2 in git
  2020-03-03 12:43 python2 in git Ricardo Wurmus
@ 2020-03-03 12:53 ` Maxim Cournoyer
  2020-03-03 13:32 ` Tobias Geerinckx-Rice
  1 sibling, 0 replies; 3+ messages in thread
From: Maxim Cournoyer @ 2020-03-03 12:53 UTC (permalink / raw)
  To: guix-devel, Ricardo Wurmus

Hi Ricardo!

On March 3, 2020 12:43:29 PM UTC, Ricardo Wurmus <rekado@elephly.net> wrote:
>Hi Guix,
>
>our “git” package has python-2 among its inputs.  It says this:
>
>("python" ,python-2) ; CAVEAT: incompatible with python-3 according to
>INSTALL
>
>The INSTALL file for git 2.25.1 says this about Python:
>
>	- Python version 2.4 or later (but not 3.x, which is not
>	  supported by Perforce) is needed to use the git-p4 interface
>	  to Perforce.
>
>The git-p4 script does, however, contain conditionals to accomodate
>Python 3.  Here’s an example:
>
>--8<---------------cut here---------------start------------->8---
># support basestring in python3
>try:
>    unicode = unicode
>except NameError:
>    # 'unicode' is undefined, must be Python 3
>    str = str
>    unicode = str
>    bytes = bytes
>    basestring = (str,bytes)
>else:
>    # 'unicode' exists, must be Python 2
>    str = str
>    unicode = unicode
>    bytes = str
>    basestring = basestring
>--8<---------------cut here---------------end--------------->8---
>
>It also uses the Python 3 style “print” call instead of the Python 2
>style statement.
>
>I would like to build git with the latest version of Python.  Any
>objections?

Good analysis! None from me!

Maxim

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

* Re: python2 in git
  2020-03-03 12:43 python2 in git Ricardo Wurmus
  2020-03-03 12:53 ` Maxim Cournoyer
@ 2020-03-03 13:32 ` Tobias Geerinckx-Rice
  1 sibling, 0 replies; 3+ messages in thread
From: Tobias Geerinckx-Rice @ 2020-03-03 13:32 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 174 bytes --]

Ricardo,

Ricardo Wurmus 写道:
> I would like to build git with the latest version of Python. 
> Any
> objections?

Quite the opposite.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

end of thread, other threads:[~2020-03-03 13:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-03 12:43 python2 in git Ricardo Wurmus
2020-03-03 12:53 ` Maxim Cournoyer
2020-03-03 13:32 ` Tobias Geerinckx-Rice

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).