Opened 4 months ago

Last modified 4 months ago

#68984 assigned defect

dblatex @0.3.12_2 still needs Python 3.10

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: cal@…
Port: dblatex

Description

Since about one year Python 3.11 is the default, in a few days Python 3.12 will become it. Has now the time come to update this package?

pete 310 /\ port deps dblatex
Full Name: dblatex @0.3.12_2
Library Dependencies: texlive-latex-extra, texlive-latex-recommended, texlive-math-science, dejavu-fonts, ImageMagick,
                      docbook-xml, docbook-xsl-nons, docbook-xml-5.0, python310
pete 311 /\ port deps dblatex +mactex
Full Name: dblatex @0.3.12_2+mactex
Library Dependencies: dejavu-fonts, ImageMagick, docbook-xml, docbook-xsl-nons, docbook-xml-5.0, python310

Change History (2)

comment:1 Changed 4 months ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to neverpanic
Status: newassigned
Summary: dblatex @0.3.12₂ still needs Python 3.10dblatex @0.3.12_2 still needs Python 3.10

Simply changing 310 to 311 causes a warning:

/opt/local/var/macports/build/_Volumes_Shared_macports-ports_textproc_dblatex/dblatex/work/dblatex3-0.3.12/setup.py:255: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!

Using 312 causes build failure:

Traceback (most recent call last):
  File "/opt/local/var/macports/build/_Volumes_Shared_macports-ports_textproc_dblatex/dblatex/work/dblatex3-0.3.12/setup.py", line 15, in <module>
    from setuptools import setup
ImportError: cannot import name 'setup' from 'setuptools' (unknown location)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/local/var/macports/build/_Volumes_Shared_macports-ports_textproc_dblatex/dblatex/work/dblatex3-0.3.12/setup.py", line 18, in <module>
    from distutils.core import setup
ModuleNotFoundError: No module named 'distutils'

I guess for python312 we would need to use pep517 but dblatex is apparently incompatible with that; see [3593e1ca3bd419d0dd6d494dac11e24ab4cd7933/macports-ports]. I don't see any upstream bug report about that though.

comment:2 Changed 4 months ago by neverpanic (Clemens Lang)

I don't see any other package managers that currently build dblatex against Python 3.12 yet, either. All of the existing ones that build against Python 3.11 continue to use the setup.py method.

Upstream isn't very active. I don't think filing a ticket there will achieve much unless it comes with a patch. Personally, I don't know how to update a package to conform to PEP517.

Note: See TracTickets for help on using tickets.