OS/2, eCS & ArcaOS - Technical > Setup & Installation

PYTHON - v2 vs v3 and dependencies...

<< < (2/2)

Lars:
ANPM comes with Python2 scripts to begin with.

Dave Yeo:

--- Quote from: Lars on April 27, 2025, 07:36:47 pm ---ANPM comes with Python2 scripts to begin with.

--- End quote ---
Are you sure about that? I thought that everything had been updated to python3. Looking, all the scripts simply call python, "#! /usr/bin/python -tt", which here is,

--- Code: ---W:\usr\bin>python --version
Python 3.9.21

--- End code ---

Steven Levine:
The hashbang spec would apply if you ran the script from a hashbang aware shell.

ANPM always invokes the scripts via the python command line and forces 2.7 to be used.  The relevant code is at:

  PyExec.VRX:63
      ADDRESS CMD '@python2.7.exe' full_cmd '2>&1 |RXQUEUE' listqueue

Dave Yeo:
Ok, thanks

Navigation

[0] Message Index

[*] Previous page

Go to full version