Example #1
0
    def finalize_options(self):
        """todo"""
        try:
            self.namespaces = self.distribution.namespace_packages
            if (self.namespaces is None):
                self.namespaces = []
            self.create_namespaces = self.distribution.create_namespaces
        except:
            pass

        old_develop.finalize_options(self)
        # !! HACK !!
        # Modify inc, lib, share directory
        # We have to modify the path of the directories for scons.
        # When scons look for installation path of lib and inc,
        # we need build_scons/lib rather than lib because nothing is copied.
        for d in (self.distribution.lib_dirs,
                  self.distribution.inc_dirs,
                  self.distribution.bin_dirs,
                  self.distribution.share_dirs,
                  ):
            if (not d):
                continue
            for dest_dir, src_dir in d.items():
                # replace dest_dir by src_dir
                adir = os.path.join(self.setup_path, src_dir)
                d[adir] = adir
                del (d[dest_dir])
Example #2
0
    def finalize_options(self):
        """todo"""
        try:
            self.namespaces = self.distribution.namespace_packages
            if (self.namespaces is None):
                self.namespaces = []
            self.create_namespaces = self.distribution.create_namespaces
        except:
            pass

        old_develop.finalize_options(self)
        # !! HACK !!
        # Modify inc, lib, share directory
        # We have to modify the path of the directories for scons.
        # When scons look for installation path of lib and inc,
        # we need build_scons/lib rather than lib because nothing is copied.
        for d in (
                self.distribution.lib_dirs,
                self.distribution.inc_dirs,
                self.distribution.bin_dirs,
                self.distribution.share_dirs,
        ):
            if (not d):
                continue
            for dest_dir, src_dir in d.items():
                # replace dest_dir by src_dir
                adir = os.path.join(self.setup_path, src_dir)
                d[adir] = adir
                del (d[dest_dir])
Example #3
0
    def finalize_options(self):
        # Check to make sure we are in a virtual environment
        # before we allow this to be run.
        if not os.getenv('VIRTUAL_ENV'):
            print >>sys.stderr, 'ERROR: You are not in a virtual environment'
            sys.exit(1)

        DevelopCommand.finalize_options(self)
Example #4
0
File: setup.py Project: iquaba/salt
        def finalize_options(self):
            develop.finalize_options(self)
            if 'WRITE_SALT_VERSION' in os.environ:
                self.write_salt_version = True
            if 'GENERATE_SALT_SYSPATHS' in os.environ:
                self.generate_salt_syspaths = True
            if 'MIMIC_SALT_INSTALL' in os.environ:
                self.mimic_salt_install = True

            if self.mimic_salt_install:
                self.write_salt_version = True
                self.generate_salt_syspaths = True
Example #5
0
        def finalize_options(self):
            develop.finalize_options(self)
            if 'WRITE_SALT_VERSION' in os.environ:
                self.write_salt_version = True
            if 'GENERATE_SALT_SYSPATHS' in os.environ:
                self.generate_salt_syspaths = True
            if 'MIMIC_SALT_INSTALL' in os.environ:
                self.mimic_salt_install = True

            if self.mimic_salt_install:
                self.write_salt_version = True
                self.generate_salt_syspaths = True
Example #6
0
    def finalize_options(self):
        _develop.finalize_options(self)

        ei = self.get_finalized_command("egg_info")
        if ei.broken_egg_info:
            raise DistutilsError(
            "Please rename %r to %r before using 'develop'"
            % (ei.egg_info, ei.broken_egg_info)
            )
        basename = pkg_resources.Distribution(
            None, None, ei.egg_name, 'current'
        ).egg_name() + '.egg-info'
        self.target = os.path.join(self.install_dir, basename)
        self.outputs = [self.target]
Example #7
0
 def finalize_options(self):
     _develop.finalize_options(self)
 def finalize_options(self):
     if self.no_clibs:
         self.no_clibs = True
     develop.finalize_options(self)
Example #9
0
 def finalize_options(self):
     _develop.finalize_options(self)
     easy_install.finalize_options(self)
     self.test = not self.no_test
     self.extras = not self.no_extras
     self.should_build = not self.no_build
Example #10
0
 def finalize_options(self):
     """ Validate options. """
     check_virtualenv()
     _develop.finalize_options(self)
Example #11
0
 def finalize_options(self):
     if self.flavor is None:
         self.flavor = current_template.flavor
     log.info('flavor {0}'.format(self.flavor))
     return _develop.finalize_options(self)
Example #12
0
 def finalize_options(self):
     _develop.finalize_options(self)
     easy_install.finalize_options(self)
     self.test = not self.no_test
     self.extras = not self.no_extras
     self.should_build = not self.no_build
Example #13
0
 def finalize_options(self):
     _develop.finalize_options(self)
     # This stops the pre-setup resolver using the wrong index URL
     self.distribution.fetch_build_egg = self.fetch_build_eggs
Example #14
0
File: setup.py Project: rostob/x84
 def finalize_options(self):
     """ Validate options. """
     check_virtualenv()
     _develop.finalize_options(self)
Example #15
0
 def finalize_options(self):
     self.distribution.develop_mode = True
     develop.finalize_options(self)
Example #16
0
 def finalize_options(self):
     develop.finalize_options(self)
     for m in swig_modules:
         m.runtime_library_dirs.append(os.path.abspath("./"))
Example #17
0
 def finalize_options(self):
     if not os.getenv('VIRTUAL_ENV'):
         print('ERROR: You must be in a virtual environment', sys.stderr)
         sys.exit(1)
     develop.finalize_options(self)
Example #18
0
 def finalize_options(self):
     check_virtualenv()
     _develop.finalize_options(self)
Example #19
0
 def finalize_options(self):
     log.debug('_develop finalize_options')
     develop.finalize_options(self)
     if sys.platform != 'darwin':
         [m.runtime_library_dirs.append(os.path.abspath('gippy')) for m in swig_modules]
Example #20
0
 def finalize_options(self):
     # Check to make sure we are in a virtual environment
     # before we allow this to be run.
     assert os.getenv('VIRTUAL_ENV'), 'You should be in a virtualenv!'
     develop.finalize_options(self)
Example #21
0
 def finalize_options(self):
     develop.finalize_options(self)
     modules[1].runtime_library_dirs.append(os.path.abspath('./'))
Example #22
0
 def finalize_options(self):
     """Set extra install arguments."""
     develop.finalize_options(self)
Example #23
0
 def finalize_options(self):
     develop.finalize_options(self)
Example #24
0
 def finalize_options(self):
     self.distribution.develop_mode = True
     develop.finalize_options(self)