2021-05-10 21:19:00 +02:00
""" Copyright 2020-2021 The MediaPipe Authors.
2020-08-13 03:57:56 +02:00
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
you may not use this file except in compliance with the License .
You may obtain a copy of the License at
http : / / www . apache . org / licenses / LICENSE - 2.0
Unless required by applicable law or agreed to in writing , software
distributed under the License is distributed on an " AS IS " BASIS ,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND , either express or implied .
See the License for the specific language governing permissions and
limitations under the License .
Setup for MediaPipe package with setuptools .
"""
import glob
import os
2020-12-10 04:13:05 +01:00
import platform
2020-08-13 03:57:56 +02:00
import posixpath
2020-08-30 05:41:10 +02:00
import re
2020-08-13 03:57:56 +02:00
import shutil
import subprocess
import sys
import setuptools
import setuptools . command . build_ext as build_ext
2021-12-10 23:03:51 +01:00
import setuptools . command . build_py as build_py
2020-08-13 03:57:56 +02:00
import setuptools . command . install as install
2021-12-10 23:03:51 +01:00
__version__ = ' dev '
2020-12-10 04:13:05 +01:00
IS_WINDOWS = ( platform . system ( ) == ' Windows ' )
2020-08-13 03:57:56 +02:00
MP_ROOT_PATH = os . path . dirname ( os . path . abspath ( __file__ ) )
2020-08-30 05:41:10 +02:00
MP_DIR_INIT_PY = os . path . join ( MP_ROOT_PATH , ' mediapipe/__init__.py ' )
MP_THIRD_PARTY_BUILD = os . path . join ( MP_ROOT_PATH , ' third_party/BUILD ' )
2021-12-10 23:03:51 +01:00
DIR_INIT_PY_FILES = [
os . path . join ( MP_ROOT_PATH , ' __init__.py ' ) ,
2020-12-10 04:13:05 +01:00
os . path . join ( MP_ROOT_PATH , ' mediapipe/calculators/__init__.py ' ) ,
os . path . join ( MP_ROOT_PATH , ' mediapipe/modules/__init__.py ' ) ,
os . path . join ( MP_ROOT_PATH ,
2021-02-27 09:21:16 +01:00
' mediapipe/modules/holistic_landmark/__init__.py ' ) ,
os . path . join ( MP_ROOT_PATH , ' mediapipe/modules/objectron/__init__.py ' )
2020-12-10 04:13:05 +01:00
]
2020-08-13 03:57:56 +02:00
2020-12-10 04:13:05 +01:00
def _normalize_path ( path ) :
return path . replace ( ' \\ ' , ' / ' ) if IS_WINDOWS else path
def _get_backup_file ( path ) :
return path + ' .backup '
2020-08-13 03:57:56 +02:00
def _parse_requirements ( path ) :
with open ( os . path . join ( MP_ROOT_PATH , path ) ) as f :
return [
line . rstrip ( )
for line in f
if not ( line . isspace ( ) or line . startswith ( ' # ' ) )
]
2020-08-30 05:41:10 +02:00
def _get_long_description ( ) :
2020-11-05 01:02:35 +01:00
# Fix the image urls.
2020-08-30 05:41:10 +02:00
return re . sub (
r ' (docs/images/|docs/images/mobile/)([A-Za-z0-9_]* \ .(png|gif)) ' ,
r ' https://github.com/google/mediapipe/blob/master/ \ g<1> \ g<2>?raw=true ' ,
2020-12-10 04:13:05 +01:00
open ( os . path . join ( MP_ROOT_PATH , ' README.md ' ) ,
' rb ' ) . read ( ) . decode ( ' utf-8 ' ) )
2020-08-30 05:41:10 +02:00
2020-08-13 03:57:56 +02:00
def _check_bazel ( ) :
""" Check Bazel binary as well as its version. """
2021-12-10 23:03:51 +01:00
if not shutil . which ( ' bazel ' ) :
2020-08-13 03:57:56 +02:00
sys . stderr . write ( ' could not find bazel executable. Please install bazel to '
' build the MediaPipe Python package. ' )
sys . exit ( - 1 )
try :
bazel_version_info = subprocess . check_output ( [ ' bazel ' , ' --version ' ] )
2021-05-05 03:30:15 +02:00
except subprocess . CalledProcessError as e :
sys . stderr . write ( ' fail to get bazel version by $ bazel --version: ' +
str ( e . output ) )
sys . exit ( - 1 )
2020-08-13 03:57:56 +02:00
bazel_version_info = bazel_version_info . decode ( ' UTF-8 ' ) . strip ( )
version = bazel_version_info . split ( ' bazel ' ) [ 1 ] . split ( ' - ' ) [ 0 ]
version_segments = version . split ( ' . ' )
# Treat "0.24" as "0.24.0"
if len ( version_segments ) == 2 :
version_segments . append ( ' 0 ' )
for seg in version_segments :
if not seg . isdigit ( ) :
sys . stderr . write ( ' invalid bazel version number: %s \n ' % version_segments )
sys . exit ( - 1 )
bazel_version = int ( ' ' . join ( [ ' %03d ' % int ( seg ) for seg in version_segments ] ) )
2020-11-05 01:02:35 +01:00
if bazel_version < 3004000 :
2020-08-13 03:57:56 +02:00
sys . stderr . write (
' the current bazel version is older than the minimum version that MediaPipe can support. Please upgrade bazel. '
)
2020-11-05 01:02:35 +01:00
sys . exit ( - 1 )
2020-08-13 03:57:56 +02:00
2020-12-10 04:13:05 +01:00
def _modify_opencv_cmake_rule ( link_opencv ) :
""" Modify opencv_cmake rule to build the static opencv libraries. """
# Ask the opencv_cmake rule to build the static opencv libraries for the
# mediapipe python package. By doing this, we can avoid copying the opencv
# .so file into the package.
# On Windows, the opencv_cmake rule may need Visual Studio to compile OpenCV
# from source. For simplicity, we continue to link the prebuilt version of
# the OpenCV library through "@windows_opencv//:opencv".
if not link_opencv and not IS_WINDOWS :
content = open ( MP_THIRD_PARTY_BUILD ,
' r ' ) . read ( ) . replace ( ' OPENCV_SHARED_LIBS = True ' ,
' OPENCV_SHARED_LIBS = False ' )
shutil . move ( MP_THIRD_PARTY_BUILD , _get_backup_file ( MP_THIRD_PARTY_BUILD ) )
build_file = open ( MP_THIRD_PARTY_BUILD , ' w ' )
build_file . write ( content )
build_file . close ( )
2020-08-30 05:41:10 +02:00
class GeneratePyProtos ( setuptools . Command ) :
2020-08-13 03:57:56 +02:00
""" Generate MediaPipe Python protobuf files by Protocol Compiler. """
2020-08-30 05:41:10 +02:00
user_options = [ ]
def initialize_options ( self ) :
pass
def finalize_options ( self ) :
pass
2020-08-13 03:57:56 +02:00
def run ( self ) :
if ' PROTOC ' in os . environ and os . path . exists ( os . environ [ ' PROTOC ' ] ) :
self . _protoc = os . environ [ ' PROTOC ' ]
else :
2021-12-10 23:03:51 +01:00
self . _protoc = shutil . which ( ' protoc ' )
2020-08-13 03:57:56 +02:00
if self . _protoc is None :
sys . stderr . write (
' protoc is not found. Please run \' apt install -y protobuf '
' -compiler \' (linux) or \' brew install protobuf \' (macos) to install '
' protobuf compiler binary. ' )
sys . exit ( - 1 )
2021-12-10 23:03:51 +01:00
self . _modify_inits ( )
2020-11-05 01:02:35 +01:00
# Build framework and calculator protos.
for pattern in [
' mediapipe/framework/**/*.proto ' , ' mediapipe/calculators/**/*.proto ' ,
2020-12-10 04:13:05 +01:00
' mediapipe/gpu/**/*.proto ' , ' mediapipe/modules/**/*.proto ' ,
' mediapipe/util/**/*.proto '
2020-11-05 01:02:35 +01:00
] :
for proto_file in glob . glob ( pattern , recursive = True ) :
2021-03-25 23:01:44 +01:00
proto_dir = os . path . dirname ( os . path . abspath ( proto_file ) )
2020-11-05 01:02:35 +01:00
# Ignore test protos.
if proto_file . endswith ( ' test.proto ' ) :
continue
2021-03-25 23:01:44 +01:00
# Ignore tensorflow protos in mediapipe/calculators/tensorflow.
if ' tensorflow ' in proto_dir :
2020-11-05 01:02:35 +01:00
continue
# Ignore testdata dir.
if proto_dir . endswith ( ' testdata ' ) :
continue
init_py = os . path . join ( proto_dir , ' __init__.py ' )
if not os . path . exists ( init_py ) :
sys . stderr . write ( ' adding __init__ file: %s \n ' % init_py )
open ( init_py , ' w ' ) . close ( )
self . _generate_proto ( proto_file )
2020-08-13 03:57:56 +02:00
2021-12-10 23:03:51 +01:00
def _modify_inits ( self ) :
# Add __init__.py to make the dirs indexable.
for init_py in DIR_INIT_PY_FILES :
if not os . path . exists ( init_py ) :
sys . stderr . write ( ' adding __init__ file: %s \n ' % init_py )
open ( init_py , ' w ' ) . close ( )
# Save the original init file.
shutil . copyfile ( MP_DIR_INIT_PY , _get_backup_file ( MP_DIR_INIT_PY ) )
mp_dir_init_file = open ( MP_DIR_INIT_PY , ' a ' )
mp_dir_init_file . writelines (
[ ' \n ' , ' from mediapipe.python import * \n ' ,
' import mediapipe.python.solutions as solutions ' ,
' \n ' ] )
mp_dir_init_file . close ( )
2020-08-13 03:57:56 +02:00
def _generate_proto ( self , source ) :
""" Invokes the Protocol Compiler to generate a _pb2.py. """
output = source . replace ( ' .proto ' , ' _pb2.py ' )
sys . stderr . write ( ' generating proto file: %s \n ' % output )
if ( not os . path . exists ( output ) or
( os . path . exists ( source ) and
os . path . getmtime ( source ) > os . path . getmtime ( output ) ) ) :
if not os . path . exists ( source ) :
sys . stderr . write ( ' cannot find required file: %s \n ' % source )
sys . exit ( - 1 )
protoc_command = [ self . _protoc , ' -I. ' , ' --python_out=. ' , source ]
if subprocess . call ( protoc_command ) != 0 :
sys . exit ( - 1 )
2021-12-10 23:03:51 +01:00
class BuildBinaryGraphs ( build_ext . build_ext ) :
""" Build MediaPipe solution binary graphs. """
user_options = build_ext . build_ext . user_options + [
( ' link-opencv ' , None , ' if true, build opencv from source. ' ) ,
]
boolean_options = build_ext . build_ext . boolean_options + [ ' link-opencv ' ]
def initialize_options ( self ) :
self . link_opencv = False
build_ext . build_ext . initialize_options ( self )
def finalize_options ( self ) :
build_ext . build_ext . finalize_options ( self )
2020-08-13 03:57:56 +02:00
def run ( self ) :
_check_bazel ( )
2020-11-05 01:02:35 +01:00
binary_graphs = [
2021-06-24 23:10:25 +02:00
' face_detection/face_detection_short_range_cpu ' ,
' face_detection/face_detection_full_range_cpu ' ,
2020-11-05 01:02:35 +01:00
' face_landmark/face_landmark_front_cpu ' ,
' hand_landmark/hand_landmark_tracking_cpu ' ,
2021-02-27 09:21:16 +01:00
' holistic_landmark/holistic_landmark_cpu ' , ' objectron/objectron_cpu ' ,
2021-06-03 22:13:30 +02:00
' pose_landmark/pose_landmark_cpu ' ,
' selfie_segmentation/selfie_segmentation_cpu '
2020-11-05 01:02:35 +01:00
]
2020-08-13 03:57:56 +02:00
for binary_graph in binary_graphs :
sys . stderr . write ( ' generating binarypb: %s \n ' %
2020-11-05 01:02:35 +01:00
os . path . join ( ' mediapipe/modules/ ' , binary_graph ) )
2020-08-13 03:57:56 +02:00
self . _generate_binary_graph ( binary_graph )
def _generate_binary_graph ( self , graph_path ) :
""" Generate binary graph for a particular MediaPipe binary graph target. """
bazel_command = [
' bazel ' ,
' build ' ,
' --compilation_mode=opt ' ,
2021-06-24 23:10:25 +02:00
' --copt=-DNDEBUG ' ,
2020-08-13 03:57:56 +02:00
' --define=MEDIAPIPE_DISABLE_GPU=1 ' ,
2020-12-10 04:13:05 +01:00
' --action_env=PYTHON_BIN_PATH= ' + _normalize_path ( sys . executable ) ,
2020-11-05 01:02:35 +01:00
os . path . join ( ' mediapipe/modules/ ' , graph_path ) ,
2020-08-13 03:57:56 +02:00
]
2020-12-10 04:13:05 +01:00
if not self . link_opencv and not IS_WINDOWS :
bazel_command . append ( ' --define=OPENCV=source ' )
2020-08-13 03:57:56 +02:00
if subprocess . call ( bazel_command ) != 0 :
sys . exit ( - 1 )
2020-11-05 01:02:35 +01:00
output_name = graph_path + ' .binarypb '
output_file = os . path . join ( ' mediapipe/modules ' , output_name )
2020-08-13 03:57:56 +02:00
shutil . copyfile (
2020-11-05 01:02:35 +01:00
os . path . join ( ' bazel-bin/mediapipe/modules/ ' , output_name ) , output_file )
2020-08-13 03:57:56 +02:00
class BazelExtension ( setuptools . Extension ) :
""" A C/C++ extension that is defined as a Bazel BUILD target. """
def __init__ ( self , bazel_target , target_name = ' ' ) :
self . bazel_target = bazel_target
self . relpath , self . target_name = (
posixpath . relpath ( bazel_target , ' // ' ) . split ( ' : ' ) )
if target_name :
self . target_name = target_name
ext_name = os . path . join (
self . relpath . replace ( posixpath . sep , os . path . sep ) , self . target_name )
setuptools . Extension . __init__ ( self , ext_name , sources = [ ] )
2021-12-10 23:03:51 +01:00
class BuildExtension ( build_ext . build_ext ) :
2020-08-13 03:57:56 +02:00
""" A command that runs Bazel to build a C/C++ extension. """
2020-08-30 05:41:10 +02:00
user_options = build_ext . build_ext . user_options + [
( ' link-opencv ' , None , ' if true, build opencv from source. ' ) ,
]
boolean_options = build_ext . build_ext . boolean_options + [ ' link-opencv ' ]
def initialize_options ( self ) :
self . link_opencv = False
build_ext . build_ext . initialize_options ( self )
def finalize_options ( self ) :
build_ext . build_ext . finalize_options ( self )
2020-08-13 03:57:56 +02:00
def run ( self ) :
_check_bazel ( )
for ext in self . extensions :
2021-12-10 23:03:51 +01:00
self . _build_binary ( ext )
2020-08-13 03:57:56 +02:00
build_ext . build_ext . run ( self )
2021-12-10 23:03:51 +01:00
def _build_binary ( self , ext ) :
2020-08-13 03:57:56 +02:00
if not os . path . exists ( self . build_temp ) :
os . makedirs ( self . build_temp )
2020-12-10 04:13:05 +01:00
bazel_command = [
2020-08-13 03:57:56 +02:00
' bazel ' ,
' build ' ,
' --compilation_mode=opt ' ,
2021-06-24 23:10:25 +02:00
' --copt=-DNDEBUG ' ,
2020-08-13 03:57:56 +02:00
' --define=MEDIAPIPE_DISABLE_GPU=1 ' ,
2020-12-10 04:13:05 +01:00
' --action_env=PYTHON_BIN_PATH= ' + _normalize_path ( sys . executable ) ,
2020-08-13 03:57:56 +02:00
str ( ext . bazel_target + ' .so ' ) ,
]
2020-12-10 04:13:05 +01:00
if not self . link_opencv and not IS_WINDOWS :
bazel_command . append ( ' --define=OPENCV=source ' )
2021-12-10 23:03:51 +01:00
if subprocess . call ( bazel_command ) != 0 :
sys . exit ( - 1 )
2020-08-13 03:57:56 +02:00
ext_bazel_bin_path = os . path . join ( ' bazel-bin ' , ext . relpath ,
ext . target_name + ' .so ' )
ext_dest_path = self . get_ext_fullpath ( ext . name )
ext_dest_dir = os . path . dirname ( ext_dest_path )
if not os . path . exists ( ext_dest_dir ) :
os . makedirs ( ext_dest_dir )
shutil . copyfile ( ext_bazel_bin_path , ext_dest_path )
2020-12-10 04:13:05 +01:00
if IS_WINDOWS :
for opencv_dll in glob . glob (
os . path . join ( ' bazel-bin ' , ext . relpath , ' *opencv*.dll ' ) ) :
2020-12-16 05:29:11 +01:00
shutil . copy ( opencv_dll , ext_dest_dir )
2020-08-13 03:57:56 +02:00
2021-12-10 23:03:51 +01:00
class BuildPy ( build_py . build_py ) :
""" Build command that generates protos, builds binary graphs and extension, builds python source, and performs a cleanup afterwards. """
2020-08-13 03:57:56 +02:00
2021-12-10 23:03:51 +01:00
user_options = build_py . build_py . user_options + [
2020-08-30 05:41:10 +02:00
( ' link-opencv ' , None , ' if true, use the installed opencv library. ' ) ,
]
2021-12-10 23:03:51 +01:00
boolean_options = build_py . build_py . boolean_options + [ ' link-opencv ' ]
2020-08-30 05:41:10 +02:00
def initialize_options ( self ) :
self . link_opencv = False
2021-12-10 23:03:51 +01:00
build_py . build_py . initialize_options ( self )
2020-08-30 05:41:10 +02:00
def finalize_options ( self ) :
2021-12-10 23:03:51 +01:00
build_py . build_py . finalize_options ( self )
2020-08-30 05:41:10 +02:00
2020-08-13 03:57:56 +02:00
def run ( self ) :
2020-12-10 04:13:05 +01:00
_modify_opencv_cmake_rule ( self . link_opencv )
build_binary_graphs_obj = self . distribution . get_command_obj (
' build_binary_graphs ' )
build_binary_graphs_obj . link_opencv = self . link_opencv
2020-08-30 05:41:10 +02:00
build_ext_obj = self . distribution . get_command_obj ( ' build_ext ' )
build_ext_obj . link_opencv = self . link_opencv
2020-08-13 03:57:56 +02:00
self . run_command ( ' build_binary_graphs ' )
self . run_command ( ' build_ext ' )
2021-12-10 23:03:51 +01:00
build_py . build_py . run ( self )
2020-08-13 03:57:56 +02:00
self . run_command ( ' remove_generated ' )
class Install ( install . install ) :
2021-12-10 23:03:51 +01:00
""" Install command that generates protos, builds binary graphs and extension, builds python source, and performs a cleanup afterwards. """
2020-08-13 03:57:56 +02:00
2020-08-30 05:41:10 +02:00
user_options = install . install . user_options + [
( ' link-opencv ' , None , ' if true, use the installed opencv library. ' ) ,
]
boolean_options = install . install . boolean_options + [ ' link-opencv ' ]
def initialize_options ( self ) :
self . link_opencv = False
install . install . initialize_options ( self )
def finalize_options ( self ) :
install . install . finalize_options ( self )
2020-08-13 03:57:56 +02:00
def run ( self ) :
2020-12-10 04:13:05 +01:00
_modify_opencv_cmake_rule ( self . link_opencv )
build_binary_graphs_obj = self . distribution . get_command_obj (
' build_binary_graphs ' )
build_binary_graphs_obj . link_opencv = self . link_opencv
2020-08-30 05:41:10 +02:00
build_ext_obj = self . distribution . get_command_obj ( ' build_ext ' )
build_ext_obj . link_opencv = self . link_opencv
2020-08-13 03:57:56 +02:00
self . run_command ( ' build_binary_graphs ' )
self . run_command ( ' build_ext ' )
install . install . run ( self )
self . run_command ( ' remove_generated ' )
2021-12-10 23:03:51 +01:00
class RemoveGenerated ( setuptools . Command ) :
2020-08-13 03:57:56 +02:00
""" Remove the generated files. """
2021-12-10 23:03:51 +01:00
user_options = [ ]
def initialize_options ( self ) :
pass
def finalize_options ( self ) :
pass
2020-08-13 03:57:56 +02:00
def run ( self ) :
2020-12-10 04:13:05 +01:00
for pattern in [
2021-06-03 22:13:30 +02:00
' mediapipe/calculators/**/*pb2.py ' ,
' mediapipe/framework/**/*pb2.py ' ,
' mediapipe/gpu/**/*pb2.py ' ,
' mediapipe/modules/**/*pb2.py ' ,
' mediapipe/util/**/*pb2.py ' ,
2020-12-10 04:13:05 +01:00
] :
for py_file in glob . glob ( pattern , recursive = True ) :
sys . stderr . write ( ' removing generated files: %s \n ' % py_file )
os . remove ( py_file )
2021-06-03 22:13:30 +02:00
init_py = os . path . join (
os . path . dirname ( os . path . abspath ( py_file ) ) , ' __init__.py ' )
if os . path . exists ( init_py ) :
sys . stderr . write ( ' removing __init__ file: %s \n ' % init_py )
os . remove ( init_py )
2020-08-13 03:57:56 +02:00
for binarypb_file in glob . glob (
2020-11-05 01:02:35 +01:00
' mediapipe/modules/**/*.binarypb ' , recursive = True ) :
2020-08-13 03:57:56 +02:00
sys . stderr . write ( ' removing generated binary graphs: %s \n ' % binarypb_file )
os . remove ( binarypb_file )
2020-08-30 05:41:10 +02:00
# Restore the original init file from the backup.
2020-12-10 04:13:05 +01:00
if os . path . exists ( _get_backup_file ( MP_DIR_INIT_PY ) ) :
2020-08-30 05:41:10 +02:00
os . remove ( MP_DIR_INIT_PY )
2020-12-10 04:13:05 +01:00
shutil . move ( _get_backup_file ( MP_DIR_INIT_PY ) , MP_DIR_INIT_PY )
2020-08-30 05:41:10 +02:00
# Restore the original BUILD file from the backup.
2020-12-10 04:13:05 +01:00
if os . path . exists ( _get_backup_file ( MP_THIRD_PARTY_BUILD ) ) :
2020-08-30 05:41:10 +02:00
os . remove ( MP_THIRD_PARTY_BUILD )
2020-12-10 04:13:05 +01:00
shutil . move ( _get_backup_file ( MP_THIRD_PARTY_BUILD ) , MP_THIRD_PARTY_BUILD )
2021-12-10 23:03:51 +01:00
for init_py in DIR_INIT_PY_FILES :
2022-05-04 00:29:57 +02:00
if os . path . exists ( init_py ) :
os . remove ( init_py )
2020-08-13 03:57:56 +02:00
setuptools . setup (
name = ' mediapipe ' ,
version = __version__ ,
url = ' https://github.com/google/mediapipe ' ,
description = ' MediaPipe is the simplest way for researchers and developers to build world-class ML solutions and applications for mobile, edge, cloud and the web. ' ,
2021-06-24 23:10:25 +02:00
author = ' The MediaPipe Authors ' ,
2020-08-13 03:57:56 +02:00
author_email = ' mediapipe@google.com ' ,
2020-08-30 05:41:10 +02:00
long_description = _get_long_description ( ) ,
2020-08-13 03:57:56 +02:00
long_description_content_type = ' text/markdown ' ,
packages = setuptools . find_packages ( exclude = [ ' mediapipe.examples.desktop.* ' ] ) ,
install_requires = _parse_requirements ( ' requirements.txt ' ) ,
cmdclass = {
2021-12-10 23:03:51 +01:00
' build_py ' : BuildPy ,
2020-08-13 03:57:56 +02:00
' gen_protos ' : GeneratePyProtos ,
' build_binary_graphs ' : BuildBinaryGraphs ,
2021-12-10 23:03:51 +01:00
' build_ext ' : BuildExtension ,
2020-08-13 03:57:56 +02:00
' install ' : Install ,
' remove_generated ' : RemoveGenerated ,
} ,
ext_modules = [
BazelExtension ( ' //mediapipe/python:_framework_bindings ' ) ,
] ,
zip_safe = False ,
include_package_data = True ,
classifiers = [
' Development Status :: 3 - Alpha ' ,
' Intended Audience :: Developers ' ,
' Intended Audience :: Education ' ,
' Intended Audience :: Science/Research ' ,
' License :: OSI Approved :: Apache Software License ' ,
' Operating System :: MacOS :: MacOS X ' ,
2020-12-10 04:13:05 +01:00
' Operating System :: Microsoft :: Windows ' ,
2020-08-13 03:57:56 +02:00
' Operating System :: POSIX :: Linux ' ,
' Programming Language :: Python :: 3.7 ' ,
' Programming Language :: Python :: 3.8 ' ,
2021-05-10 21:19:00 +02:00
' Programming Language :: Python :: 3.9 ' ,
2021-12-10 23:03:51 +01:00
' Programming Language :: Python :: 3.10 ' ,
2020-08-13 03:57:56 +02:00
' Programming Language :: Python :: 3 :: Only ' ,
' Topic :: Scientific/Engineering ' ,
' Topic :: Scientific/Engineering :: Artificial Intelligence ' ,
' Topic :: Software Development ' ,
' Topic :: Software Development :: Libraries ' ,
' Topic :: Software Development :: Libraries :: Python Modules ' ,
] ,
license = ' Apache 2.0 ' ,
keywords = ' mediapipe ' ,
)