コード例 #1
0
ファイル: setup.py プロジェクト: eanderton/salt-test
 def install_for_development(self):
     from distutils import log
     develop.install_for_development(self)
     log.info('\nInstalling development dependencies')
     reqs = ' '.join(self.distribution.extras_require.get('develop', []))
     proc = subprocess.Popen('pip install ' + reqs, shell=True)
     proc.wait()
コード例 #2
0
    def install_for_development(self):
        """Install the package for development.

        This takes care of the work of installing all dependencies.
        """
        if self.no_deps:
            # In this case, we don't want to install any of the dependencies
            # below. However, it's really unlikely that a user is going to
            # want to pass --no-deps.
            #
            # Instead, what this really does is give us a way to know we've
            # been called by `pip install -e .`. That will call us with
            # --no-deps, as it's going to actually handle all dependency
            # installation, rather than having easy_install do it.
            develop.install_for_development(self)
            return

        # Install the latest pip and setuptools. Note that the order here
        # matters, as otherwise a stale setuptools can be left behind,
        # causing installation errors.
        self._run_pip(['install', '-U', 'setuptools'])
        self._run_pip(['install', '-U', 'pip'])

        # Install the dependencies using pip instead of easy_install. This
        # will use wheels instead of eggs, which are ideal for our users.
        self._run_pip(['install', '-e', '.'])
        self._run_pip(['install', '-r', 'dev-requirements.txt'])

        if not self.no_npm:
            if self.use_npm_cache:
                self.distribution.command_options['install_node_deps'] = {
                    'use_npm_cache': ('install_node_deps', 1),
                }

            self.run_command('install_node_deps')
コード例 #3
0
 def install_for_development(self):
     develop.install_for_development(self)
     # Make a link here to epicscorelibs so `pip install -e .` works
     # If we don't do this dbCore can't be found when _extension is
     # built into .
     link = os.path.join(self.egg_path, "epicscorelibs")
     if not os.path.exists(link):
         os.symlink(os.path.join(self.install_dir, "epicscorelibs"), link)
コード例 #4
0
ファイル: setup.py プロジェクト: lmyfzx/djblets
    def install_for_development(self):
        """Install the package for development.

        This takes care of the work of installing all dependencies.
        """
        if self.no_deps:
            # In this case, we don't want to install any of the dependencies
            # below. However, it's really unlikely that a user is going to
            # want to pass --no-deps.
            #
            # Instead, what this really does is give us a way to know we've
            # been called by `pip install -e .`. That will call us with
            # --no-deps, as it's going to actually handle all dependency
            # installation, rather than having easy_install do it.
            develop.install_for_development(self)
            return

        try:
            check_run(['node', '--version'])
        except (subprocess.CalledProcessError, OSError):
            try:
                check_run(['nodejs', '--version'])
            except:
                # nodejs wasn't found, which is fine. We want to ignore this.
                pass
            else:
                raise RuntimeError(
                    'Unable to find "node" in the path, but "nodejs" was '
                    'found. You will need to ensure "nodejs" can be run '
                    'by typing "node". You can do this by typing `ln -s '
                    'nodejs node` in the directory containing "nodejs".')

            raise RuntimeError(
                'Unable to find "node" in the path. You will need to '
                'install a modern version of NodeJS and ensure you can '
                'run it by typing "node" on the command line.')

        # Install the latest pip and setuptools. Note that the order here
        # matters, as otherwise a stale setuptools can be left behind,
        # causing installation errors.
        self._run_pip(['install', '-U', 'setuptools'])
        self._run_pip(['install', '-U', 'pip'])

        # Install the dependencies using pip instead of easy_install. This
        # will use wheels instead of eggs, which are ideal for our users.
        self._run_pip(['install', '-e', '.'])
        self._run_pip(['install', '-r', 'dev-requirements.txt'])

        if self.with_doc_deps:
            self._run_pip(['install', '-r', 'doc-requirements.txt'])

        if not self.no_npm:
            if self.use_npm_cache:
                self.distribution.command_options['install_node_deps'] = {
                    'use_npm_cache': ('install_node_deps', 1),
                }

            self.run_command('install_node_deps')
コード例 #5
0
ファイル: setup.py プロジェクト: chipx86/djblets
    def install_for_development(self):
        """Install the package for development.

        This takes care of the work of installing all dependencies.
        """
        if self.no_deps:
            # In this case, we don't want to install any of the dependencies
            # below. However, it's really unlikely that a user is going to
            # want to pass --no-deps.
            #
            # Instead, what this really does is give us a way to know we've
            # been called by `pip install -e .`. That will call us with
            # --no-deps, as it's going to actually handle all dependency
            # installation, rather than having easy_install do it.
            develop.install_for_development(self)
            return

        try:
            check_run(['node', '--version'])
        except (subprocess.CalledProcessError, OSError):
            try:
                check_run(['nodejs', '--version'])
            except:
                # nodejs wasn't found, which is fine. We want to ignore this.
                pass
            else:
                raise RuntimeError(
                    'Unable to find "node" in the path, but "nodejs" was '
                    'found. You will need to ensure "nodejs" can be run '
                    'by typing "node". You can do this by typing `ln -s '
                    'nodejs node` in the directory containing "nodejs".')

            raise RuntimeError(
                'Unable to find "node" in the path. You will need to '
                'install a modern version of NodeJS and ensure you can '
                'run it by typing "node" on the command line.')

        # Install the latest pip and setuptools. Note that the order here
        # matters, as otherwise a stale setuptools can be left behind,
        # causing installation errors.
        self._run_pip(['install', '-U', 'setuptools'])
        self._run_pip(['install', '-U', 'pip'])

        # Install the dependencies using pip instead of easy_install. This
        # will use wheels instead of eggs, which are ideal for our users.
        self._run_pip(['install', '-e', '.'])
        self._run_pip(['install', '-r', 'dev-requirements.txt'])

        if self.with_doc_deps:
            self._run_pip(['install', '-r', 'doc-requirements.txt'])

        if not self.no_npm:
            if self.use_npm_cache:
                self.distribution.command_options['install_node_deps'] = {
                    'use_npm_cache': ('install_node_deps', 1),
                }

            self.run_command('install_node_deps')
