Python setuptools.command.setopt.option_base.finalize_options() Examples

The following are 30 code examples of setuptools.command.setopt.option_base.finalize_options(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module setuptools.command.setopt.option_base , or try the search function .
Example #1
Source File: alias.py    From jarvis with GNU General Public License v2.0 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #2
Source File: alias.py    From rules_pip with MIT License 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #3
Source File: alias.py    From ImageFusion with MIT License 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #4
Source File: alias.py    From Ansible with MIT License 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #5
Source File: alias.py    From datafari with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #6
Source File: alias.py    From setuptools with MIT License 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #7
Source File: alias.py    From PhonePi_SampleServer with MIT License 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #8
Source File: alias.py    From syntheticmass with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #9
Source File: alias.py    From CTFCrackTools-V2 with GNU General Public License v3.0 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #10
Source File: alias.py    From coffeegrindsize with MIT License 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #11
Source File: alias.py    From planespotter with MIT License 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #12
Source File: alias.py    From V1EngineeringInc-Docs with Creative Commons Attribution Share Alike 4.0 International 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #13
Source File: alias.py    From Hands-On-Deep-Learning-for-Games with MIT License 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #14
Source File: alias.py    From aws-kube-codesuite with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #15
Source File: alias.py    From android_universal with MIT License 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #16
Source File: alias.py    From Serverless-Deep-Learning-with-TensorFlow-and-AWS-Lambda with MIT License 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #17
Source File: alias.py    From CTFCrackTools with GNU General Public License v3.0 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #18
Source File: alias.py    From Flask with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #19
Source File: alias.py    From Flask with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #20
Source File: alias.py    From anpr with Creative Commons Attribution 4.0 International 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #21
Source File: alias.py    From python-netsurv with MIT License 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #22
Source File: alias.py    From python-netsurv with MIT License 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #23
Source File: alias.py    From pledgeservice with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #24
Source File: alias.py    From lambda-packs with MIT License 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #25
Source File: alias.py    From ironpython2 with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #26
Source File: alias.py    From lambda-chef-node-cleanup with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #27
Source File: alias.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #28
Source File: alias.py    From oss-ftp with MIT License 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #29
Source File: alias.py    From Mastering-Elasticsearch-7.0 with MIT License 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            ) 
Example #30
Source File: alias.py    From jbox with MIT License 5 votes vote down vote up
def finalize_options(self):
        option_base.finalize_options(self)
        if self.remove and len(self.args) != 1:
            raise DistutilsOptionError(
                "Must specify exactly one argument (the alias name) when "
                "using --remove"
            )