How to use the azure-cognitiveservices-search-websearch.azure_bdist_wheel.bdist_wheel function in azure-cognitiveservices-search-websearch

To help you get started, we’ve selected a few azure-cognitiveservices-search-websearch examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Azure / azure-sdk-for-python / azure-cognitiveservices-search-websearch / azure_bdist_wheel.py View on Github external
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#--------------------------------------------------------------------------

from distutils import log as logger
import os.path

#from wheel.bdist_wheel import bdist_wheel
class azure_bdist_wheel(bdist_wheel):

    description = "Create an Azure wheel distribution"

    user_options = bdist_wheel.user_options + \
        [('azure-namespace-package=', None,
            "Name of the deepest nspkg used")]

    def initialize_options(self):
        bdist_wheel.initialize_options(self)
        self.azure_namespace_package = None

    def finalize_options(self):
        bdist_wheel.finalize_options(self)
        if self.azure_namespace_package and not self.azure_namespace_package.endswith("-nspkg"):
            raise ValueError("azure_namespace_package must finish by -nspkg")

    def run(self):
        if not self.distribution.install_requires:
            self.distribution.install_requires = []
        self.distribution.install_requires.append(
github Azure / azure-sdk-for-python / azure-cognitiveservices-search-websearch / azure_bdist_wheel.py View on Github external
record_path = os.path.relpath(
                    path, bdist_dir).replace(os.path.sep, '/')
                writer.writerow((record_path, hash, size))


#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#--------------------------------------------------------------------------

from distutils import log as logger
import os.path

#from wheel.bdist_wheel import bdist_wheel
class azure_bdist_wheel(bdist_wheel):

    description = "Create an Azure wheel distribution"

    user_options = bdist_wheel.user_options + \
        [('azure-namespace-package=', None,
            "Name of the deepest nspkg used")]

    def initialize_options(self):
        bdist_wheel.initialize_options(self)
        self.azure_namespace_package = None

    def finalize_options(self):
        bdist_wheel.finalize_options(self)
        if self.azure_namespace_package and not self.azure_namespace_package.endswith("-nspkg"):
            raise ValueError("azure_namespace_package must finish by -nspkg")

azure-cognitiveservices-search-websearch

Microsoft Azure Cognitive Services Web Search Client Library for Python

MIT
Latest version published 6 months ago

Package Health Score

81 / 100
Full package analysis

Popular azure-cognitiveservices-search-websearch functions

Similar packages