コード例 #6
0
ファイル: setup.py プロジェクト: xiaogao6681/reviewboard
    def install_for_development(self):
        """Install the package for development.

        This takes care of the work of installing all dependencies.
        """
        if self.no_deps:
            # In this case, we don't want to install any of the dependencies
            # below. However, it's really unlikely that a user is going to
            # want to pass --no-deps.
            #
            # Instead, what this really does is give us a way to know we've
            # been called by `pip install -e .`. That will call us with
            # --no-deps, as it's going to actually handle all dependency
            # installation, rather than having easy_install do it.
            develop.install_for_development(self)
            return

        # Install the latest pip and setuptools. Note that the order here
        # matters, as otherwise a stale setuptools can be left behind,
        # causing installation errors.
        self._run_pip(['install', '-U', 'setuptools'])
        self._run_pip(['install', '-U', 'pip'])

        # Install the dependencies using pip instead of easy_install. This
        # will use wheels instead of eggs, which are ideal for our users.
        if sys.platform == 'darwin':
            # We're building on macOS, and some of our dependencies
            # (hi there, mercurial!) won't compile using gcc (their default
            # in some cases), so we want to force the proper compiler.
            os.putenv(b'CC', b'clang')

        self._run_pip(['install', '-e', '.'])
        self._run_pip(['install', '-r', 'dev-requirements.txt'])

        if self.with_doc_deps:
            self._run_pip(['install', '-r', 'doc-requirements.txt'])

        if not self.no_npm:
            if self.use_npm_cache:
                self.distribution.command_options['install_node_deps'] = {
                    'use_npm_cache': ('install_node_deps', 1),
                }

            self.run_command('install_node_deps')
コード例 #7
0
 def install_for_development(self):
     self.run_command('build_static')
     return develop.install_for_development(self)
コード例 #8
0
 def install_for_development(self):
     # Build sources in-place, too.
     self.reinitialize_command('build_src', inplace=1)
     # Make sure scripts are built.
     self.run_command('build_scripts')
     old_develop.install_for_development(self)
コード例 #9
0
    def install_for_development(self):
        develop.install_for_development(self)

        self.generate_files(self.here, self.here)
コード例 #10
0
 def install_for_development(self):
     if not IS_LIGHT_BUILD:
         self.run_command('build_static')
     return develop.install_for_development(self)
コード例 #11
0
ファイル: setup.py プロジェクト: coxley/nsot
 def install_for_development(self):
     self.run_command("build_static")
     return DevelopCommand.install_for_development(self)
コード例 #12
0
 def install_for_development(self):
     self.compile_mo()
     return develop_.install_for_development(self)
コード例 #13
0
 def install_for_development(self):
     return develop.install_for_development(self)
コード例 #14
0
 def install_for_development(self):
     log.info("running npm install")
     check_output(['npm', 'install', '--quiet'])
     # TODO(dcramer): can we run compilestatic somehow here?
     return develop.install_for_development(self)
コード例 #15
0
ファイル: setup.py プロジェクト: nphilipp/tw2.cookieconsent
 def install_for_development(self):
     self.generate_distribution()
     develop.install_for_development(self)
コード例 #16
0
ファイル: setup.py プロジェクト: nphilipp/tw2.fontawesome
    def install_for_development(self):
        develop.install_for_development(self)

        self.generate_files(self.here, self.here)
コード例 #17
0
 def install_for_development(self):
     develop.install_for_development(self)
     generate_proto_code()
コード例 #18
0
ファイル: setup.py プロジェクト: shashisp/sentry
 def install_for_development(self):
     log.info("running npm install")
     check_output(['npm', 'install', '--quiet'])
     # TODO(dcramer): can we run compilestatic somehow here?
     return develop.install_for_development(self)
コード例 #19
0
 def install_for_development(self):
     self.generate_distribution()
     develop.install_for_development(self)
コード例 #20
0
ファイル: setup.py プロジェクト: zuiwanting/sentry
 def install_for_development(self):
     if not IS_LIGHT_BUILD:
         self.run_command('build_static')
     return develop.install_for_development(self)
コード例 #21
0
ファイル: develop.py プロジェクト: glimmercn/numpy
 def install_for_development(self):
     # Build sources in-place, too.
     self.reinitialize_command('build_src', inplace=1)
     # Make sure scripts are built.
     self.run_command('build_scripts')
     old_develop.install_for_development(self)
コード例 #22
0
ファイル: setup.py プロジェクト: lisbitid/burp-ui
 def install_for_development(self):
     self.run_command('build_static')
     return develop.install_for_development(self)
コード例 #23
0
 def install_for_development(self):
     self.copy_files()
     develop.install_for_development(self)