#49774 Ticket 48204 - remove python2 from scripts
Closed 3 years ago by spichugi. Opened 5 years ago by mreynolds.
mreynolds/389-ds-base ticket48204  into  master

file modified
+3 -3
@@ -545,12 +545,12 @@ 

    if test  "$with_pythonexec" = yes ; then

      AC_MSG_ERROR([You must specify --with-pythonexec=/full/path/to/python])

    elif test  "$with_pythonexec" = no ; then

-     with_pythonexec=/usr/bin/python2

+     with_pythonexec=/usr/bin/python3

    else

      AC_MSG_RESULT([$with_pythonexec])

    fi

  else

-   with_pythonexec=/usr/bin/python2

+   with_pythonexec=/usr/bin/python3

  fi

  

  AC_SUBST(prefixdir)
@@ -630,7 +630,7 @@ 

  if test -n "$with_pythonexec"; then

    pythonexec="$with_pythonexec"

  else

-   pythonexec='/usr/bin/env python2'

+   pythonexec='/usr/bin/python3'

  fi

  

  # Default to no atomic queue operations.

Description: Change the @pythonexec@ macro to use python3

https://pagure.io/389-ds-base/issue/48204

Reviewed by: ?

We should not use /usr/bin/env as an interpreter, because RPM does dependency additions based on shebang line. In this case we would depend on env instead of python3. Instead we should use /usr/bin/python3 explicitly.

See also: https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3#Transition_Steps

rebased onto 26ca41618023e7630326c7d8232c0b3685a673b7

5 years ago

rebased onto 0d7259f

5 years ago

Pull-Request has been merged by mreynolds

5 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This pull request has been cloned to Github as issue and is available here:
- https://github.com/389ds/389-ds-base/issues/2833

If you want to continue to work on the PR, please navigate to the github issue,
download the patch from the attachments and file a new pull request.

Thank you for understanding. We apologize for all inconvenience.

Pull-Request has been closed by spichugi

3 years ago
Metadata