Update setup.py and setup_with_bazel.py for tflite_runtime package
There is no runtime dependency on pybind and "has_ext_modules=lambda: True" is needed to generate proper platform-dependent wheel name (e.g. "cp37-cp37m-macosx_10_15_x86_64" instead of "py3-none-any"). PiperOrigin-RevId: 344033512 Change-Id: I1795039d319e1d54715067bc2a876e2c0901ba26
This commit is contained in:
parent
e13c09b7de
commit
6aa31d629f
tensorflow/lite/tools/pip_package
@ -209,6 +209,7 @@ setup(
|
||||
'Programming Language :: Python :: 3.5',
|
||||
'Programming Language :: Python :: 3.6',
|
||||
'Programming Language :: Python :: 3.7',
|
||||
'Programming Language :: Python :: 3.8',
|
||||
'Topic :: Scientific/Engineering',
|
||||
'Topic :: Scientific/Engineering :: Mathematics',
|
||||
'Topic :: Scientific/Engineering :: Artificial Intelligence',
|
||||
@ -220,7 +221,6 @@ setup(
|
||||
ext_modules=[ext],
|
||||
install_requires=[
|
||||
'numpy >= 1.16.0',
|
||||
'pybind11 >= 2.4.3',
|
||||
],
|
||||
cmdclass={
|
||||
'build_ext': CustomBuildExt,
|
||||
|
@ -42,6 +42,7 @@ setup(
|
||||
author_email='packages@tensorflow.org',
|
||||
license='Apache 2.0',
|
||||
include_package_data=True,
|
||||
has_ext_modules=lambda: True,
|
||||
keywords='tflite tensorflow tensor machine learning',
|
||||
classifiers=[
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
@ -54,6 +55,7 @@ setup(
|
||||
'Programming Language :: Python :: 3.5',
|
||||
'Programming Language :: Python :: 3.6',
|
||||
'Programming Language :: Python :: 3.7',
|
||||
'Programming Language :: Python :: 3.8',
|
||||
'Topic :: Scientific/Engineering',
|
||||
'Topic :: Scientific/Engineering :: Mathematics',
|
||||
'Topic :: Scientific/Engineering :: Artificial Intelligence',
|
||||
@ -66,5 +68,4 @@ setup(
|
||||
package_data={'': ['*.so', '*.pyd']},
|
||||
install_requires=[
|
||||
'numpy >= 1.16.0',
|
||||
'pybind11 >= 2.4.3',
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user