Esempio n. 1
0
File: setup.py Progetto: rsms/pyca
 def finalize_options(self):
   _config.finalize_options(self)
   for path in self.distribution.library_dirs:
     if path not in self.library_dirs:
       self.library_dirs.append(path)
   for path in self.distribution.include_dirs:
     if path not in self.include_dirs:
       self.include_dirs.append(path)
Esempio n. 2
0
 def finalize_options(self):
     _config.finalize_options(self)
     for path in self.distribution.library_dirs:
         if path not in self.library_dirs:
             self.library_dirs.append(path)
     for path in self.distribution.include_dirs:
         if path not in self.include_dirs:
             self.include_dirs.append(path)
Esempio n. 3
0
    def finalize_options(self):
        config.finalize_options(self)

        global include_dirs
        global library_dirs

        include_dirs += self.include_dirs
        library_dirs += self.library_dirs
Esempio n. 4
0
    def finalize_options(self):
        config.finalize_options(self)

        global include_dirs
        global library_dirs

        include_dirs += self.include_dirs
        library_dirs += self.library_dirs
Esempio n. 5
0
 def finalize_options(self):
     old_config.finalize_options(self)
 def finalize_options(self):
     old_config.finalize_options(self)
Esempio n. 7
0
    def finalize_options(self):
        r"""finished initializing option values"""

        # R0912 (too-many-branches)
        # pylint: disable=R0912

        config.finalize_options(self)

        opts = self.distribution.get_option_dict('sign_code')

        # validate pfx_file (REQUIRED)

        if self.pfx_file is None and opts:
            self.pfx_file = opts.get('pfx-file', (None, None))[1]

        certname = os.path.basename(self.pfx_file)
        certname = os.path.splitext(certname)[0]

        # did user ask to delete password?

        if self.resetpassword:
            save_password(certname, None)

        if self.pfx_file is None:
            raise DistutilsSetupError("sign_code requires 'pfx-file=' setting")

        if not os.path.isfile(self.pfx_file):
            raise DistutilsSetupError("missing the the pfx file '%s'" 
                    % self.pfx_file)

        # validate winsdk_path

        if self.winsdk_path is None and opts:
            self.winsdk_path = opts.get('winsdk-path', (None, None))[1]

        if self.winsdk_path is None:
            self.winsdk_path = get_winsdk_path()

        # find signtool.exe

        self.signtool = os.path.join(self.winsdk_path, 'Bin', 'signtool.exe')
        if not os.path.isfile(self.signtool):
            raise DistutilsPlatformError('missing signtool.exe: %s' 
                    % WINSDK_ERROR)

        # validate digest (leave it none if not specified)

        if self.digest is None and opts:
            self.digest = opts.get('digest', (None, None))[1]
      
        # validate password & savedpassword (must specify one)

        if self.password is None and opts:
            self.password = opts.get('password', (None, None))[1]

        if self.savedpassword is None and opts:
            self.savedpassword = opts.get('savedpassword', (None, None))[1]

        if self.password is None and not self.savedpassword:
            raise DistutilsSetupError("sign_code requires either "
                                      "'password='******'savedpassword'")

        if self.savedpassword:
            self.password = get_saved_password(certname)
            if not self.password:
                self.password = getpass.getpass("Enter password: ")
                save_password(certname, self.password)
Esempio n. 8
0
 def finalize_options(self):
     config.finalize_options(self)
Esempio n. 9
0
    def finalize_options(self):
        _config.finalize_options(self)

        if self.with_cuda:
            self.distribution.install_requires += cuda_install_requires
Esempio n. 10
0
 def finalize_options(self):
     config.finalize_options(self)
     if self.restrict is None:
         self.restrict = ""