Opened 3 months ago

Last modified 3 months ago

#61526 assigned enhancement

libzzip @0.13.71 can be built with Python 3

Reported by: ballapete (Peter Dyballa) Owned by: mojca (Mojca Miklavec)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur Cc:
Port: libzzip

Description

Since I want to live without Python 2.7 from MacPorts (the macOS one should suffice) I started to change libzzip – which only needs Python 2 to create the documentation. By using Python's 2to3 some Python files were adapted to Python 3 – and the documentation built! It's also usable.

Could be the translation is not perfect, because when building the documentation around 10,000 lines à la

Unescaped left brace in regex is passed through in regex; marked by <-- HERE in m/<([^<>]*)\${ <-- HERE src_dir:[?]([^{<>}]*)}([^<>]*)>/ at (eval 325) line 292, <STYLESHEET> line 19691.

are emitted (this is certainly from Perl). So next TeX Live release could be a bit more up-to-date.

The attached patch files either translate the needed Python files or correct a minor fault in one Makefile.

Attachments (2)

Python2-3_patches.diff (16.8 KB) - added by ballapete (Peter Dyballa) 3 months ago.
Translates the used Python 2 files to Python 3
Makefile.in.diff (326 bytes) - added by ballapete (Peter Dyballa) 3 months ago.
Corrects minor problem in Makefile

Download all attachments as: .zip

Change History (6)

Changed 3 months ago by ballapete (Peter Dyballa)

Attachment: Python2-3_patches.diff added

Translates the used Python 2 files to Python 3

Changed 3 months ago by ballapete (Peter Dyballa)

Attachment: Makefile.in.diff added

Corrects minor problem in Makefile

comment:1 Changed 3 months ago by ballapete (Peter Dyballa)

On High Sierra the same amount of Perl complaints appears – when building with Python 2.7. Here it also works to build with Python 3. (This Perl output also appears when building GCC7 on PPC Tiger.)

comment:2 Changed 3 months ago by ballapete (Peter Dyballa)

  texlive-common @2020_0 (active) platform='darwin 20' archs='noarch' date='2020-11-17T13:02:48+0100'
  texlive-bin @2020.54632_2+x11 (active) platform='darwin 20' archs='x86_64' date='2020-11-17T13:12:53+0100'
  texlive-basic @54624_1+doc (active) platform='darwin 20' archs='noarch' date='2020-11-17T13:14:09+0100'
  texlive-latex @54498_0+doc (active) platform='darwin 20' archs='noarch' date='2020-11-17T13:15:54+0100'

are meanwhile installed from source. Looks good, so far!

It might be useful to offer two variants of this port: one with Python 2 and another one with Python 3.

comment:3 Changed 3 months ago by jmroot (Joshua Root)

Cc: mojca@… removed
Owner: set to mojca
Status: newassigned

comment:4 Changed 3 months ago by ballapete (Peter Dyballa)

Summary: libzzip @0.13.71 ach be built with Python 3libzzip @0.13.71 can be built with Python 3
Note: See TracTickets for help on using tickets.