[MacPorts] #60834: py27-tensorflow1: ERROR: tensorflow-1.15.3-cp27-cp27m-macosx_10_13_x86_64.whl is not a supported wheel on this platform.

MacPorts noreply at macports.org
Sat Oct 10 13:29:50 UTC 2020


#60834: py27-tensorflow1: ERROR: tensorflow-1.15.3-cp27-cp27m-
macosx_10_13_x86_64.whl is not a supported wheel on this platform.
-----------------------------+--------------------------
  Reporter:  ryandesign      |      Owner:  emcrisostomo
      Type:  defect          |     Status:  assigned
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:  2.6.2
Resolution:                  |   Keywords:  sierra
      Port:  py-tensorflow1  |
-----------------------------+--------------------------
Changes (by ryandesign):

 * keywords:   => sierra


Comment:

 Current logs for\\
 [https://build.macports.org/builders/ports-10.12_x86_64-builder/builds/128193/steps
 /install-port/logs/stdio py27-tensorflow1 @1.15.4]\\
 [https://build.macports.org/builders/ports-10.12_x86_64-builder/builds/128194/steps
 /install-port/logs/stdio py36-tensorflow1 @1.15.4]\\
 [https://build.macports.org/builders/ports-10.12_x86_64-builder/builds/128195/steps
 /install-port/logs/stdio py37-tensorflow1 @1.15.4]\\
 [https://build.macports.org/builders/ports-10.12_x86_64-builder/builds/128191/steps
 /install-port/logs/stdio py38-tensorflow1 @1.15.4]

 The problem seems to be that although we are on macOS 10.12 it is
 compiling with `-mmacosx-version-min=10.13` (which it should not do) which
 ultimately leads to:

 {{{
 [WARNING] This wheel needs a higher macOS version than the version your
 Python interpreter is compiled against.  To silence this warning, set
 MACOSX_DEPLOYMENT_TARGET to at least 10_13 or recreate these files with
 lower MACOSX_DEPLOYMENT_TARGET:
 }}}
 {{{
   File "setup.py", line 306, in <module>
     keywords='tensorflow tensor machine learning',
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/setuptools/__init__.py", line 153, in setup
     return distutils.core.setup(**attrs)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py",
 line 148, in setup
     dist.run_commands()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py",
 line 966, in run_commands
     self.run_command(cmd)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py",
 line 985, in run_command
     cmd_obj.run()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/wheel/bdist_wheel.py", line 328, in run
     impl_tag, abi_tag, plat_tag = self.get_tag()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/wheel/bdist_wheel.py", line 278, in get_tag
     assert tag in supported_tags, "would build wheel with unsupported tag
 {}".format(tag)
 AssertionError: would build wheel with unsupported tag ('cp37', 'cp37m',
 'macosx_10_13_x86_64')
 }}}

 We also see in the log:

 {{{
     APPLE_SDK_VERSION_OVERRIDE=10.13 \
 }}}

 This is fine since it is using Xcode 9.2 which contains only the 10.13
 SDK, but that has nothing to do with the deployment target.

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


More information about the macports-tickets mailing list