Opened 7 months ago

Closed 5 months ago

#63746 closed defect (fixed)

py39-nose @1.3.7_1 uses python2 style print statements

Reported by: josephsacco Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc: chrstphrchvz (Christopher Chavez)
Port: py-nose

Description

py39-nose uses python2 print statements:

cavandish:~ jsacco$ python3.9
Python 3.9.7 (default, Oct 31 2021, 13:10:35)
[Clang 13.0.0 (clang-1300.0.29.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import nose
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/nose/__init__.py", line 1, in <module>
    from nose.core import collector, main, run, run_exit, runmodule
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/nose/core.py", line 153
    print "%s version %s" % (os.path.basename(sys.argv[0]), __version__)
          ^
SyntaxError: invalid syntax

It would appear that the source was not converted to python3 format [See: core.py].

FWIW... The "wheel" for the python3 version on PYPI appears to have corrected this.

-Joseph

Change History (4)

comment:1 Changed 7 months ago by jmroot (Joshua Root)

Keywords: nose python3 removed
Owner: set to MarcusCalhoun-Lopez
Port: py-nose added; py39-nose removed
Status: newassigned

comment:2 Changed 7 months ago by chrstphrchvz (Christopher Chavez)

From reports elsewhere, this is because nose specifies building with use_2to3 which setuptools 58 no longer supports. So the workaround may be for MacPorts to run 2to3 as needed.

comment:3 Changed 7 months ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:4 Changed 5 months ago by reneeotten (Renee Otten)

Resolution: fixed
Status: assignedclosed

In 748b0588efea67502520e64d0d75528c05d04a5e/macports-ports (master):

py-nose: fix build with current setuptools

Closes: #63746

Note: See TracTickets for help on using tickets.