Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 701366 - dev-python/fonttools-4.1.0 fails during install byte-compiling instancer.py with dev-lang/python-3.5
Summary: dev-python/fonttools-4.1.0 fails during install byte-compiling instancer.py w...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-27 23:16 UTC by Attila Tóth
Modified: 2019-11-28 06:41 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Tóth 2019-11-27 23:16:52 UTC
Note, that in the mean time dev-python/fonttools-4.0.1 compiles and installs fine with python 3.5.

Reproducible: Always




byte-compiling /var/tmp/portage/dev-python/fonttools-4.1.0/image/_python3.5/usr/lib64/python3.5/site-packages/fontTools/varLib/instancer.py to instancer.cpython-35.pyc
Traceback (most recent call last):
  File "/usr/lib64/python3.5/py_compile.py", line 125, in compile
    _optimize=optimize)
  File "<frozen importlib._bootstrap_external>", line 759, in source_to_code
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/usr/lib64/python3.5/site-packages/fontTools/varLib/instancer.py", line 104
    f"Range minimum ({self.minimum:g}) must be <= maximum ({self.maximum:g})"
                                                                            ^
SyntaxError: invalid syntax

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "setup.py", line 376, in <module>
    **classifiers
  File "/usr/lib64/python3.5/site-packages/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib64/python3.5/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib64/python3.5/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python3.5/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/usr/lib64/python3.5/site-packages/setuptools/command/install.py", line 61, in run
    return orig.install.run(self)
  File "/usr/lib64/python3.5/distutils/command/install.py", line 551, in run
    self.run_command(cmd_name)
  File "/usr/lib64/python3.5/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib64/python3.5/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/usr/lib64/python3.5/site-packages/setuptools/command/install_lib.py", line 15, in run
    self.byte_compile(outfiles)
  File "/usr/lib64/python3.5/distutils/command/install_lib.py", line 134, in byte_compile
    dry_run=self.dry_run)
  File "/usr/lib64/python3.5/distutils/util.py", line 460, in byte_compile
    compile(file, cfile, dfile)
  File "setup.py", line 22, in doraise_py_compile
    orig_py_compile(file, cfile=cfile, dfile=dfile, doraise=True)
  File "/usr/lib64/python3.5/py_compile.py", line 129, in compile
    raise py_exc
py_compile.PyCompileError:   File "/usr/lib64/python3.5/site-packages/fontTools/varLib/instancer.py", line 104
    f"Range minimum ({self.minimum:g}) must be <= maximum ({self.maximum:g})"
                                                                            ^
SyntaxError: invalid syntax

 * ERROR: dev-python/fonttools-4.1.0::gentoo failed (install phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  125:  Called src_install
 *   environment, line 2928:  Called distutils-r1_src_install
 *   environment, line 1027:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_install'
 *   environment, line  500:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_install'
 *   environment, line 2469:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_install'
 *   environment, line 1829:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_install'
 *   environment, line 1827:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_install'
 *   environment, line  711:  Called distutils-r1_run_phase 'distutils-r1_python_install'
 *   environment, line  995:  Called distutils-r1_python_install
 *   environment, line  907:  Called esetup.py 'install' '--root=/var/tmp/portage/dev-python/fonttools-4.1.0/image/_python3.5'
 *   environment, line 1373:  Called die
 * The specific snippet of code:
 *       "${@}" || die "${die_args[@]}";
Comment 1 Matt Turner gentoo-dev 2019-11-28 00:10:10 UTC
Thanks for the report. I think we might want to remove python:3.5 support, but I'm not on the python@ team so I've asked for their input.

(Do you have a particular interest in python3.5 support?)
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-11-28 04:18:09 UTC
Yep, that's definitely 3.6+ syntax.
Comment 3 Larry the Git Cow gentoo-dev 2019-11-28 04:33:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33a987fb84cb1abe211e57e1c4d5c81adc13c5e2

commit 33a987fb84cb1abe211e57e1c4d5c81adc13c5e2
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2019-11-28 04:18:00 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2019-11-28 04:33:52 +0000

    dev-python/fonttools: Remove py3.5 from 4.1.0
    
    Closes: https://bugs.gentoo.org/701366
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/fonttools/fonttools-4.1.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 4 Attila Tóth 2019-11-28 06:41:22 UTC
(In reply to Matt Turner from comment #1)
> Thanks for the report. I think we might want to remove python:3.5 support,
> but I'm not on the python@ team so I've asked for their input.
> 
> (Do you have a particular interest in python3.5 support?)

No particular interest, it's just there. If it has to be removed, I will shed a tear.