<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"># Copyright 2014-2023 MathWorks, Inc.

import warnings

# Usage of pip is encouraged, but the "setup.py install" workflow is still supported, so 
# this script suppresses related warnings.
warnings.filterwarnings('ignore', message='.*Use build and pip and other standards-based tools.*')

# We start with distutils to minimize disruptions to existing workflows. 
# If distutils no longer exists, we try setuptools.
try:
    # We suppress warnings about deprecation of distutils. We will remove
    # references to distutils before it is removed from Python.
    warnings.filterwarnings('ignore', 
        message='.*distutils package is deprecated.*', 
        category=DeprecationWarning)
    from distutils.core import setup
except:
    from setuptools import setup
    
import importlib

if __name__ == '__main__':
    installModules = []
    # g2753074: When dependency on "six" is removed, this block can be removed.
    try:
        six = importlib.import_module('six')
        sixVersion = '1.12.0'
        if hasattr(six, '__version__') and sixVersion &gt; six.__version__:
            installModules.append('six')
    except ImportError:
        installModules.append('six')

    try:
        # setup.py install with setuptools will install a .egg file, which is zipped.
        # This makes some of the C++ modules unimportable.
        # Setting zip_safe to False installs the package unzipped.
        setup(
            name="MPS Python Client",
            version="9.13",   # suggested versioning system based on R2022b release
            description='A module to invoke MATLAB function deployed on MPS from Python',
            author='MathWorks',
            url='http://www.mathworks.com/',
            zip_safe=False,
            platforms=['Linux', 'Windows', 'macOS'],
            package_dir={'': 'dist'},
            packages=['matlab',
                'matlab.production_server', 'matlab.production_server._internal_mps', 
                'matlab.production_server._proto_generated', 
                'google', 'google.protobuf_ml', 
                'google.protobuf_ml.internal'],
            package_data={'matlab': ['extern/bin/*/*', 'bin/*/*']},
            py_modules=installModules,
        )

    except:
        setup(
            name="MPS Python Client",
            version="9.13",   # suggested versioning system based on R2022b release
            description='A module to invoke MATLAB function deployed on MPS from Python',
            author='MathWorks',
            url='http://www.mathworks.com/',
            platforms=['Linux', 'Windows', 'macOS'],
            package_dir={'': 'dist'},
            packages=['matlab',
                'matlab.production_server', 'matlab.production_server._internal_mps', 
                'matlab.production_server._proto_generated', 
                'google', 'google.protobuf_ml', 
                'google.protobuf_ml.internal'],
            package_data={'matlab': ['extern/bin/*/*', 'bin/*/*']},
            py_modules=installModules,
        )
</pre></body></html>