
    Wpf                        d Z ddlZddlZddlZddlZdZej                            ej                            e	                    Z
dZej                            e
e          Zej                            ed          Zd Zd Z e              ej        ded	d
dddd ej        e          dei ed          dg ddg d           dS )as  Copyright 2020-2022 The MediaPipe Authors.

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-Model-Maker package with setuptools.
    Ndevpip_srcmediapipe_model_makerc                     t          t          j                            t          |                     5 }d |D             cd d d            S # 1 swxY w Y   d S )Nc                     g | ]?}|                                 |                    d           +|                                @S )#)isspace
startswithrstrip).0lines     [/var/www/html/nettyfy-visnx/env/lib/python3.11/site-packages/mediapipe/model_maker/setup.py
<listcomp>z'_parse_requirements.<locals>.<listcomp>"   sT        #'//#"6"6      )openospathjoinMM_ROOT_PATH)r   fs     r   _parse_requirementsr       s    BGLLt,,--                     s   AAAc                     t           j                            t                    rt	          j        t                     t          j        dd          } |                     d           | D ]}d|v rt           j                            t          |          }t          |d          5 }|                                }ddd           n# 1 swxY w Y   |                    dd	          }t          j        t           j                            |          d
           t          |d          5 }|                    |           ddd           n# 1 swxY w Y   dS )a  Setup the BUILD_DIR directory to build the mediapipe_model_maker package.

  We need to create a new BUILD_DIR directory because any references to the path
  `mediapipe/model_maker` needs to be renamed to `mediapipe_model_maker` to
  avoid conflicting with the mediapipe package name.
  This setup function performs the following actions:
  1. Copy python source code into BUILD_DIR and rename imports to
    mediapipe_model_maker
  2. Download models from GCS into BUILD_DIR
  zpython/**/*.pyT)	recursivez__init__.pyz_test.pyrNzfrom mediapipe.model_makerzfrom mediapipe_model_maker)exist_okw)r   r   exists	BUILD_DIRshutilrmtreeglobappendr   BUILD_MM_DIRr   readreplacemakedirsdirnamewrite)python_filespython_filebuild_target_filefilefiledatas        r   _setup_build_dirr.   )   s    W^^I 
M)+t<<<,m$$$!  k[  \;??	k3		 4h                < <> >HK 122TBBBB		%	% 
jj               s$   'CC	C	,EE	E	zmediapipe-model-makerzEhttps://github.com/google/mediapipe/tree/master/mediapipe/model_makerzXMediaPipe Model Maker is a simple, low-code solution for customizing on-device ML modelszThe MediaPipe Authorszmediapipe@google.com ztext/markdown)wherezrequirements.txtT)zDevelopment Status :: 3 - AlphazIntended Audience :: DeveloperszIntended Audience :: Educationz%Intended Audience :: Science/Researchz2License :: OSI Approved :: Apache Software Licensez$Operating System :: MacOS :: MacOS Xz(Operating System :: Microsoft :: Windowsz"Operating System :: POSIX :: Linuxz%Programming Language :: Python :: 3.8z%Programming Language :: Python :: 3.9z&Programming Language :: Python :: 3.10z+Programming Language :: Python :: 3 :: OnlyzTopic :: Scientific/Engineeringz:Topic :: Scientific/Engineering :: Artificial IntelligencezTopic :: Software Developmentz*Topic :: Software Development :: Librariesz<Topic :: Software Development :: Libraries :: Python Modulesz
Apache 2.0)	mediapipemodelmaker)nameversionurldescriptionauthorauthor_emaillong_descriptionlong_description_content_typepackagespackage_dirinstall_requiresinclude_package_dataclassifierslicensekeywords)__doc__r!   r   r   
setuptools__version__r   r'   abspath__file__r   SRC_NAMEr   r   r#   r   r.   setupfind_packages r   r   <module>rL      sG   "  				      wrwx8899GLLx00	w||I'>??    <      
 	 Oj"'"1%Z%H555X(();<<  & ,,,C" " " " " "r   