Re: [MacPorts] #61530: dblatex @0.3.11₁ can be built with Python 3

MacPorts noreply at macports.org
Sun Nov 22 09:35:52 UTC 2020


#61530: dblatex @0.3.11₁ can be built with Python 3
--------------------------+------------------------
  Reporter:  ballapete    |      Owner:  neverpanic
      Type:  enhancement  |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.6.4
Resolution:               |   Keywords:  bigsur
      Port:  dblatex      |
--------------------------+------------------------

Comment (by ballapete):

 `Python2-3_patches_too.diff` patches other Python files, those that will
 be installed, `STY-ISO8859-UTF8.diff` patches the LaTeX STYle files with
 accented characters.

 I am stuck here:

 {{{
   221   def kpsewhich(tex_file):
   222       if os.name == "nt":
   223           close_fds = False
   224       else:
   225           close_fds = True
   226           p = Popen("kpsewhich %s" % tex_file, shell=True,
   227                 stdin=PIPE, stdout=PIPE, close_fds=close_fds)
   228       out = "".join(p.stdout.readlines()).strip()
   229       return out
 }}}

 `kpsewhich` runs once, returning `"amsmath.sty"` into the `else` branch.
 Tracing the execution of `setup.py` seems to indicate the statement on
 line #228 is faulty:

 {{{
 setup.py(228):     out = "".join(p.stdout.read()).strip()
 setup.py(384):             except Exception as e:
 setup.py(384):                 print("Error: %s" % e, file=sys.stderr)
 Error: sequence item 0: expected str instance, int found
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/61530#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list