Beispiel #1
0
 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()
Beispiel #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')
Beispiel #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)
Beispiel #4
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

        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')
Beispiel #5
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

        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')
Beispiel #6
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.
        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')
Beispiel #7
0
 def install_for_development(self):
     self.run_command('build_static')
     return develop.install_for_development(self)
Beispiel #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)
Beispiel #9
0
    def install_for_development(self):
        develop.install_for_development(self)

        self.generate_files(self.here, self.here)
Beispiel #10
0
 def install_for_development(self):
     if not IS_LIGHT_BUILD:
         self.run_command('build_static')
     return develop.install_for_development(self)
Beispiel #11
0
 def install_for_development(self):
     self.run_command("build_static")
     return DevelopCommand.install_for_development(self)
Beispiel #12
0
 def install_for_development(self):
     self.compile_mo()
     return develop_.install_for_development(self)
Beispiel #13
0
 def install_for_development(self):
     return develop.install_for_development(self)
Beispiel #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)
Beispiel #15
0
 def install_for_development(self):
     self.generate_distribution()
     develop.install_for_development(self)
Beispiel #16
0
    def install_for_development(self):
        develop.install_for_development(self)

        self.generate_files(self.here, self.here)
Beispiel #17
0
 def install_for_development(self):
     develop.install_for_development(self)
     generate_proto_code()
Beispiel #18
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)
 def install_for_development(self):
     self.generate_distribution()
     develop.install_for_development(self)
Beispiel #20
0
 def install_for_development(self):
     if not IS_LIGHT_BUILD:
         self.run_command('build_static')
     return develop.install_for_development(self)
Beispiel #21
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)
Beispiel #22
0
 def install_for_development(self):
     self.run_command('build_static')
     return develop.install_for_development(self)
Beispiel #23
0
 def install_for_development(self):
     self.copy_files()
     develop.install_for_development(self)